[parisc-linux] malloc limits

John David Anglin dave@hiauly1.hia.nrc.ca
Fri, 20 Sep 2002 23:38:37 -0400 (EDT)


In looking at the failure of the gcc v3 pthread2 test, I see it dies
with a segv in chunk_free when next is larger than 0x80000000:

#0  chunk_free (ar_ptr=0x400ad16c, p=0x4010c744) at malloc.c:3179
3179      nextsz = chunksize(next);
(gdb) p next
$2 = (struct malloc_chunk *) 0x802191cc

I thought there was a flat memory model.  If so, shouldn't it be possible
for the data section to expand past 0x80000000?

The test will pass if I cut max_loop_count to 30000.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)