http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54638



--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> 2012-09-20 20:32:58 
UTC ---

A simple input causes:



[hjl@gnu-mic-2 gcc]$ cat /tmp/x.i

typedef int TItype __attribute__ ((mode (TI)));

int

foo (TItype a, TItype b)

{

  return a < b;

}

[hjl@gnu-mic-2 gcc]$ ./xgcc -B./ -S /tmp/x.i

*** glibc detected *** ./cc1: malloc(): smallbin double linked list corrupted:

0x0000000001aa9870 ***

======= Backtrace: =========

/lib64/libc.so.6[0x38f3a7acc6]

/lib64/libc.so.6[0x38f3a7d547]

/lib64/libc.so.6(__libc_malloc+0x63)[0x38f3a7f373]

/lib64/libc.so.6[0x38f3a33014]

/lib64/libc.so.6[0x38f3a3322b]

/lib64/libc.so.6[0x38f3a30bbf]

/lib64/libc.so.6[0x38f3a302ec]

./cc1[0x76f1a1]

/lib64/libc.so.6[0x38f3a358a0]

./cc1(ira_build+0xc88)[0x6879c8]

./cc1[0x681d47]

./cc1(execute_one_pass+0x108)[0x6df768]

./cc1(execute_pass_list+0x15)[0x6dfac5]

./cc1(execute_pass_list+0x27)[0x6dfad7]

./cc1(tree_rest_of_compilation+0x79)[0x7b7449]

./cc1[0x56996a]

./cc1(cgraph_optimize+0x826)[0x56b386]

./cc1(cgraph_finalize_compilation_unit+0x7a)[0x56b5ea]

./cc1(c_write_global_declarations+0xf0)[0x4adc30]

./cc1(toplev_main+0xa58)[0x770f48]

/lib64/libc.so.6(__libc_start_main+0xf5)[0x38f3a21675]

./cc1[0x49cc11]

======= Memory map: ========

00400000-00fa5000 r-xp 00000000 08:11 15101988                          

/export/project/git/gcc-regression/gcc-test-bld.bad/gcc/cc1

011a5000-011b0000 rw-p 00ba5000 08:11 15101988                          

/export/project/git/gcc-regression/gcc-test-bld.bad/gcc/cc1

011b0000-0130f000 rw-p 00000000 00:00 0 

01a8f000-01b98000 rw-p 00000000 00:00 0                                  [heap]

38f3600000-38f3621000 r-xp 00000000 08:08 1439025                       

/usr/lib64/ld-2.15.so

38f3820000-38f3821000 r--p 00020000 08:08 1439025                       

/usr/lib64/ld-2.15.so

38f3821000-38f3822000 rw-p 00021000 08:08 1439025                       

/usr/lib64/ld-2.15.so

38f3822000-38f3823000 rw-p 00000000 00:00 0 

38f3a00000-38f3bac000 r-xp 00000000 08:08 1439038                       

/usr/lib64/libc-2.15.so

38f3bac000-38f3dac000 ---p 001ac000 08:08 1439038                       

/usr/lib64/libc-2.15.so

38f3dac000-38f3db0000 r--p 001ac000 08:08 1439038                       

/usr/lib64/libc-2.15.so

38f3db0000-38f3db2000 rw-p 001b0000 08:08 1439038                       

/usr/lib64/libc-2.15.so

38f3db2000-38f3db7000 rw-p 00000000 00:00 0 

38f3e00000-38f3e03000 r-xp 00000000 08:08 1445087                       

/usr/lib64/libgmpxx.so.4.2.2

38f3e03000-38f4003000 ---p 00003000 08:08 1445087                       

/usr/lib64/libgmpxx.so.4.2.2

38f4003000-38f4004000 rw-p 00003000 08:08 1445087                       

/usr/lib64/libgmpxx.so.4.2.2

38f4200000-38f42f5000 r-xp 00000000 08:08 1444200                       

/usr/lib64/libppl.so.9.0.0

38f42f5000-38f44f5000 ---p 000f5000 08:08 1444200                       

/usr/lib64/libppl.so.9.0.0

38f44f5000-38f44f6000 r--p 000f5000 08:08 1444200                       

/usr/lib64/libppl.so.9.0.0

38f44f6000-38f44f9000 rw-p 000f6000 08:08 1444200                       

/usr/lib64/libppl.so.9.0.0

38f4600000-38f461f000 r-xp 00000000 08:08 1440972                       

/usr/lib64/libcloog.so.0.0.0

38f461f000-38f481e000 ---p 0001f000 08:08 1440972                       

