public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ye dot patrick at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/31502] New: gcc/g++ randomly seg faults, sometimes freezes the entire machine Date: Sat, 07 Apr 2007 11:45:00 -0000 [thread overview] Message-ID: <bug-31502-14370@http.gcc.gnu.org/bugzilla/> (raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 5439 bytes --] Machine info: CPU: AMD 4200+ (64 bit) RAM: 3G DDR OS info: Type: Linux Distro: Ubuntu Edgy 6.10 Kernel: 2.6.17-10-generic #2 SMP Tue Dec 5 22:28:26 UTC 2006 i686 GNU/Linu Bit: 32 bit OS Overview of the problem: gcc and g++ would frequently and randomly seg faults, and this would sometimes freeze the machine and force the "reset" button to be pressed. Code on which these errors have occurred: mplayer 1.0pre8, Blender. Example of compilation command that produces the error: gcc -c -O3 -g -Wdeclaration-after-statement -Wall -Wno-switch -DHAVE_AV_CONFIG_H -I.. -I/home/jingy/install/blender/cvs_new/blender/extern/ffmpeg/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DHAVE_AV_CONFIG_H -DMOZ_NOT_NET snow.c -o /home/jingy/install/blender/cvs_new/blender/obj/linux-glibc2.4-i386/extern/ffmpeg/libavcodec/snow.o Output of the compiler: --- snow.c: In function pred_mv: snow.c:1961: warning: suggest parentheses around + or - inside shift snow.c:1962: warning: suggest parentheses around + or - inside shift snow.c:1963: warning: suggest parentheses around + or - inside shift snow.c:1964: warning: suggest parentheses around + or - inside shift snow.c:1965: warning: suggest parentheses around + or - inside shift snow.c:1966: warning: suggest parentheses around + or - inside shift snow.c: In function encode_q_branch: snow.c:1994: warning: initialization discards qualifiers from pointer target type snow.c:1995: warning: initialization discards qualifiers from pointer target type snow.c:1996: warning: initialization discards qualifiers from pointer target type snow.c:1997: warning: initialization discards qualifiers from pointer target type snow.c: In function encode_q_branch2: snow.c:2221: warning: initialization discards qualifiers from pointer target type snow.c:2222: warning: initialization discards qualifiers from pointer target type snow.c: In function decode_q_branch: snow.c:2274: warning: initialization discards qualifiers from pointer target type snow.c:2275: warning: initialization discards qualifiers from pointer target type snow.c: In function pred_block: snow.c:2497: warning: suggest parentheses around && within || snow.c: In function ff_snow_inner_add_yblock: snow.c:2538: warning: left shift count is negative snow.c: In function add_yblock_buffered: snow.c:2567: warning: unused variable y snow.c:2567: warning: unused variable x snow.c:2555: warning: unused variable dst snow.c: In function add_yblock: snow.c:2809: warning: initialization discards qualifiers from pointer target type snow.c:2821: warning: left shift count is negative snow.c: In function predict_slice_buffered: snow.c:2896: warning: passing argument 5 of add_yblock_buffered discards qualifiers from pointer target type snow.c: In function get_block_bits: snow.c:3028: warning: initialization discards qualifiers from pointer target type snow.c:3029: warning: initialization discards qualifiers from pointer target type snow.c: In function get_block_rd: snow.c:3065: warning: unused variable obmc snow.c: In function get_4block_rd: snow.c:3182: warning: passing argument 2 of add_yblock discards qualifiers from pointer target type snow.c:3168: warning: unused variable b_height snow.c: In function common_init: snow.c:3872: warning: assignment from incompatible pointer type snow.c:3872: warning: assignment from incompatible pointer type snow.c:3873: warning: assignment from incompatible pointer type snow.c:3873: warning: assignment from incompatible pointer type snow.c:3874: warning: assignment from incompatible pointer type snow.c:3874: warning: assignment from incompatible pointer type snow.c:3875: warning: assignment from incompatible pointer type snow.c:3875: warning: assignment from incompatible pointer type snow.c: At top level: snow.c:1327: warning: spatial_compose53i defined but not used snow.c:1494: warning: spatial_compose97i defined but not used snow.c: In function get_dc: snow.c:3021: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>. The bug is not reproducible, so it is likely a hardware or OS problem. make[3]: *** [/home/jingy/install/blender/cvs_new/blender/obj/linux-glibc2.4-i386/extern/ffmpeg/libavcodec/snow.o] Error 1 make[2]: *** [all] Error 1 make[1]: *** [all] Error 1 make: *** [all] Error 1 --- The output of the preprocessor (snow.i) can be downloaded from: http://www.csse.unimelb.edu.au/~jingy/download/snow.i Sometimes these errors would be immediately followed by a kernel warning stating some memory protection has failed. Sometimes these errors would be so severe that no other processes can be run. Please feel free to contact me for further information. Thanks a lot. Patrick -- Summary: gcc/g++ randomly seg faults, sometimes freezes the entire machine Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ye dot patrick at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31502
next reply other threads:[~2007-04-07 11:45 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-04-07 11:45 ye dot patrick at gmail dot com [this message] 2007-04-07 14:31 ` [Bug c++/31502] " pinskia at gcc dot gnu dot org 2007-04-07 14:43 ` ye dot patrick at gmail dot com 2007-04-07 15:29 ` bangerth at dealii dot org 2007-04-08 3:39 ` ye dot patrick at gmail dot com 2007-05-07 1:54 ` bgoodr+gccbugzilla at gmail dot com 2007-05-07 2:00 ` pinskia at gcc dot gnu dot org 2007-05-07 3:19 ` bgoodr+gccbugzilla at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-31502-14370@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).