public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/17848] New: segfault at java/class.c:2186 with PieSpy
@ 2004-10-05 18:11 timo dot lindfors at iki dot fi
  2004-10-05 18:14 ` [Bug java/17848] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: timo dot lindfors at iki dot fi @ 2004-10-05 18:11 UTC (permalink / raw)
  To: gcc-bugs

I get "internal compiler error: Segmentation fault" when I try to
compile a modified version of PieSpy, available at
http://iki.fi/lindi/piespy-without-imageio.tar.gz (sorry, I couldn't
create a reduced testcase):

[lindi@protu piespy-without-imageio]$
PATH=/home/lindi/installdir/installdir-gcc20041005/bin:$PATH gcj -C
org/jibble/socnet/Graph.java
./org/jibble/socnet/SocialNetworkBot.java:29: error: Superclass `PircBot' of
class `org.jibble.socnet.SocialNetworkBot' not found.
   public class SocialNetworkBot extends PircBot {
                                         ^
./org/jibble/socnet/SocialNetworkBot.java:159: error: Type `User' not found in
the declaration of the argument `users' of method `onUserList'.
       protected void onUserList(String channel, User[] users) {
                                                 ^
org/jibble/socnet/Graph.java:484: 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.

( Later I was told at #gcj that I need to add -Ilib/pircbot.jar, and
indeed, that seems to create Graph.class without warnings. )

I've built gcc from cvs today with

CVS_RSH=ssh cvs -d :ext:anoncvs@savannah.gnu.org:/cvsroot/gcc -qz9 checkout -P
gcc
cd gcc; mkdir builddir; cd builddir
../configure --prefix=/home/lindi/installdir/installdir-gcc20041005
make
make install

which can also be seen from the version information

[lindi@protu piespy-without-imageio]$
PATH=/home/lindi/installdir/installdir-gcc20041005/bin:$PATH gcj -v
Reading specs from
/home/lindi/installdir/installdir-gcc20041005/lib/gcc/i686-pc-linux-gnu/4.0.0/specs
Reading specs from
/home/lindi/installdir/installdir-gcc20041005/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../configure
--prefix=/home/lindi/installdir/installdir-gcc20041005
Thread model: posix
gcc version 4.0.0 20041005 (experimental)


I used gdb to follow gcj up to a point where it does a vfork() for
"jc1". I wrote the arguments down and called jc1 directly, that also
segfaults. Now I can however get a nice (?) backtrace too:

[lindi@protu piespy-without-imageio]$ gdb
/home/lindi/installdir/installdir-gcc20041005/libexec/gcc/i686-pc-linux-gnu/4.0.0/jc1
GNU gdb Red Hat Linux (6.1post-1.20040607.17rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".

(gdb) set args org/jibble/socnet/Graph.java -quiet -dumpbase Graph.java
-mtune=pentiumpro -auxbase-strip NONE -g1 -fsyntax-only -femit-class-files -o
/dev/null
(gdb) r
Starting program:
/home/lindi/installdir/installdir-gcc20041005/libexec/gcc/i686-pc-linux-gnu/4.0.0/jc1 org/jibble/socnet/Graph.java -quiet -dumpbase Graph.java -mtune=pentiumpro
-auxbase-strip NONE -g1 -fsyntax-only -femit-class-files -o /dev/null
./org/jibble/socnet/SocialNetworkBot.java:29: error: Superclass `PircBot' of
class `org.jibble.socnet.SocialNetworkBot' not found.
   public class SocialNetworkBot extends PircBot {
                                         ^
./org/jibble/socnet/SocialNetworkBot.java:159: error: Type `User' not found in
the declaration of the argument `users' of method `onUserList'.
       protected void onUserList(String channel, User[] users) {
                                                 ^

Program received signal SIGSEGV, Segmentation fault.
layout_class_methods (this_class=0x406a8570) at ../../gcc/java/class.c:2186
2186          if (!TYPE_NVIRTUALS (super_class))
(gdb) bt
#0  layout_class_methods (this_class=0x406a8570) at ../../gcc/java/class.c:2186
#1  0x0805a39f in resolve_and_layout (something=0x0, cl=0x0) at parse.y:6110
#2  0x0806b749 in qualify_ambiguous_name (id=0x403cfcf8) at parse.y:11516
#3  0x08065713 in resolve_expression_name (id=0x403cfcf8, orig=0x0) at
parse.y:9559
#4  0x0806f327 in java_complete_lhs (node=0x403cfcf8) at parse.y:11949
#5  0x0806b9b7 in java_complete_tree (node=0x403ce480) at parse.y:11556
#6  0x0806dd84 in java_complete_lhs (node=0x403ce4a4) at parse.y:12263
#7  0x0806b9b7 in java_complete_tree (node=0x403c8e80) at parse.y:11556
#8  0x0806f4f9 in complete_function_arguments (node=0x403cfe60) at parse.y:12398
#9  0x0806e2e1 in java_complete_lhs (node=0x403cfe60) at parse.y:12049
#10 0x0806b9b7 in java_complete_tree (node=0x1c7) at parse.y:11556
#11 0x0806f154 in java_complete_lhs (node=0x403cfe88) at parse.y:11972
#12 0x0806b9b7 in java_complete_tree (node=0x403ce578) at parse.y:11556
#13 0x0806bd71 in java_complete_lhs (node=0x403bcd9c) at parse.y:11645
#14 0x0806b9b7 in java_complete_tree (node=0x403d74a0) at parse.y:11556
#15 0x0806bfbb in java_complete_lhs (node=0x403bcd68) at parse.y:11677
#16 0x0806b9b7 in java_complete_tree (node=0x403d74c4) at parse.y:11556
#17 0x0806bfbb in java_complete_lhs (node=0x403bcd34) at parse.y:11677
#18 0x0806b9b7 in java_complete_tree (node=0x403c8c3c) at parse.y:11556
#19 0x080617e9 in java_complete_expand_method (mdecl=0x403c8c3c) at parse.y:8232
#20 0x080608d0 in java_complete_expand_methods (class_decl=0x4039fa6c) at
parse.y:7947
#21 0x0806052f in java_complete_expand_classes () at parse.y:7863
#22 0x08064ae5 in java_expand_classes () at parse.y:9187
#23 0x080a5e2a in java_parse_file (set_yydebug=0) at
../../gcc/java/jcf-parse.c:1207
#24 0x08323742 in compile_file () at ../../gcc/toplev.c:985
#25 0x08324e21 in do_compile () at ../../gcc/toplev.c:2069
#26 0x08324e85 in toplev_main (argc=13, argv=0xbfffd464) at
../../gcc/toplev.c:2101
#27 0x080b632b in main (argc=13, argv=0xbfffd464) at ../../gcc/main.c:35

-- 
           Summary: segfault at java/class.c:2186 with PieSpy
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: timo dot lindfors at iki dot fi
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/17848] segfault at java/class.c:2186 with PieSpy
  2004-10-05 18:11 [Bug java/17848] New: segfault at java/class.c:2186 with PieSpy timo dot lindfors at iki dot fi
@ 2004-10-05 18:14 ` pinskia at gcc dot gnu dot org
  2004-10-05 18:14 ` timo dot lindfors at iki dot fi
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-05 18:14 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
            Version|unknown                     |4.0.0


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/17848] segfault at java/class.c:2186 with PieSpy
  2004-10-05 18:11 [Bug java/17848] New: segfault at java/class.c:2186 with PieSpy timo dot lindfors at iki dot fi
  2004-10-05 18:14 ` [Bug java/17848] " pinskia at gcc dot gnu dot org
@ 2004-10-05 18:14 ` timo dot lindfors at iki dot fi
  2004-10-05 18:47 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: timo dot lindfors at iki dot fi @ 2004-10-05 18:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From timo dot lindfors at iki dot fi  2004-10-05 18:14 -------
Created an attachment (id=7287)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7287&action=view)
testcase, a modified version of PieSpy


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/17848] segfault at java/class.c:2186 with PieSpy
  2004-10-05 18:11 [Bug java/17848] New: segfault at java/class.c:2186 with PieSpy timo dot lindfors at iki dot fi
  2004-10-05 18:14 ` [Bug java/17848] " pinskia at gcc dot gnu dot org
  2004-10-05 18:14 ` timo dot lindfors at iki dot fi