/usr/lib64/libcloog.so.0.0.0

38f481e000-38f481f000 r--p 0001e000 08:08 1440972                       

/usr/lib64/libcloog.so.0.0.0

38f481f000-38f4820000 rw-p 0001f000 08:08 1440972                       

/usr/lib64/libcloog.so.0.0.0

38f4820000-38f4822000 rw-p 00000000 00:00 0 

38f4a00000-38f4af9000 r-xp 00000000 08:08 1439477                       

/usr/lib64/libm-2.15.so

38f4af9000-38f4cf8000 ---p 000f9000 08:08 1439477                       

/usr/lib64/libm-2.15.so

38f4cf8000-38f4cf9000 r--p 000f8000 08:08 1439477                       

/usr/lib64/libm-2.15.so

38f4cf9000-38f4cfa000 rw-p 000f9000 08:08 1439477                       

/usr/lib64/libm-2.15.so

38f4e00000-38f5216000 r-xp 00000000 08:08 1445908                       

/usr/lib64/libppl_c.so.4.0.0

38f5216000-38f5415000 ---p 00416000 08:08 1445908                       

/usr/lib64/libppl_c.so.4.0.0

38f5415000-38f5416000 r--p 00415000 08:08 1445908                       

/usr/lib64/libppl_c.so.4.0.0

38f5416000-38f541c000 rw-p 00416000 08:08 1445908                       

/usr/lib64/libppl_c.so.4.0.0

38f5600000-38f5665000 r-xp 00000000 08:08 1441767                       

/usr/lib64/libgmp.so.10.0.2

38f5665000-38f5864000 ---p 00065000 08:08 1441767                       

/usr/lib64/libgmp.so.10.0.2

38f5864000-38f586d000 rw-p 00064000 08:08 1441767                       

/usr/lib64/libgmp.so.10.0.2

38f5a00000-38f5a04000 r-xp 00000000 08:08 1445028                       

/usr/lib64/libpwl.so.5.0.0

38f5a04000-38f5c03000 ---p 00004000 08:08 1445028                       

/usr/lib64/libpwl.so.5.0.0

38f5c03000-38f5c04000 r--p 00003000 08:08 1445028                       

/usr/lib64/libpwl.so.5.0.0

38f5c04000-38f5c05000 rw-p 00004000 08:08 1445028                       

/usr/lib64/libpwl.so.5.0.0

38f5e00000-38f5e57000 r-xp 00000000 08:08 1441613                       

/usr/lib64/libmpfr.so.4.1.0

38f5e57000-38f6056000 ---p 00057000 08:08 1441613                       

/usr/lib64/libmpfr.so.4.1.0

38f6056000-38f6058000 r--p 00056000 08:08 1441613                       

/usr/lib64/libmpfr.so.4.1.0

38f6058000-38f6059000 rw-p 00058000 08:08 1441613                       

/usr/lib64/libmpfr.so.4.1.0

38f7200000-38f7215000 r-xp 00000000 08:08 1441563                       

/usr/lib64/libgcc_s-4.7.1-20120629.so.1

38f7215000-38f7414000 ---p 00015000 08:08 1441563                       

/usr/lib64/libgcc_s-4.7.1-20120629.so.1

38f7414000-38f7415000 rw-p 00014000 08:08 1441563                       

/usr/lib64/libgcc_s-4.7.1-20120629.so.1

38f9e00000-38f9ee5000 r-xp 00000000 08:08 1441577                       

/usr/lib64/libstdc++.so.6.0.17

38f9ee5000-38fa0e4000 ---p 000e5000 08:08 1441577                       

/usr/lib64/libstdc++.so.6.0.17

38fa0e4000-38fa0ec000 r--p 000e4000 08:08 1441577                       

/usr/lib64/libstdc++.so.6.0.17

38fa0ec000-38fa0ee000 rw-p 000ec000 08:08 1441577                       

/usr/lib64/libstdc++.so.6.0.17

38fa0ee000-38fa103000 rw-p 00000000 00:00 0 

7fe8f5f3c000-7fe8f6173000 rw-p 00000000 00:00 0 

7fe8f6173000-7fe8fc5a0000 r--p 00000000 08:08 1444107                   

/usr/lib/locale/locale-archive

7fe8fc5a0000-7fe8fc5a6000 rw-p 00000000 00:00 0 

7fe8fc5a6000-7fe8fc5bd000 r-xp 00000000 08:08 1441072                   

/usr/lib64/libz.so.1.2.5

7fe8fc5bd000-7fe8fc7bc000 ---p 00017000 08:08 1441072                   

