Re: Bus error when using pfNodeTravMask

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Tue, 16 Nov 93 15:59:01 -0800


Sounds like something is stomping memory and trashing the arena data
structures. It's probably blowing up in pfNodeTravMask because that's
where the next pfMalloc is occuring that touches bogus data.

Bugs like this can be hard to trace unless you have a good idea who
might be writing past the end of an allocated array or such. If you
don't have any idea, there's the hunt-and-peck method. You can use
amallopt(3X) to turn on M_DEBUG so the data structure will be checked
on every amalloc. Then you start sprinkling your code with pfMallocs
from the arena until you narrow it down.

I'm assuming that you're programming for MP and that the geosets in
question were allocated from a shared memory arena, not from the heap.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/390-1151


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:06 PDT

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