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.