[Bug ada/41929] New: 64-bit null_pointer_deref1 gnat.dg test consumes all available memory
ro at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Nov 3 18:22:00 GMT 2009
Between 20091022 and 20091102, a parallel make check run (both 32 and 64 bit)
on Solaris 11/SPARC started to fail with `Cannot fork: out of memory'. It
turns
out that the null_pointer_deref1 gnat.dg test is the culprit: it grows to 11+
GB
on my test system:
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
15442 ro 11G 6705M stop 43 0 0:03:16 0.0% null_pointer_de/1
pmap shows that it's all on the heap:
15442: ./null_pointer_deref1.exe
0000000100000000 120K r-x--
/export/vol/gcc/obj/SunOS-sparc/gcc-4.5.0-20091102/11-gcc/gcc/testsuite/gnat/null_pointer_deref1.exe
000000010011C000 24K rwx--
/export/vol/gcc/obj/SunOS-sparc/gcc-4.5.0-20091102/11-gcc/gcc/testsuite/gnat/null_pointer_deref1.exe
0000000100122000 2936K rwx-- [ heap ]
0000000100400000 933888K rwx-- [ heap ]
7FFFFFFF7F460000 8K rwxs- [ anon ]
7FFFFFFF7F500000 24K rwx-- [ anon ]
7FFFFFFF7F600000 8K rwx-- [ anon ]
7FFFFFFF7F700000 8K r-x--
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
7FFFFFFF7F800000 1312K r-x-- /lib/sparcv9/libc.so.1
7FFFFFFF7FA48000 40K rwx-- /lib/sparcv9/libc.so.1
7FFFFFFF7FA52000 8K rwx-- /lib/sparcv9/libc.so.1
7FFFFFFF7FB00000 8K rwx-- [ anon ]
7FFFFFFF7FC00000 8K rw--- [ anon ]
7FFFFFFF7FD00000 8K rw--- [ anon ]
7FFFFFFF7FE00000 224K r-x-- /lib/sparcv9/ld.so.1
7FFFFFFF7FF38000 16K rwx-- /lib/sparcv9/ld.so.1
7FFFFFFF7FF3C000 8K rwx-- /lib/sparcv9/ld.so.1
FFFFFFFCF5C00000 10653696K rw--- [ stack ]
total 11592344K
Unfortunately, I haven't been able to get a stacktrace with pstack, nor with
gdb 6.6 (quite old now, admittedly). Since this breaks all testing, I've moved
the source out of the way for now.
--
Summary: 64-bit null_pointer_deref1 gnat.dg test consumes all
available memory
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ro at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.11
GCC host triplet: sparc-sun-solaris2.11
GCC target triplet: sparc-sun-solaris2.11
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41929
More information about the Gcc-bugs
mailing list