On Sat, Jun 28, 2008 at 5:37 PM, Philip Guenther <[EMAIL PROTECTED]> wrote:
> On Sat, Jun 28, 2008 at 3:06 PM, Mark B. <[EMAIL PROTECTED]> wrote:
>> What is the default value for MALLOC_OPTIONS?
>
> All the options default to off, with the partial exception of the a/A
> option: the default behavior is not quite the same as either 'a' or
> 'A'.

So the difference in my case was not malloc options but different
realloc behavior.  This lurking disaster worked until I ran it on
OpenBSD:

struct test *tp1, *tp2;
fcn_that_reallocs(&tp1);
tp2 = tp1
fcn_that_reallocs(&tp1);
fail_if(tp2->id != 1);

thx for the options, running that way now here too.

m

Reply via email to