http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26446
--- Comment #6 from Clément David <c.david86 at gmail dot com> 2012-02-08 13:49:53 UTC --- Created attachment 26611 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26611 Test case I'm able to reproduce with gcc 4.6.2 with a simple test case. The attached conftest.cpp check arpack 3 [http://forge.scilab.org/index.php/p/arpack-ng/] presence. I'm able to catch the following backtrace : #0 __GI_exit (status=1) at exit.c:100 #1 0x0000003a0061a0ac in _gfortrani_sys_exit (code=1) at ../../../libgfortran/runtime/error.c:96 #2 0x0000003a0061a2d5 in _gfortrani_os_error (message=0x3a006f514f "Memory allocation failed") at ../../../libgfortran/runtime/error.c:238 #3 0x0000003a0061ac6f in _gfortrani_get_mem (n=<optimized out>) at ../../../libgfortran/runtime/memory.c:46 #4 0x0000003a006d92b5 in _gfortrani_init_units () at ../../../libgfortran/io/unit.c:585 #5 0x0000003a006185d8 in init () at ../../../libgfortran/runtime/main.c:158 #6 0x000000315260f196 in call_init (l=<optimized out>, argc=1, argv=0x7fffffffe198, env=0x7fffffffe1a8) at dl-init.c:83 #7 0x000000315260f273 in call_init (env=<optimized out>, argv=<optimized out>, argc=<optimized out>, l=<optimized out>) at dl-init.c:50 #8 _dl_init (main_map=0x3152823288, argc=1, argv=0x7fffffffe198, env=0x7fffffffe1a8) at dl-init.c:132 #9 0x000000315260171a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2 #10 0x0000000000000001 in ?? () #11 0x00007fffffffe465 in ?? () #12 0x0000000000000000 in ?? ()