Strange (at least to me it is) pfRealloc core

New Message Reply Date view Thread view Subject view Author view

From: 'Bwana' Bob Buckley (Bob.Buckley-contractor++at++JNTF.osd.mil)
Date: 03/31/2000 15:59:17


I have what appears to me as a strange pfRealloc core. I am creating a
circle class and am changing the tesselation. I reallocate the vertex
array and after 17 cycles it cores inside the pfRealloc. I'm including
the makefile, code, and dbx trace and am hoping that someone can shed
some light on what's going on. I sure hope it ain't the dreaded Friday
afternoon 'Doh' bug.

Thanks.

P.S. I'm having to type these in by hand and am attempting to ensure no
bugs.


dbx test
dbx version 7.2.1 Mar 13 1998 19:00:36
Unknown processor type 0xe, assuming R4000.
Core from signal SIGSEGV: Segmentation violation
(dbx) where
> 0 _lmalloc()
  1 _amallc()
  2 pfMemory::operator new(unsigned int, unsigned int, void *)
  3 pfMemory::realloc(unsigned int)
  4 pfMemory::realloc(void *, unsigned int)
  5 Circle::build(void)
  6 Circle::setNumPts(int)
  7 ::main()
  8 __start()


#! /usr/sbin/pmake

CC = CC
CFLAGS = -g -n32
INCS =
OBJS = test.o
LIBS = -lpf -lpfutil -lGL -lXmu -lXext -lX11 -limage -lm
LLIB =

test: $(OBJS)
        ${CC} -o test ${OBJS} ${LLIB} ${LIBS}

.C.o: makefile
        ${CC} -c ${CFLAGS} ${INCS} $*.C

clean:
        rm *.o test




New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 15:59:40 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.