public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/13906] New: genmodes.c:964: internal compiler error: Bus error in md5_process_block
@ 2004-01-28 23:45 danglin at gcc dot gnu dot org
  2004-01-29  1:03 ` [Bug other/13906] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: danglin at gcc dot gnu dot org @ 2004-01-28 23:45 UTC (permalink / raw)
  To: gcc-bugs

stage1/xgcc -Bstage1/ -B/opt/gnu/gcc/gcc-3.4/hppa2.0w-hp-hpux11.00/bin/ -c   -g 
-O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
 -pedantic -Wno-long-long -Wold-style-definition -Werror -fno-common   -DHAVE_CO
NFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc
/gcc/../include  ../../gcc/gcc/genmodes.c -o genmodes.o
../../gcc/gcc/genmodes.c: In function `emit_mode_mask':
../../gcc/gcc/genmodes.c:964: internal compiler error: Bus error

The configure command was:

../gcc/configure --with-gnu-as --with-as=/opt/gnu/bin/as --enable-shared --with-
local-prefix=/opt/gnu --prefix=/opt/gnu/gcc/gcc-3.4 --enable-debug=no --disable-
nls --enable-checking="misc,tree,rtl,rtlflag,gc,gcac,fold" &&

The problem does not occur if `--enable-checking' is not specified.

The stack trace is:

Program received signal SIGBUS, Bus error.
md5_process_block (buffer=0x7aed3f6e, len=64, ctx=0x7eff1500)
at ../../gcc/libiberty/md5.c:325
325           OP (A, B, C, D,  7, (md5_uint32) 0xd76aa478);

#0  md5_process_block (buffer=0x7aed3f6e, len=64, ctx=0x7eff1500)
    at ../../gcc/libiberty/md5.c:325
#1  0x00af0064 in md5_process_bytes (buffer=0x7aed3fae, len=96, ctx=0x7eff1500)
    at ../../gcc/libiberty/md5.c:239
#2  0x00270b84 in fold_checksum_tree (expr=0x7aed3f00, ctx=0x7eff1500,
    ht=0x40079aa0) at ../../gcc/gcc/fold-const.c:8408
...

The fault occurs because of a misaligned load for a word:

0x00af0184 <md5_process_block+156>:     ldw 0(,r18),r20

(gdb) printf "0x%x\n",$r18
0x7aed3f6e

This is buffer address passed to md5_process_block from
md5_process_bytes.

The same error occurs on hppa-linux but the exception is
handled by the kernel unaligned handler.

-- 
           Summary: genmodes.c:964: internal compiler error: Bus error in
                    md5_process_block
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: hppa2.0-hp-hpux11.00
  GCC host triplet: hppa2.0-hp-hpux11.00
GCC target triplet: hppa2.0-hp-hpux11.00


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13906


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <bug-13906-276@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-02-06 14:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-28 23:45 [Bug bootstrap/13906] New: genmodes.c:964: internal compiler error: Bus error in md5_process_block danglin at gcc dot gnu dot org
2004-01-29  1:03 ` [Bug other/13906] " pinskia at gcc dot gnu dot org
2005-07-03 15:38 ` cvs-commit at gcc dot gnu dot org
2005-07-03 15:40 ` cvs-commit at gcc dot gnu dot org
2005-07-07  7:26 ` brian at dessent dot net
2005-07-07 14:56 ` dj at redhat dot com
2005-07-08  0:59 ` brian at dessent dot net
2005-07-12 21:25 ` sje at cup dot hp dot com
     [not found] <bug-13906-276@http.gcc.gnu.org/bugzilla/>
2006-02-06 13:49 ` ghazi at gcc dot gnu dot org
2006-02-06 14:07 ` ghazi at gcc dot gnu dot org
2006-02-06 14:07 ` ghazi at gcc dot gnu dot org

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).