/usr/lib64/libz.so.1.2.5

7fe8fc7bc000-7fe8fc7bd000 rw-p 00016000 08:08 1441072                   

/usr/lib64/libz.so.1.2.5

7fe8fc7bd000-7fe8fc7be000 rw-p 00000000 00:00 0 

7fe8fc7be000-7fe8fc7c1000 r-xp 00000000 08:08 1439482                   

/usr/lib64/libdl-2.15.so

7fe8fc7c1000-7fe8fc9c0000 ---p 00003000 08:08 1439482                   

/usr/lib64/libdl-2.15.so

7fe8fc9c0000-7fe8fc9c1000 r--p 00002000 08:08 1439482                   

/usr/lib64/libdl-2.15.so

7fe8fc9c1000-7fe8fc9c2000 rw-p 00003000 08:08 1439482                   

/usr/lib64/libdl-2.15.so

7fe8fc9c2000-7fe8fc9c3000 rw-p 00000000 00:00 0 

7fe8fc9c3000-7fe8fc9d7000 r-xp 00000000 08:08 1447989                   

/usr/lib64/libmpc.so.2.0.0

7fe8fc9d7000-7fe8fcbd6000 ---p 00014000 08:08 1447989                   

/usr/lib64/libmpc.so.2.0.0

7fe8fcbd6000-7fe8fcbd7000 r--p 00013000 08:08 1447989                   

/usr/lib64/libmpc.so.2.0.0

7fe8fcbd7000-7fe8fcbd8000 rw-p 00014000 08:08 1447989                   

/usr/lib64/libmpc.so.2.0.0

7fe8fcbd8000-7fe8fcbd9000 rw-p 00000000 00:00 0 

7fe8fcbf9000-7fe8fcbfb000 rw-p 00000000 00:00 0 

7fff7de71000-7fff7de92000 rw-p 00000000 00:00 0                         

[stack]

7fff7df78000-7fff7df79000 r-xp 00000000 00:00 0                          [vdso]

ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                 

[vsyscall]

*** glibc detected *** ./cc1: malloc(): smallbin double linked list corrupted:
0x0000000001aa9870 ***

======= Backtrace: =========

/lib64/libc.so.6[0x38f3a7acc6]

/lib64/libc.so.6[0x38f3a7d547]

/lib64/libc.so.6(__libc_malloc+0x63)[0x38f3a7f373]

/lib64/libc.so.6[0x38f3a33014]

/lib64/libc.so.6[0x38f3a3322b]

/lib64/libc.so.6[0x38f3a30bbf]

/lib64/libc.so.6[0x38f3a302ec]

./cc1[0x76f1a1]

/lib64/libc.so.6[0x38f3a358a0]

/lib64/libc.so.6(gsignal+0x35)[0x38f3a35825]

/lib64/libc.so.6(abort+0x148)[0x38f3a36fd8]

/lib64/libc.so.6[0x38f3a74d3b]

/lib64/libc.so.6[0x38f3a7acc6]

/lib64/libc.so.6[0x38f3a7d547]

/lib64/libc.so.6(__libc_malloc+0x63)[0x38f3a7f373]

/lib64/libc.so.6[0x38f3a33014]

/lib64/libc.so.6[0x38f3a3322b]

/lib64/libc.so.6[0x38f3a30bbf]

/lib64/libc.so.6[0x38f3a302ec]

./cc1[0x76f1a1]

/lib64/libc.so.6[0x38f3a358a0]

./cc1(ira_build+0xc88)[0x6879c8]

./cc1[0x681d47]

./cc1(execute_one_pass+0x108)[0x6df768]

./cc1(execute_pass_list+0x15)[0x6dfac5]

./cc1(execute_pass_list+0x27)[0x6dfad7]

./cc1(tree_rest_of_compilation+0x79)[0x7b7449]

./cc1[0x56996a]

./cc1(cgraph_optimize+0x826)[0x56b386]

./cc1(cgraph_finalize_compilation_unit+0x7a)[0x56b5ea]

./cc1(c_write_global_declarations+0xf0)[0x4adc30]

./cc1(toplev_main+0xa58)[0x770f48]

/lib64/libc.so.6(__libc_start_main+0xf5)[0x38f3a21675]

./cc1[0x49cc11]

======= Memory map: ========

00400000-00fa5000 r-xp 00000000 08:11 15101988                          

/export/project/git/gcc-regression/gcc-test-bld.bad/gcc/cc1

011a5000-011b0000 rw-p 00ba5000 08:11 15101988                          

