dereferencing null
Jesse Phillips
jessekphillips+D at gmail.com
Mon Mar 5 02:16:54 PST 2012
On Monday, 5 March 2012 at 00:33:18 UTC, Nathan M. Swan wrote:
> On Saturday, 3 March 2012 at 02:51:41 UTC, Walter Bright wrote:
>> Adding in software checks for null pointers will dramatically
>> slow things down.
>
> What about the debug/release difference? Isn't the point of
> debug mode to allow checks such as assert, RangeError, etc?
> "Segmentation fault: 11" prevents memory from corrupting, but
> it isn't helpful in locating a bug.
It can in linux. Enable debug symbols, and core dumps, open in gdb
$ ulimit -c unlimited
$ dmd files.d -gc
$ gdb ./files core
More information about the Digitalmars-d
mailing list