@ 2004-10-05 18:47 ` pinskia at gcc dot gnu dot org
  2004-10-11 19:21 ` tromey at gcc dot gnu dot org
  2004-10-11 19:28 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-05 18:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-05 18:47 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-05 18:47:45
               date|                            |


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/17848] segfault at java/class.c:2186 with PieSpy
  2004-10-05 18:11 [Bug java/17848] New: segfault at java/class.c:2186 with PieSpy timo dot lindfors at iki dot fi
                   ` (2 preceding siblings ...)
  2004-10-05 18:47 ` pinskia at gcc dot gnu dot org
@ 2004-10-11 19:21 ` tromey at gcc dot gnu dot org
  2004-10-11 19:28 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-10-11 19:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-10-11 19:21 -------
If I use the -I option, it works.
Without the -I option, I get an error as I would expect:

opsy. gcj -C org/jibble/socnet/Graph.java
org/jibble/socnet/Graph.java: In class `org.jibble.socnet.Graph':
org/jibble/socnet/Graph.java: In method
`org.jibble.socnet.Graph.drawImage(int,int,int,int,double,boolean)':
org/jibble/socnet/Graph.java:484: error: cannot find file for class
org.jibble.pircbot.PircBot
org/jibble/socnet/Graph.java:484: confused by earlier errors, bailing out

I don't see a crash.
I'm using:
opsy. gcj --version
gcj (GCC) 4.0.0 20041006 (experimental)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Could you update and try again?



-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug java/17848] segfault at java/class.c:2186 with PieSpy
  2004-10-05 18:11 [Bug java/17848] New: segfault at java/class.c:2186 with PieSpy timo dot lindfors at iki dot fi
                   ` (3 preceding siblings ...)
  2004-10-11 19:21 ` tromey at gcc dot gnu dot org
@ 2004-10-11 19:28 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-11 19:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-11 19:28 -------
But:
org/jibble/socnet/Graph.java:484: confused by earlier errors, bailing out
is an ICE just that with --disable-checking on, you get that message instead of a seg fault.

-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-10-11 19:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-05 18:11 [Bug java/17848] New: segfault at java/class.c:2186 with PieSpy timo dot lindfors at iki dot fi
2004-10-05 18:14 ` [Bug java/17848] " pinskia at gcc dot gnu dot org
2004-10-05 18:14 ` timo dot lindfors at iki dot fi
2004-10-05 18:47 ` pinskia at gcc dot gnu dot org
2004-10-11 19:21 ` tromey at gcc dot gnu dot org
2004-10-11 19:28 ` pinskia 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).