/export/project/git/gcc-regression/gcc-test-bld.bad/gcc/cc1

011b0000-0130f000 rw-p 00000000 00:00 0 

01a8f000-01b98000 rw-p 00000000 00:00 0                                  [heap]

38f3600000-38f3621000 r-xp 00000000 08:08 1439025                       

/usr/lib64/ld-2.15.so

38f3820000-38f3821000 r--p 00020000 08:08 1439025                       

/usr/lib64/ld-2.15.so

38f3821000-38f3822000 rw-p 00021000 08:08 1439025                       

/usr/lib64/ld-2.15.so

38f3822000-38f3823000 rw-p 00000000 00:00 0 

38f3a00000-38f3bac000 r-xp 00000000 08:08 1439038                       

/usr/lib64/libc-2.15.so

38f3bac000-38f3dac000 ---p 001ac000 08:08 1439038                       

/usr/lib64/libc-2.15.so

38f3dac000-38f3db0000 r--p 001ac000 08:08 1439038                       

/usr/lib64/libc-2.15.so

38f3db0000-38f3db2000 rw-p 001b0000 08:08 1439038                       

/usr/lib64/libc-2.15.so

38f3db2000-38f3db7000 rw-p 00000000 00:00 0 

38f3e00000-38f3e03000 r-xp 00000000 08:08 1445087                       

/usr/lib64/libgmpxx.so.4.2.2

38f3e03000-38f4003000 ---p 00003000 08:08 1445087                       

/usr/lib64/libgmpxx.so.4.2.2

38f4003000-38f4004000 rw-p 00003000 08:08 1445087                       

/usr/lib64/libgmpxx.so.4.2.2

38f4200000-38f42f5000 r-xp 00000000 08:08 1444200                       

/usr/lib64/libppl.so.9.0.0

38f42f5000-38f44f5000 ---p 000f5000 08:08 1444200                       

/usr/lib64/libppl.so.9.0.0

38f44f5000-38f44f6000 r--p 000f5000 08:08 1444200                       

/usr/lib64/libppl.so.9.0.0

38f44f6000-38f44f9000 rw-p 000f6000 08:08 1444200                       

/usr/lib64/libppl.so.9.0.0

38f4600000-38f461f000 r-xp 00000000 08:08 1440972                       

/usr/lib64/libcloog.so.0.0.0

38f461f000-38f481e000 ---p 0001f000 08:08 1440972                       

/usr/lib64/libcloog.so.0.0.0

38f481e000-38f481f000 r--p 0001e000 08:08 1440972                       

/usr/lib64/libcloog.so.0.0.0

38f481f000-38f4820000 rw-p 0001f000 08:08 1440972                       

/usr/lib64/libcloog.so.0.0.0

38f4820000-38f4822000 rw-p 00000000 00:00 0 

38f4a00000-38f4af9000 r-xp 00000000 08:08 1439477                       

/usr/lib64/libm-2.15.so

38f4af9000-38f4cf8000 ---p 000f9000 08:08 1439477                       

/usr/lib64/libm-2.15.so

38f4cf8000-38f4cf9000 r--p 000f8000 08:08 1439477                       

/usr/lib64/libm-2.15.so

38f4cf9000-38f4cfa000 rw-p 000f9000 08:08 1439477                       

/usr/lib64/libm-2.15.so

38f4e00000-38f5216000 r-xp 00000000 08:08 1445908                       

/usr/lib64/libppl_c.so.4.0.0

38f5216000-38f5415000 ---p 00416000 08:08 1445908                       

/usr/lib64/libppl_c.so.4.0.0

38f5415000-38f5416000 r--p 00415000 08:08 1445908                       

/usr/lib64/libppl_c.so.4.0.0

38f5416000-38f541c000 rw-p 00416000 08:08 1445908                       

/usr/lib64/libppl_c.so.4.0.0

38f5600000-38f5665000 r-xp 00000000 08:08 1441767                       

/usr/lib64/libgmp.so.10.0.2

38f5665000-38f5864000 ---p 00065000 08:08 1441767                       

/usr/lib64/libgmp.so.10.0.2

38f5864000-38f586d000 rw-p 00064000 08:08 1441767                       

/usr/lib64/libgmp.so.10.0.2

38f5a00000-38f5a04000 r-xp 00000000 08:08 1445028                       

/usr/lib64/libpwl.so.5.0.0

38f5a04000-38f5c03000 ---p 00004000 08:08 1445028                       

/usr/lib64/libpwl.so.5.0.0

38f5c03000-38f5c04000 r--p 00003000 08:08 1445028                       

