Re: XForms: Wierd Seg Fault..

Steve Lamont (Helmut.Bohr@t-online.de)
17 Sep 1998 17:05:00 +0200

# To subscribers of the xforms list from Helmut.Bohr@t-online.de (Steve Lamont) :

Sender: owner-xforms@bob.usuf2.usuhs.mil
Precedence: bulk
Reply-To: xforms@bob.usuf2.usuhs.mil

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

> well I had dmalloc (not the same as dbmalloc?) and I installed it and
> linked the library to my file. Now, the error does not happen. There is no
> segfault, and I hadn't changed the code what so ever. howver, if I remove
> the linking in of the dmalloc lib, she fails at the same point.

Congratulations. You have a "Heisenbug." A Hiesenbug is a bug that
moves around or goes away when you change unrelated code (for example,
adding an fprintf() or using a different memory allocation library).
This convinces me even more that you are overrunning an array or
something of that nature.

Does dmalloc report out of bound memory references? How about freeing
the same block twice or using a pointer after you've freed it?

Another thing to look at is inadvertently freeing an automatic
variable.

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/

-- 
Helmut Bohr                                        Helmut.Bohr@T-Online.de
						   hbohr@dvo.de        
_________________________________________________
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/