[Bug 756235] New: gcc hangs
https://bugzilla.novell.com/show_bug.cgi?id=756235 https://bugzilla.novell.com/show_bug.cgi?id=756235#c0 Summary: gcc hangs Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bart@bartvanassche.be QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=485279) --> (http://bugzilla.novell.com/attachment.cgi?id=485279) Test input t.c User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 gcc never finishes for certain input. Reproducible: Always Steps to Reproduce: 1. Make sure that the RPM gcc-4.6-15.1.3.x86_64 is installed. 2. Start gcc as follows: gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -femit-struct-debug-baseonly -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -fno-inline -fno-inline-functions -S t.c Actual Results: gcc hangs: compilation never finishes and CPU usage is 100%. According to gdb, gcc hangs in the following code: (gdb) bt #0 canonicalize_values_star (slot=0x19118d0, data=0x180f088) at ../../gcc/var-tracking.c:3144 #1 0x0000000000af84e8 in htab_traverse_noresize (htab=<optimized out>, callback=0x7ccb50 <canonicalize_values_star>, info=0x180f088) at ../../libiberty/hashtab.c:784 #2 0x00000000007cfc49 in compute_bb_dataflow (bb=<optimized out>) at ../../gcc/var-tracking.c:6015 #3 0x00000000007d3a43 in vt_find_locations () at ../../gcc/var-tracking.c:6155 #4 0x00000000007d4105 in variable_tracking_main_1 () at ../../gcc/var-tracking.c:8563 #5 variable_tracking_main () at ../../gcc/var-tracking.c:8608 #6 0x0000000000614724 in execute_one_pass (pass=0x10364a0) at ../../gcc/passes.c:1556 #7 execute_one_pass (pass=0x10364a0) at ../../gcc/passes.c:1499 #8 0x00000000006149a5 in execute_pass_list (pass=0x10364a0) at ../../gcc/passes.c:1611 #9 0x00000000006149b7 in execute_pass_list (pass=0x10331e0) at ../../gcc/passes.c:1612 #10 0x00000000006149b7 in execute_pass_list (pass=0x1033240) at ../../gcc/passes.c:1612 #11 0x00000000006df6d4 in tree_rest_of_compilation (fndecl=0x7fdb188c4400) at ../../gcc/tree-optimize.c:422 #12 0x000000000081fc8f in cgraph_expand_function (node=0x7fdb188cd2c0) at ../../gcc/cgraphunit.c:1576 #13 0x00000000008218ea in cgraph_expand_all_functions () at ../../gcc/cgraphunit.c:1635 #14 cgraph_optimize () at ../../gcc/cgraphunit.c:1899 #15 0x0000000000821caa in cgraph_finalize_compilation_unit () at ../../gcc/cgraphunit.c:1096 #16 0x000000000042cbc5 in c_write_global_declarations () at ../../gcc/c-decl.c:9871 #17 0x00000000006a458b in compile_file () at ../../gcc/toplev.c:591 #18 do_compile () at ../../gcc/toplev.c:1902 #19 toplev_main (argc=46, argv=0x7fff9f4496c8) at ../../gcc/toplev.c:1965 #20 0x00007fdb1a47f3bd in __libc_start_main () from /lib64/libc.so.6 #21 0x000000000041c5e9 in _start () at ../sysdeps/x86_64/elf/start.S:113 Expected Results: Either an error message is printed or compilation finishes after some time. $ rpm -q gcc gcc-4.6-15.1.3.x86_64 $ rpm --verify gcc; echo $? 0 $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.6/lto-wrapper Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.6 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.6 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux Thread model: posix gcc version 4.6.2 (SUSE Linux) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=756235 https://bugzilla.novell.com/show_bug.cgi?id=756235#c1 --- Comment #1 from Bart Van Assche <bart@bartvanassche.be> 2012-04-09 08:33:47 UTC --- The actual hanging process is cc1. Version information for cc1 is as follows: $ rpm -qf /usr/lib64/gcc/x86_64-suse-linux/4.6/cc1 cpp46-4.6.2_20111026-1.1.4.x86_64 $ rpm --verify cpp46-4.6.2_20111026-1.1.4.x86_64; echo $? 0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=756235 https://bugzilla.novell.com/show_bug.cgi?id=756235#c Marcus Meissner <meissner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |rguenther@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=756235 https://bugzilla.novell.com/show_bug.cgi?id=756235#c2 Richard Guenther <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #2 from Richard Guenther <rguenther@suse.com> 2012-04-10 08:29:25 UTC --- Confirmed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=756235 https://bugzilla.novell.com/show_bug.cgi?id=756235#c3 Richard Guenther <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |UPSTREAM --- Comment #3 from Richard Guenther <rguenther@suse.com> 2012-04-10 08:48:10 UTC --- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52925 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=756235 https://bugzilla.novell.com/show_bug.cgi?id=756235#c4 --- Comment #4 from Bart Van Assche <bart@bartvanassche.be> 2012-04-10 10:56:41 UTC --- Why has this issue been marked as resolved ? As far as I know no fix is available yet. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=756235 https://bugzilla.novell.com/show_bug.cgi?id=756235#c5 --- Comment #5 from Richard Guenther <rguenther@suse.com> 2012-04-10 11:07:28 UTC --- Because it is tracked upstream and we don't update GCC packages on openSUSE. 12.2 will use GCC 4.7 which is not affected. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com