Access Violation Tracking

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 6 19:22:45 PST 2014


On Thu, 06 Nov 2014 20:13:02 +0000
"Nordlöw" via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> On Wednesday, 5 November 2014 at 11:39:21 UTC, Marc Schütz wrote:
> > If you're on Linux, you can turn SEGVs into Errors:
> >
> >     import etc.linux.memoryerror;
> >     registerMemoryErrorHandler();
> 
> Why isn't such a useful feature activated by default? Performance 
> reasons?
'cause it's not really that useful. uncaught (by the proper checks)
segmentation fault is the serious bug, program must crach and spit out
postmortem dump. without interceptions crach point (which is written
into the dump too) will be right at the place where it shots it's foot.
and with signal handler installed... who knows?

crash+coredump is alot more useful than intercepting error and...
trying to recover from undefined state? or just exit to OS, losing
valuable information about a crash?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141107/c3c68d66/attachment.sig>


More information about the Digitalmars-d-learn mailing list