Re: [ROOT] segmentation fault ignored by compiler

From: Andre Holzner (Andre.Holzner@cern.ch)
Date: Fri May 25 2001 - 15:05:51 MEST


Hello Ben,

Rene Brun wrote:
> 
> Hi Ben,
> This is a programming error. In this case CINT wants to be nice.
> With the compiler, nothing to do, except protecting your code.

If you're working on some unix platform then
libefence by Bruce Perens might help detecting
overrun problems (I don't know exactly whether
this also works in your example problem since
this is not dynamically allocated memory).
Once it is installed, you can simply add libefence
to the libraries to link against.

Using libefence, you are `much more likely' to
get a segmentation fault when accessing illegal memory.

André


-- 
------------------+----------------------------------
Andre Holzner     | +41 22 76 76750 
Bureau 32 2-C13   | Building 32     
CERN              | Office 2-C13    
CH-1211 Geneve 23 | http://wwweth.cern.ch/~holzner/



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:46 MET