Ashish SHUKLA
2009-Mar-04 08:38 UTC
GCC segfaulting while trying to compile latest Qt4 code
Hi everone, While trying to update my 'qt4-gui' port, gcc segfaults during compilation. I'm running FreeBSD 7.1-STABLE (amd64 architecture) updated on 3rd March, 2009. #v+ c++ -c -pipe -msse -msse2 -msse3 -mmmx -march=nocona -march=nocona -g -fno-exceptions -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -pipe -msse -msse2 -msse3 -mmmx -march=nocona -march=nocona -g -Wall -W -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I. -I../../include/QtCore -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I/usr/local/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/local/include -I.uic/release-shared -I/usr/local/include -o .obj/release-shared/qpolygon.o painting/qpolygon.cpp painting/qpolygon.cpp: In member function 'void QPolygon::setPoints(int, int, int, ...)': painting/qpolygon.cpp:311: internal compiler error: Segmentation fault: 11 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt4-gui/work/qt-x11-opensource-src-4.4.3/src/gui. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt4-gui. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt4-gui. #v- The complete build log, qpolygon.cpp and qpolygon.i (pre-processed output) is available in crash.tar.bz2[1], which I've uploaded to web. I tried to debug using gdb but it seems the segfault is handled internally by GCC. So, should I file a PR for this or should I report this to GCC bugtracker. References: [1] http://wahjava.googlepages.com/crash.tar.bz2 Thanks in advance. -- Ashish SHUKLA -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090304/ac497ea3/attachment.pgp
Daniel O'Connor
2009-Mar-04 16:16 UTC
GCC segfaulting while trying to compile latest Qt4 code
On Thursday 05 March 2009 02:44:14 Ashish SHUKLA wrote:> Hi everone, > > While trying to update my 'qt4-gui' port, gcc segfaults during > compilation. I'm running FreeBSD 7.1-STABLE (amd64 architecture) updated > on 3rd March, 2009.I would not rule out a hardware problem - seg faults while compiling heavy code (ie big C++ projects :) can be indicative of memory/CPU/PSU/motherboard problems. I'd suggest running memtest86 and prime95 for a few hours if you can. I'll start a build of qt4-gui on a 7.1 box I have but it will probably be a while before I get an answer :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090305/9ec5327b/attachment.pgp
Ashish SHUKLA
2009-Mar-06 01:33 UTC
GCC segfaulting while trying to compile latest Qt4 code
Nikos Ntarmos writes: [...]> Hi there.> Could you be running out of memory during that compilation? I'd suggest > adding some swap space[1] and trying again, or play around with lower gcc > optimization levels (-O0, -O).I'm already using a 2 GiB swap device. I added -dH option in existing c++ command-line[1] to force it to dump a core file, and then I loaded it in gdb and following is the backtrace. #v+ (gdb) bt #0 0x000000000088893c in kill () at kill.S:2 #1 0x00000000008879c4 in abort () at /usr/src/lib/libc/stdlib/abort.c:65 #2 0x0000000000811fb3 in real_abort () at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/diagnostic.c:652 #3 0x000000000081239b in diagnostic_action_after_output ( context=0x575, diagnostic=0x6) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/diagnostic.c:270 #4 0x00000000008120f5 in diagnostic_report_diagnostic ( context=0xbb16e0, diagnostic=0x7fffffffcad0) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/diagnostic.c:409 #5 0x0000000000812312 in internal_error (gmsgid=Variable "gmsgid" is not available. ) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/diagnostic.c:588 #6 0x000000000055c07d in crash_signal (signo=Variable "signo" is not available. ) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/toplev.c:607 #7 <signal handler called> #8 gimplify_va_arg_expr (expr_p=0x80521de00, pre_p=0x7fffffffd2d0, post_p=0x7fffffffd2c8) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/builtins.c:4377 #9 0x00000000007e9881 in gimplify_expr (expr_p=0x80521de00, pre_p=0x7fffffffd2d0, post_p=0x7fffffffd2c8, gimple_test_f=0x7f1cb3 <is_gimple_reg_rhs>, fallback=fb_rvalue) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:5545 #10 0x00000000007e8b83 in gimplify_modify_expr ( expr_p=0x7fffffffd400, pre_p=0x7fffffffd2d0, post_p=0x7fffffffd2c8, want_value=0 '\0') at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:3565 #11 0x00000000007e9c25 in gimplify_expr (expr_p=0x7fffffffd400, pre_p=0x7fffffffd2d0, post_p=0x7fffffffd2c8, gimple_test_f=0x7f1bf5 <is_gimple_stmt>, fallback=fb_none) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:5518 #12 0x00000000007eb1b4 in gimplify_to_stmt_list ( stmt_p=0x7fffffffd400) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:4309 #13 0x00000000007e958f in gimplify_expr (expr_p=0x805216e90, pre_p=0x7fffffffd410, post_p=0x7fffffffd408, gimple_test_f=0x7f1bf5 <is_gimple_stmt>, fallback=fb_none) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:4124 #14 0x00000000007e9919 in gimplify_expr (expr_p=0x7fffffffd588, pre_p=0x7fffffffd530, post_p=0x7fffffffd528, gimple_test_f=0x7f1bf5 <is_gimple_stmt>, fallback=fb_none) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:3746 #15 0x0000000000488dac in gimplify_cp_loop (cond=Variable "cond" is not available. ) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/cp-gimplify.c:246 #16 0x0000000000489151 in cp_gimplify_expr (expr_p=0x805216e70, pre_p=0x7fffffffd720, post_p=0x7fffffffd718) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/cp-gimplify.c:283 #17 0x00000000007e8fbe in gimplify_expr (expr_p=0x805216e70, pre_p=0x7fffffffd720, post_p=0x7fffffffd718, gimple_test_f=0x7f1bf5 <is_gimple_stmt>, fallback=fb_none) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:5449 #18 0x00000000007e9919 in gimplify_expr (expr_p=0x80521dfe0, pre_p=0x7fffffffd840, post_p=0x7fffffffd838, gimple_test_f=0x7f1bf5 <is_gimple_stmt>, fallback=fb_none) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:3746 #19 0x00000000007eb1b4 in gimplify_to_stmt_list (stmt_p=0x80521dfe0) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:4309 #20 0x00000000007ea13d in gimplify_expr (expr_p=0x803ee97b0, pre_p=0x7fffffffd980, post_p=0x7fffffffd978, gimple_test_f=0x7f1bf5 <is_gimple_stmt>, fallback=fb_none) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:1091 #21 0x00000000007eabc8 in gimplify_body (body_p=0x803ee97b0, fndecl=0x803ee9700, do_parms=1 '\001') at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:6317 #22 0x00000000007eadaf in gimplify_function_tree (fndecl=0x803ee9700) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/gimplify.c:6393 #23 0x000000000048e208 in c_genericize (fndecl=0x803ee9700) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-gimplify.c:106 #24 0x0000000000488c18 in cp_genericize (fndecl=0x803ee9700) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/cp-gimplify.c:755 #25 0x00000000004287bb in finish_function (flags=0) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/decl.c:11336 #26 0x000000000045824f in cp_parser_function_definition_after_declarator (parser=0x800c07c80, inline_p=0 '\0') at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:15650 #27 0x0000000000458684 in cp_parser_init_declarator ( parser=0x800c07c80, decl_specifiers=0x7fffffffdbb0, checks=0x0, function_definition_allowed_p=1 '\001', member_p=0 '\0', declares_class_or_enum=Variable "declares_class_or_enum" is not available. ) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:15582 #28 0x000000000044ea23 in cp_parser_simple_declaration ( parser=0x800c07c80, function_definition_allowed_p=Variable "function_definition_allowed_p" is not available. ) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:7431 #29 0x0000000000454f1a in cp_parser_block_declaration ( parser=0x800c07c80, statement_p=0 '\0') at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:7331 #30 0x0000000000458ee4 in cp_parser_declaration (parser=0x800c07c80) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:7247 #31 0x0000000000459335 in cp_parser_declaration_seq_opt ( parser=0x800c07c80) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:7142 #32 0x0000000000459930 in c_parse_file () at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/parser.c:2845 #33 0x000000000040074b in c_common_parse_file (set_yydebug=Variable "set_yydebug" is not available. ) at /usr/src/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/c-opts.c:1184 #34 0x000000000055d2e8 in toplev_main (argc=Variable "argc" is not available. ) at /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/toplev.c:1035 #35 0x00000000004001ae in _start (ap=Variable "ap" is not available. ) at /usr/src/lib/csu/amd64/crt1.c:92 #36 0x0000000000000000 in ?? () #37 0x0000000000000042 in ?? () #38 0x00007fffffffe1a8 in ?? () [...] #1114 0x01a1c0c748006a10 in ?? () #1115 0x66fdebf4050f0000 in ?? () #1116 0x9066669066669066 in ?? () #1117 0x00007fffffffde28 in ?? () #1118 0x0000000000000042 in ?? () #1119 0x00007fffffffe040 in ?? () #1120 0x000000000000000e in ?? () Cannot access memory at address 0x800000000000 #v- References: [1] http://news.gmane.org/find-root.php?message_id=%3c84dead720902121838p3a72f993xc1c52104c666ed0a%40mail.gmail.com%3e HTH -- Ashish SHUKLA -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090306/49f3014b/attachment.pgp