Re: Is there a tool or compiler option to make program crash as soon as access memory illegally

From: David Schwartz (davids_at_webmaster.com)
Date: 09/07/05


Date: Wed, 7 Sep 2005 12:19:33 -0700


"Patricia" <lanchenn@gmail.com> wrote in message
news:1126120440.803156.311850@g43g2000cwa.googlegroups.com...

> If only export LD_PRELOAD, dbx says the corefile was truncated, and
> should be more than 1G bytes. Is it reasonable to have such a big
> corefile? The problem is that I don't have that much disk quota.

> If also export MALLOC_DEBUG, no corefile was generated.

    Sadly, yes, it is. If you're allocating a lot of memory. Try to
replicate your problem with a smaller dataset.

    DS