/usr/lib64/libpwl.so.5.0.0

38f5c04000-38f5c05000 rw-p 00004000 08:08 1445028                       

/usr/lib64/libpwl.so.5.0.0

38f5e00000-38f5e57000 r-xp 00000000 08:08 1441613                       

/usr/lib64/libmpfr.so.4.1.0

38f5e57000-38f6056000 ---p 00057000 08:08 1441613                       

/usr/lib64/libmpfr.so.4.1.0

38f6056000-38f6058000 r--p 00056000 08:08 1441613                       

/usr/lib64/libmpfr.so.4.1.0

38f6058000-38f6059000 rw-p 00058000 08:08 1441613                       

/usr/lib64/libmpfr.so.4.1.0

38f7200000-38f7215000 r-xp 00000000 08:08 1441563                       

/usr/lib64/libgcc_s-4.7.1-20120629.so.1

38f7215000-38f7414000 ---p 00015000 08:08 1441563                       

/usr/lib64/libgcc_s-4.7.1-20120629.so.1

38f7414000-38f7415000 rw-p 00014000 08:08 1441563                       

/usr/lib64/libgcc_s-4.7.1-20120629.so.1

38f9e00000-38f9ee5000 r-xp 00000000 08:08 1441577                       

/usr/lib64/libstdc++.so.6.0.17

38f9ee5000-38fa0e4000 ---p 000e5000 08:08 1441577                       

/usr/lib64/libstdc++.so.6.0.17

38fa0e4000-38fa0ec000 r--p 000e4000 08:08 1441577                       

/usr/lib64/libstdc++.so.6.0.17

38fa0ec000-38fa0ee000 rw-p 000ec000 08:08 1441577                       

/usr/lib64/libstdc++.so.6.0.17

38fa0ee000-38fa103000 rw-p 00000000 00:00 0 

7fe8f5f3b000-7fe8f5f3c000 rw-p 00000000 00:00 0 

7fe8f5f3d000-7fe8f6173000 rw-p 00000000 00:00 0 

7fe8f6173000-7fe8fc5a0000 r--p 00000000 08:08 1444107                   

/usr/lib/locale/locale-archive

7fe8fc5a0000-7fe8fc5a6000 rw-p 00000000 00:00 0 

7fe8fc5a6000-7fe8fc5bd000 r-xp 00000000 08:08 1441072                   

/usr/lib64/libz.so.1.2.5

7fe8fc5bd000-7fe8fc7bc000 ---p 00017000 08:08 1441072                   

/usr/lib64/libz.so.1.2.5

7fe8fc7bc000-7fe8fc7bd000 rw-p 00016000 08:08 1441072                   

/usr/lib64/libz.so.1.2.5

7fe8fc7bd000-7fe8fc7be000 rw-p 00000000 00:00 0 

7fe8fc7be000-7fe8fc7c1000 r-xp 00000000 08:08 1439482                   

/usr/lib64/libdl-2.15.so

7fe8fc7c1000-7fe8fc9c0000 ---p 00003000 08:08 1439482                   

/usr/lib64/libdl-2.15.so

7fe8fc9c0000-7fe8fc9c1000 r--p 00002000 08:08 1439482                   

/usr/lib64/libdl-2.15.so

7fe8fc9c1000-7fe8fc9c2000 rw-p 00003000 08:08 1439482                   

/usr/lib64/libdl-2.15.so

7fe8fc9c2000-7fe8fc9c3000 rw-p 00000000 00:00 0 

7fe8fc9c3000-7fe8fc9d7000 r-xp 00000000 08:08 1447989                   

/usr/lib64/libmpc.so.2.0.0

7fe8fc9d7000-7fe8fcbd6000 ---p 00014000 08:08 1447989                   

/usr/lib64/libmpc.so.2.0.0

7fe8fcbd6000-7fe8fcbd7000 r--p 00013000 08:08 1447989                   

/usr/lib64/libmpc.so.2.0.0

7fe8fcbd7000-7fe8fcbd8000 rw-p 00014000 08:08 1447989                   

/usr/lib64/libmpc.so.2.0.0

7fe8fcbd8000-7fe8fcbd9000 rw-p 00000000 00:00 0 

7fe8fcbf9000-7fe8fcbfb000 rw-p 00000000 00:00 0 

7fff7de71000-7fff7de92000 rw-p 00000000 00:00 0                         

[stack]

7fff7df78000-7fff7df79000 r-xp 00000000 00:00 0                          [vdso]

ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                 
[vsyscall]

xgcc: internal compiler error: Aborted (program cc1)

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to