Re: XForms: segmentation fault

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 26 Mar 98 07:05:26 PST

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I'll keep looking for problems that my code could be causing. I did
> although try the code on a Solaris machine with the same version of Xforms
> (0.88) and it worked absolutely fine.. Seems sorta strange to me.

Actually, that's not so strange at all. Since you're on two different
machines with two different compilers, not to mention instruction sets
and memory architectures, things will be in different places relative
to one another in memory. You may be walking on something unused on
the Solaris machine while on the Linux box you're walking on something
vital.

As Dick suggested, look for inadvertent use pointers after they've
been freed or memory/buffer overruns (berserk for-loop indices).

There is a very nice memory debug tool called DBMALLOC written by
Conor P. Cahill that is freely available at a number of FTP sites,
particularly Linux oriented ones, which is extremely useful in
tracking down re-use of freed pointers and memory overruns. No
programmer should be without it or a similar tool.

spl

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/