public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/39101] New: [4.4 Regression] Null pointer dereference in delay slot
@ 2009-02-05 4:21 danglin at gcc dot gnu dot org
2009-02-05 4:23 ` [Bug middle-end/39101] " danglin at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-02-05 4:21 UTC (permalink / raw)
To: gcc-bugs
...
mkdir -p ada/bldtools/sinfo
rm -f ada/bldtools/sinfo/sinfo.ads ada/bldtools/sinfo/xsinfo.adb
cp -p ../../gcc/gcc/ada/sinfo.ads ../../gcc/gcc/ada/xsinfo.adb
ada/bldtools/sinfo
(cd ada/bldtools/sinfo && gnatmake -q xsinfo && ./xsinfo ../../sinfo.h )
/bin/sh: line 1: 13373 Segmentation fault (core dumped) ./xsinfo
../../sinfo.h
make[3]: *** [ada/sinfo.h] Error 139
dave@hiauly6:~/gnu/gcc-4.4/objdir/gcc/ada/bldtools/sinfo$ gdb -c core xsinfo
GNU gdb (GDB) 6.8.50.20080917-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "hppa-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
BFD: Warning: /home/dave/gnu/gcc-4.4/objdir/gcc/ada/bldtools/sinfo/core is
truncated: expected core file size >= 1658880, found: 1601536.
Reading symbols from
/home/dave/gnu/gcc-4.4/objdir/prev-gcc/libgcc_s.so.4...done.
Loaded symbols for /home/dave/gnu/gcc-4.4/objdir/./prev-gcc/libgcc_s.so.4
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld.so.1...done.
Loaded symbols for /lib/ld.so.1
Core was generated by `./xsinfo ../../sinfo.h'.
Program terminated with signal 11, Segmentation fault.
#0 0x403f15a8 in _Unwind_Find_FDE (pc=0x403ef63b, bases=0xfb283efc)
at ../../../gcc/libgcc/../gcc/unwind-dw2-fde.c:979
979 ../../../gcc/libgcc/../gcc/unwind-dw2-fde.c: No such file or directory.
in ../../../gcc/libgcc/../gcc/unwind-dw2-fde.c
(gdb) bt
#0 0x403f15a8 in _Unwind_Find_FDE (pc=0x403ef63b, bases=0xfb283efc)
at ../../../gcc/libgcc/../gcc/unwind-dw2-fde.c:979
#1 0x403ee128 in uw_frame_state_for (context=0xfb283d88, fs=0xfb28454c)
at ../../../gcc/libgcc/../gcc/unwind-dw2.c:1129
#2 0x403eeb68 in uw_init_context_1 (context=0xfb283d88, outer_cfa=0xfb283d80,
outer_ra=0x1cdc3) at ../../../gcc/libgcc/../gcc/unwind-dw2.c:1435
#3 0x403ef63c in _Unwind_RaiseException (exc=0x76ec0)
at ../../../gcc/libgcc/../gcc/unwind.inc:93
#4 0x0001cdc0 in ada.exceptions.exception_propagation.propagate_exception (
e=<value optimized out>, from_signal_handler=<value optimized out>)
at a-exexpr.adb:588
#5 0x0001ce3c in <__gnat_raise_nodefer_with_msg> (e=0x403ef63b)
at a-except.adb:817
#6 0x0001d4c4 in <__gnat_raise_exception> (e=0x6d120,
message=<value optimized out>) at a-except.adb:856
#7 0x0001ac3c in xsinfo__getline___1032 ()
#8 0x0001a2cc in _ada_xsinfo ()
(gdb) disass 0x403f1598 0x403f15b8
Dump of assembler code from 0x403f1598 to 0x403f15b8:
0x403f1598 <_Unwind_Find_FDE+92>: addil L%0,r19,r1
0x403f159c <_Unwind_Find_FDE+96>: ldw cc(r1),r10
0x403f15a0 <_Unwind_Find_FDE+100>: ldw 0(r10),r6
0x403f15a4 <_Unwind_Find_FDE+104>: cmpib,<> 0,r6,0x403f15bc
<_Unwind_Find_FDE+128>
0x403f15a8 <_Unwind_Find_FDE+108>: ldw 0(r6),ret0
0x403f15ac <_Unwind_Find_FDE+112>: b,l 0x403f1684
<_Unwind_Find_FDE+328>,r0
0x403f15b0 <_Unwind_Find_FDE+116>: addil L%0,r19,r1
0x403f15b4 <_Unwind_Find_FDE+120>: cmpib,= 0,r6,0x403f1680
<_Unwind_Find_FDE+324>
End of assembler dump.
(gdb) p/x $r6
$1 = 0x0
(gdb) p/x *(int *)$r10
$2 = 0x0
--
Summary: [4.4 Regression] Null pointer dereference in delay slot
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: danglin at gcc dot gnu dot org
GCC build triplet: hppa-unknown-linux-gnu
GCC host triplet: hppa-unknown-linux-gnu
GCC target triplet: hppa-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39101
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39101] [4.4 Regression] Null pointer dereference in delay slot
2009-02-05 4:21 [Bug middle-end/39101] New: [4.4 Regression] Null pointer dereference in delay slot danglin at gcc dot gnu dot org
@ 2009-02-05 4:23 ` danglin at gcc dot gnu dot org
2009-02-05 4:29 ` danglin at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-02-05 4:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from danglin at gcc dot gnu dot org 2009-02-05 04:22 -------
This occurs in stage2 with
dave@hiauly6:~/gnu/gcc-4.4/objdir/prev-gcc$ ./xgcc -B./ -v
Reading specs from ./specs
Target: hppa-linux
Configured with: ../gcc/configure --with-gnu-as --with-gnu-ld --enable-shared
--prefix=/home/dave/opt/gnu/gcc/gcc-4.4.0
--with-local-prefix=/home/dave/opt/gnu --enable-threads=posix
--enable-__cxa_atexit --build=hppa-linux --enable-clocale=gnu
--enable-java-gc=boehm --enable-java-awt=xlib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
Thread model: posix
gcc version 4.4.0 20090205 (experimental) [trunk revision 143949] (GCC)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39101
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39101] [4.4 Regression] Null pointer dereference in delay slot
2009-02-05 4:21 [Bug middle-end/39101] New: [4.4 Regression] Null pointer dereference in delay slot danglin at gcc dot gnu dot org
2009-02-05 4:23 ` [Bug middle-end/39101] " danglin at gcc dot gnu dot org
@ 2009-02-05 4:29 ` danglin at gcc dot gnu dot org
2009-02-05 10:10 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-02-05 4:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from danglin at gcc dot gnu dot org 2009-02-05 04:29 -------
Bootstrap is also broken on hppa64-hp-hpux11.11:
...
/test/gnu/gcc/objdir/./prev-gcc/xgcc -B/test/gnu/gcc/objdir/./prev-gcc/
-B/opt/g
nu64/gcc/gcc-4.4.0/hppa64-hp-hpux11.11/bin/ -g -O2 -DIN_GCC -W -Wall
-Wwrite-
strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Wold-style-definit
ion -Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variad
ic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H
-DGENERAT
OR_FILE -o build/gengenrtl \
build/gengenrtl.o build/errors.o .././libiberty/libiberty.a
build/genmodes -m > tmp-min-modes.c
/bin/sh: 12659 Memory fault(coredump)
make[3]: *** [s-modes-m] Error 139
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39101
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39101] [4.4 Regression] Null pointer dereference in delay slot
2009-02-05 4:21 [Bug middle-end/39101] New: [4.4 Regression] Null pointer dereference in delay slot danglin at gcc dot gnu dot org
2009-02-05 4:23 ` [Bug middle-end/39101] " danglin at gcc dot gnu dot org
2009-02-05 4:29 ` danglin at gcc dot gnu dot org
@ 2009-02-05 10:10 ` rguenth at gcc dot gnu dot org
2009-02-05 16:38 ` bonzini at gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-05 10:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2009-02-05 10:10 -------
Can you see which revision caused this?
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|hppa-unknown-linux-gnu |
GCC host triplet|hppa-unknown-linux-gnu |
GCC target triplet|hppa-unknown-linux-gnu |hppa64-hp-hpux11.11, hppa-
| |unknown-linux-gnu
Keywords| |build, wrong-code
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39101
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39101] [4.4 Regression] Null pointer dereference in delay slot
2009-02-05 4:21 [Bug middle-end/39101] New: [4.4 Regression] Null pointer dereference in delay slot danglin at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-02-05 10:10 ` rguenth at gcc dot gnu dot org
@ 2009-02-05 16:38 ` bonzini at gnu dot org
2009-02-05 16:53 ` dave at hiauly1 dot hia dot nrc dot ca
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bonzini at gnu dot org @ 2009-02-05 16:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from bonzini at gnu dot org 2009-02-05 16:37 -------
Maybe a dup of 39110 -- try revision 143938.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39101
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39101] [4.4 Regression] Null pointer dereference in delay slot
2009-02-05 4:21 [Bug middle-end/39101] New: [4.4 Regression] Null pointer dereference in delay slot danglin at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-02-05 16:38 ` bonzini at gnu dot org
@ 2009-02-05 16:53 ` dave at hiauly1 dot hia dot nrc dot ca
2009-02-05 17:05 ` bonzini at gnu dot org
2009-02-05 18:15 ` bonzini at gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2009-02-05 16:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca 2009-02-05 16:53 -------
Subject: Re: [4.4 Regression] Null pointer dereference in delay slot
> Maybe a dup of 39110 -- try revision 143938.
I'm reconfirming, but I believe 143938 is ok. The problem
is present with 143939.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39101
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39101] [4.4 Regression] Null pointer dereference in delay slot
2009-02-05 4:21 [Bug middle-end/39101] New: [4.4 Regression] Null pointer dereference in delay slot danglin at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-02-05 16:53 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2009-02-05 17:05 ` bonzini at gnu dot org
2009-02-05 18:15 ` bonzini at gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: bonzini at gnu dot org @ 2009-02-05 17:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from bonzini at gnu dot org 2009-02-05 17:05 -------
That would indeed make it a dup. (I meant 143938 would be the last good
build).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39101
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/39101] [4.4 Regression] Null pointer dereference in delay slot
2009-02-05 4:21 [Bug middle-end/39101] New: [4.4 Regression] Null pointer dereference in delay slot danglin at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-02-05 17:05 ` bonzini at gnu dot org
@ 2009-02-05 18:15 ` bonzini at gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: bonzini at gnu dot org @ 2009-02-05 18:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from bonzini at gnu dot org 2009-02-05 18:14 -------
every strict alignment platform is broken.
*** This bug has been marked as a duplicate of 39110 ***
--
bonzini at gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39101
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-02-05 18:15 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-05 4:21 [Bug middle-end/39101] New: [4.4 Regression] Null pointer dereference in delay slot danglin at gcc dot gnu dot org
2009-02-05 4:23 ` [Bug middle-end/39101] " danglin at gcc dot gnu dot org
2009-02-05 4:29 ` danglin at gcc dot gnu dot org
2009-02-05 10:10 ` rguenth at gcc dot gnu dot org
2009-02-05 16:38 ` bonzini at gnu dot org
2009-02-05 16:53 ` dave at hiauly1 dot hia dot nrc dot ca
2009-02-05 17:05 ` bonzini at gnu dot org
2009-02-05 18:15 ` bonzini at 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).