[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ElectricFence & malloc debugging [Update]
From: |
Steve Emsley |
Subject: |
ElectricFence & malloc debugging [Update] |
Date: |
Mon, 8 Jun 1998 20:01:59 +0100 |
Thanks Marcus (and Scott C. for suggesting it in the first place).
ElectricFence helps debug malloc errors eg. overruns when using
dynamically allocated arrays. It works!
To use:
In your Makefile add: OTHERLIBS=-lefence
Set the variable EF_ALIGNMENT: export EF_ALIGNMENT=8
Run your program in gdb and EF will cause a SIGSEGV at overruns which,
without EF, usually get by the debugger.
Hope this helps.
Steve.
--
---------------------------------------------------------------------
Steve Emsley Ecosystems Analysis & Management Group
address@hidden University of Warwick, England
http://www.oikos.warwick.ac.uk/~sme/ (+44) (0)1598 753648
---------------------------------------------------------------------
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ElectricFence & malloc debugging [Update],
Steve Emsley <=