[Bug 735982] New: Endless recursion with __builtin_object_size
https://bugzilla.novell.com/show_bug.cgi?id=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c0 Summary: Endless recursion with __builtin_object_size Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: doerges@pre-sense.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51077 The patch from GCC bugzilla applies cleanly to the GCC46 source RPM (gcc46-4.6.2_20111026-1.1.4.src.rpm). So it's safe to assume that openSUSE GCC is affected. Happens on both x86-64 and x86-32 plattforms. Reproducible: Always Steps to Reproduce: 1. Compile internal software module 2. GCC segfaults with ICE Actual Results: The code used to compile cleanly under openSUSE-11.4 (GCC 4.5.1). With openSUSE-12.1 (GCC 4.6.2) I get: --- snip --- gcc -DHAVE_CONFIG_H -I. -I.. -I.. -D_FORTIFY_SOURCE=2 -I/home/user/software-install/module-1.5.3pre/include/ -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -O2 -g3 -I/home/user/software-install/liba-0.1.1pre/include -I/home/user/software-install/libb-1.2.1pre//include -MT unit_tests-module.o -MD -MP -MF .deps/unit_tests-module.Tpo -c -o unit_tests-module.o `test -f '../module.c' || echo './'`../module.c gcc: internal compiler error: Speicherzugriffsfehler (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.opensuse.org/> for instructions. --- snap --- The backtrace from the core includes a repeating series of: --- snip --- #16220 0x00000000006de266 in collect_object_sizes_for (osi=0x7fffa5ece8a0, var=0x7fac873ce528) at ../../gcc/tree-object-size.c:999 #16221 0x00000000006dd15f in compute_builtin_object_size (ptr=0x7fac873ce528, object_size_type=0) at ../../gcc/tree-object-size.c:526 #16222 0x00000000006dd897 in addr_object_size (osi=<optimized out>, ptr=0x7fac8782bc30, object_size_type=0) at ../../gcc/tree-object-size.c:180 #16223 0x00000000006dde82 in expr_object_size (osi=<optimized out>, value=<optimized out>, ptr=<optimized out>) at ../../gcc/tree-object-size.c:637 --- snap --- Expected Results: The module should compile cleanly. GCC should not crash. Unfortunately I cannot disclose the software. But I'll check whether the patch supplied by the GCC folks solves the problem. -- 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c Marcus Meissner <meissner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@suse.com 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c1 Richard Guenther <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Richard Guenther <rguenther@suse.com> 2011-12-12 10:52:41 UTC --- Fixed in devel:gcc. -- 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c2 --- Comment #2 from Till Dörges <doerges@pre-sense.de> 2011-12-12 14:07:38 UTC --- I tried with the following packages from http://download.opensuse.org/repositories/devel:/gcc/openSUSE_Factory cpp46-4.6.2_20111026-65.5 gcc46-4.6.2_20111026-65.5 gcc46-c++-4.6.2_20111026-65.5 libgcc46-4.6.2_20111026-65.5 libgomp46-4.6.2_20111026-65.5 libstdc++46-4.6.2_20111026-65.5 libstdc++46-devel-4.6.2_20111026-65.5 The error is still present. Wrong repo/packages? -- 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c3 --- Comment #3 from Richard Guenther <rguenther@suse.com> 2011-12-12 16:23:41 UTC --- (In reply to comment #2)
I tried with the following packages from http://download.opensuse.org/repositories/devel:/gcc/openSUSE_Factory
cpp46-4.6.2_20111026-65.5 gcc46-4.6.2_20111026-65.5 gcc46-c++-4.6.2_20111026-65.5 libgcc46-4.6.2_20111026-65.5 libgomp46-4.6.2_20111026-65.5 libstdc++46-4.6.2_20111026-65.5 libstdc++46-devel-4.6.2_20111026-65.5
The error is still present.
Wrong repo/packages?
Too old. Should be sth with 4.6.2_20111026 -- 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c4 --- Comment #4 from Till Dörges <doerges@pre-sense.de> 2011-12-12 17:34:04 UTC --- (In reply to comment #3)
(In reply to comment #2)
I tried with the following packages from http://download.opensuse.org/repositories/devel:/gcc/openSUSE_Factory
cpp46-4.6.2_20111026-65.5 gcc46-4.6.2_20111026-65.5 gcc46-c++-4.6.2_20111026-65.5 libgcc46-4.6.2_20111026-65.5 libgomp46-4.6.2_20111026-65.5 libstdc++46-4.6.2_20111026-65.5 libstdc++46-devel-4.6.2_20111026-65.5
The error is still present.
Wrong repo/packages?
Too old. Should be sth with 4.6.2_20111026
Hm, the string "4.6.2_20111026" occurs in all the above packages. -- 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c5 --- Comment #5 from Richard Guenther <rguenther@suse.com> 2011-12-13 10:18:52 UTC --- (In reply to comment #4)
(In reply to comment #3)
(In reply to comment #2)
I tried with the following packages from http://download.opensuse.org/repositories/devel:/gcc/openSUSE_Factory
cpp46-4.6.2_20111026-65.5 gcc46-4.6.2_20111026-65.5 gcc46-c++-4.6.2_20111026-65.5 libgcc46-4.6.2_20111026-65.5 libgomp46-4.6.2_20111026-65.5 libstdc++46-4.6.2_20111026-65.5 libstdc++46-devel-4.6.2_20111026-65.5
The error is still present.
Wrong repo/packages?
Too old. Should be sth with 4.6.2_20111026
Hm, the string "4.6.2_20111026" occurs in all the above packages.
I meant 20111212 of course. -- 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c6 --- Comment #6 from Till Dörges <doerges@pre-sense.de> 2011-12-13 16:54:58 UTC --- (In reply to comment #5)
I meant 20111212 of course.
I can confirm that using these packages from http://download.opensuse.org/repositories/devel:/gcc/openSUSE_12.1/ cpp46-4.6.2_20111212-66.1.i586 gcc46-4.6.2_20111212-66.1.i586 gcc46-c++-4.6.2_20111212-66.1.i586 libgcc46-4.6.2_20111212-66.1.i586 libgomp46-4.6.2_20111212-66.1.i586 libstdc++46-4.6.2_20111212-66.1.i586 libstdc++46-devel-4.6.2_20111212-66.1.i586 made the original problem disappear. It seems, however, to have been traded against a different problem. My testsuite compiles cleanly (old and new compiler) on 64 bit but not on 32. W/ the old compiler the tests would compile (except for the original problem). W/ the 4.6.2_20111212-66 compiler I get segfaults. Is this to be expected or should the 4.6.2_20111212-66 be more or less production quality? -- 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c7 --- Comment #7 from Richard Guenther <rguenther@suse.com> 2011-12-14 09:27:55 UTC --- (In reply to comment #6)
(In reply to comment #5)
I meant 20111212 of course.
I can confirm that using these packages from http://download.opensuse.org/repositories/devel:/gcc/openSUSE_12.1/
cpp46-4.6.2_20111212-66.1.i586 gcc46-4.6.2_20111212-66.1.i586 gcc46-c++-4.6.2_20111212-66.1.i586 libgcc46-4.6.2_20111212-66.1.i586 libgomp46-4.6.2_20111212-66.1.i586 libstdc++46-4.6.2_20111212-66.1.i586 libstdc++46-devel-4.6.2_20111212-66.1.i586
made the original problem disappear.
It seems, however, to have been traded against a different problem.
My testsuite compiles cleanly (old and new compiler) on 64 bit but not on 32. W/ the old compiler the tests would compile (except for the original problem). W/ the 4.6.2_20111212-66 compiler I get segfaults.
Is this to be expected or should the 4.6.2_20111212-66 be more or less production quality?
Yes. Please provide pre-processed source of the file that causes the compiler to segfault together with all command-line flags you pass to the compiler. -- 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c8 --- Comment #8 from Till Dörges <doerges@pre-sense.de> 2011-12-14 13:51:46 UTC --- (In reply to comment #7)
(In reply to comment #6)
(In reply to comment #5)
I meant 20111212 of course.
I can confirm that using these packages from http://download.opensuse.org/repositories/devel:/gcc/openSUSE_12.1/
cpp46-4.6.2_20111212-66.1.i586 gcc46-4.6.2_20111212-66.1.i586 gcc46-c++-4.6.2_20111212-66.1.i586 libgcc46-4.6.2_20111212-66.1.i586 libgomp46-4.6.2_20111212-66.1.i586 libstdc++46-4.6.2_20111212-66.1.i586 libstdc++46-devel-4.6.2_20111212-66.1.i586
made the original problem disappear.
It seems, however, to have been traded against a different problem.
I can't reproduce it. I tried again with a fresh set of sources and the GCC version from above and everything is fine. Thanks! BTW, when trying to build my own GCC RPM (rpmbuild -bb ...) it failed quite miserably. After a few hours compile time rpmbuild would complain that files requested by the SPEC file weren't present. Do I need some special setup or should I consider filing a bugreport? -- 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c9 --- Comment #9 from Richard Guenther <rguenther@suse.com> 2011-12-14 14:35:59 UTC --- (In reply to comment #8)
(In reply to comment #7)
(In reply to comment #6)
(In reply to comment #5)
I meant 20111212 of course.
I can confirm that using these packages from http://download.opensuse.org/repositories/devel:/gcc/openSUSE_12.1/
cpp46-4.6.2_20111212-66.1.i586 gcc46-4.6.2_20111212-66.1.i586 gcc46-c++-4.6.2_20111212-66.1.i586 libgcc46-4.6.2_20111212-66.1.i586 libgomp46-4.6.2_20111212-66.1.i586 libstdc++46-4.6.2_20111212-66.1.i586 libstdc++46-devel-4.6.2_20111212-66.1.i586
made the original problem disappear.
It seems, however, to have been traded against a different problem.
I can't reproduce it. I tried again with a fresh set of sources and the GCC version from above and everything is fine.
Thanks!
BTW, when trying to build my own GCC RPM (rpmbuild -bb ...) it failed quite miserably. After a few hours compile time rpmbuild would complain that files requested by the SPEC file weren't present.
Do I need some special setup or should I consider filing a bugreport?
No, that's expected. It only builds inside a chroot using 'build' from the build package. -- 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c10 --- Comment #10 from Till Dörges <doerges@pre-sense.de> 2011-12-14 16:13:47 UTC --- (In reply to comment #9)
BTW, when trying to build my own GCC RPM (rpmbuild -bb ...) it failed quite miserably. After a few hours compile time rpmbuild would complain that files requested by the SPEC file weren't present.
Do I need some special setup or should I consider filing a bugreport?
No, that's expected. It only builds inside a chroot using 'build' from the build package.
I did try build the other day, too, but it threw quite a bunch of errors at me. I'll try again if I find a moment to spare. Thanks again. -- 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c11 --- Comment #11 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-12-16 11:00:16 CET --- This is an autogenerated message for OBS integration: This bug (735982) was mentioned in https://build.opensuse.org/request/show/96841 Factory / gcc46 -- 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=735982 https://bugzilla.novell.com/show_bug.cgi?id=735982#c12 --- Comment #12 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-12-23 11:00:22 CET --- This is an autogenerated message for OBS integration: This bug (735982) was mentioned in https://build.opensuse.org/request/show/98020 Factory / gcc46 -- 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