* [Bug java/13948] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
@ 2004-01-31 13:47 ` gilead at yellowhedgehog dot com
2004-01-31 13:47 ` gilead at yellowhedgehog dot com
` (16 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: gilead at yellowhedgehog dot com @ 2004-01-31 13:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gilead at yellowhedgehog dot com 2004-01-31 13:47 -------
Created an attachment (id=5627)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5627&action=view)
gl4java/GL4JavaInitException.java
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
2004-01-31 13:47 ` [Bug java/13948] " gilead at yellowhedgehog dot com
@ 2004-01-31 13:47 ` gilead at yellowhedgehog dot com
2004-01-31 13:48 ` gilead at yellowhedgehog dot com
` (15 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: gilead at yellowhedgehog dot com @ 2004-01-31 13:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gilead at yellowhedgehog dot com 2004-01-31 13:47 -------
Created an attachment (id=5628)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5628&action=view)
gl4java/GLRunnable.java
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
2004-01-31 13:47 ` [Bug java/13948] " gilead at yellowhedgehog dot com
2004-01-31 13:47 ` gilead at yellowhedgehog dot com
@ 2004-01-31 13:48 ` gilead at yellowhedgehog dot com
2004-01-31 13:48 ` gilead at yellowhedgehog dot com
` (14 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: gilead at yellowhedgehog dot com @ 2004-01-31 13:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gilead at yellowhedgehog dot com 2004-01-31 13:48 -------
Created an attachment (id=5630)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5630&action=view)
gl4java/GLRunnable.class
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (2 preceding siblings ...)
2004-01-31 13:48 ` gilead at yellowhedgehog dot com
@ 2004-01-31 13:48 ` gilead at yellowhedgehog dot com
2004-01-31 20:02 ` pinskia at gcc dot gnu dot org
` (13 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: gilead at yellowhedgehog dot com @ 2004-01-31 13:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gilead at yellowhedgehog dot com 2004-01-31 13:48 -------
Created an attachment (id=5629)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5629&action=view)
gl4java/GL4JavaInitException.class
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (3 preceding siblings ...)
2004-01-31 13:48 ` gilead at yellowhedgehog dot com
@ 2004-01-31 20:02 ` pinskia at gcc dot gnu dot org
2004-02-01 14:13 ` pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-31 20:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-31 20:02 -------
I can reproduce this. The command line which I can reproduce this with:
gcj -o libgl4java.so gl4java/GL4JavaInitException.class gl4java/GLRunnable.class
Note you have include "-o filename" part else it will not seg fault.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-01-31 20:02:53
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (4 preceding siblings ...)
2004-01-31 20:02 ` pinskia at gcc dot gnu dot org
@ 2004-02-01 14:13 ` pinskia at gcc dot gnu dot org
2004-02-01 14:17 ` [Bug java/13948] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-01 14:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-01 14:12 -------
Here is the backtrace:
#0 add_miranda_methods (base_class=0x40c6aa80, search_class=0x40c6ac80) at /Users/
pinskia/src/gcc-checkin/src/gcc/java/class.c:2007
#1 0x0002a4c4 in add_miranda_methods (base_class=0x40c6aa80, search_class=0x40c6ac80) at
/Users/pinskia/src/gcc-checkin/src/gcc/java/class.c:2048
#2 0x0002a3ac in layout_class_methods (this_class=0x40c6aa80) at /Users/pinskia/src/gcc-
checkin/src/gcc/java/class.c:2079
#3 0x0000d354 in java_layout_seen_class_methods () at /Users/pinskia/src/gcc-checkin/src/gcc/
java/parse.y:7568
#4 0x000463d4 in parse_class_file () at /Users/pinskia/src/gcc-checkin/src/gcc/java/jcf-parse.c:
700
#5 0x00047550 in java_parse_file (set_yydebug=1086761600) at /Users/pinskia/src/gcc-
checkin/src/gcc/java/jcf-parse.c:1106
#6 0x0005c198 in toplev_main (argc=1078371988, argv=0x4046a694) at /Users/pinskia/src/
gcc-checkin/src/gcc/toplev.c:1812
#7 0x00002534 in _start (argc=17, argv=0xbffffb7c, envp=0xbffffbc4) at /SourceCache/Csu/
Csu-46/crt.c:267
#8 0x000023a8 in start ()
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] [3.4/3.5 Regression] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (5 preceding siblings ...)
2004-02-01 14:13 ` pinskia at gcc dot gnu dot org
@ 2004-02-01 14:17 ` pinskia at gcc dot gnu dot org
2004-02-01 14:19 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-01 14:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-01 14:17 -------
Confirmed a regression from 3.3.1.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Known to work| |3.3.1
Summary|GCJ segmentation fault while|[3.4/3.5 Regression] GCJ
|compiling GL4Java .class |segmentation fault while
|files |compiling GL4Java .class
| |files
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] [3.4/3.5 Regression] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (6 preceding siblings ...)
2004-02-01 14:17 ` [Bug java/13948] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-02-01 14:19 ` pinskia at gcc dot gnu dot org
2004-03-01 1:49 ` mmitchel at gcc dot gnu dot org
` (9 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-01 14:19 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] [3.4/3.5 Regression] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (7 preceding siblings ...)
2004-02-01 14:19 ` pinskia at gcc dot gnu dot org
@ 2004-03-01 1:49 ` mmitchel at gcc dot gnu dot org
2004-05-03 5:49 ` rmathew at gcc dot gnu dot org
` (8 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-01 1:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-03-01 01:49 -------
Java problems are not showstoppers, so I have pushed this back to GCC 3.4.1.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.0 |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] [3.4/3.5 Regression] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (8 preceding siblings ...)
2004-03-01 1:49 ` mmitchel at gcc dot gnu dot org
@ 2004-05-03 5:49 ` rmathew at gcc dot gnu dot org
2004-05-31 21:29 ` green at redhat dot com
` (7 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2004-05-03 5:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rmathew at gcc dot gnu dot org 2004-05-03 05:49 -------
Yet another Miranda methods bug!
FWIW, for me it happens *only* if I say:
gcj -shared -o libgl4java.so gl4java/GL4JavaInitException.class
gl4java/GLRunnable.class
It *does not happen* if I:
1. Omit the "-o" flag (as Andrew Pinski points out).
2. Use Java sources instead of class files.
3. Reverse the order of the classes on the command line.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] [3.4/3.5 Regression] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (9 preceding siblings ...)
2004-05-03 5:49 ` rmathew at gcc dot gnu dot org
@ 2004-05-31 21:29 ` green at redhat dot com
2004-06-09 19:31 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: green at redhat dot com @ 2004-05-31 21:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From green at redhat dot com 2004-05-30 22:58 -------
I've hit the same bug building Ant 1.6.1 from rhug. It happens while building
bytecode from org/apache/tools/ant/types/selectors/BaseSelectorContainer.java.
(gdb) where
#0 0x080bcd93 in add_miranda_methods (base_class=0xf6d27244,
search_class=0xf6d12b54)
at /home/green/sources/jhbuild-src/gcc/gcc/java/class.c:2067
#1 0x080bd05b in add_miranda_methods (base_class=0xf6d27244,
search_class=0xf6d27244)
at /home/green/sources/jhbuild-src/gcc/gcc/java/class.c:2108
#2 0x080bd57a in layout_class_methods (this_class=0xf6d27244)
at /home/green/sources/jhbuild-src/gcc/gcc/java/class.c:2140
#3 0x080bd397 in layout_class_methods (this_class=0xf66cf740)
at /home/green/sources/jhbuild-src/gcc/gcc/java/class.c:2127
#4 0x080710a5 in java_layout_seen_class_methods () at parse.y:7587
#5 0x0807141e in java_layout_classes () at parse.y:7652
#6 0x08078a26 in java_expand_classes () at parse.y:9001
#7 0x080efb6f in java_parse_file (set_yydebug=0)
at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:1111
#8 0x08486e28 in compile_file ()
at /home/green/sources/jhbuild-src/gcc/gcc/toplev.c:1653
#9 0x08488769 in do_compile ()
at /home/green/sources/jhbuild-src/gcc/gcc/toplev.c:2699
#10 0x084887d0 in toplev_main (argc=19, argv=0xfeef1e84)
at /home/green/sources/jhbuild-src/gcc/gcc/toplev.c:2731
#11 0x0810a90e in main (argc=19, argv=0xfeef1e84)
at /home/green/sources/jhbuild-src/gcc/gcc/main.c:35
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] [3.4/3.5 Regression] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (10 preceding siblings ...)
2004-05-31 21:29 ` green at redhat dot com
@ 2004-06-09 19:31 ` mmitchel at gcc dot gnu dot org
2004-06-14 19:19 ` rmathew at gcc dot gnu dot org
` (5 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-09 19:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-06-09 19:31 -------
Postponed until 3.4.2.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.1 |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] [3.4/3.5 Regression] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (11 preceding siblings ...)
2004-06-09 19:31 ` mmitchel at gcc dot gnu dot org
@ 2004-06-14 19:19 ` rmathew at gcc dot gnu dot org
2004-06-17 13:45 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2004-06-14 19:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rmathew at gcc dot gnu dot org 2004-06-14 19:19 -------
My proposed patch is here:
http://gcc.gnu.org/ml/java-patches/2004-q2/msg00664.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] [3.4/3.5 Regression] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (12 preceding siblings ...)
2004-06-14 19:19 ` rmathew at gcc dot gnu dot org
@ 2004-06-17 13:45 ` cvs-commit at gcc dot gnu dot org
2004-06-29 17:01 ` [Bug java/13948] [3.4 " green at redhat dot com
` (3 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-17 13:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-17 13:45 -------
Subject: Bug 13948
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: rmathew@gcc.gnu.org 2004-06-17 13:45:24
Modified files:
gcc/java : ChangeLog parse.y jcf-parse.c
Log message:
Fixes PR java/13948
* parse.y (java_layout_seen_class_methods): Ensure class is loaded
before trying to lay out its methods.
* jcf-parse.c (read_class): Track parsed files using canonical paths
obtained via lrealpath from libiberty.
(java_parse_file): Likewise.
(parse_source_file_1): Rename formal parameter to reflect its
modified purpose. Minor formatting fix.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1380&r2=1.1381
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gcc&r1=1.480&r2=1.481
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/jcf-parse.c.diff?cvsroot=gcc&r1=1.159&r2=1.160
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] [3.4 Regression] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (13 preceding siblings ...)
2004-06-17 13:45 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-29 17:01 ` green at redhat dot com
2004-06-30 4:59 ` rmathew at gcc dot gnu dot org
` (2 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: green at redhat dot com @ 2004-06-29 17:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From green at redhat dot com 2004-06-29 16:58 -------
I have the patch installed, but I'm still seeing the same failure in ant.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] [3.4 Regression] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (14 preceding siblings ...)
2004-06-29 17:01 ` [Bug java/13948] [3.4 " green at redhat dot com
@ 2004-06-30 4:59 ` rmathew at gcc dot gnu dot org
2004-08-23 20:54 ` mmitchel at gcc dot gnu dot org
2004-09-23 17:19 ` tromey at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2004-06-30 4:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rmathew at gcc dot gnu dot org 2004-06-30 04:48 -------
(In reply to comment #14)
> I have the patch installed, but I'm still seeing the same failure in ant.
Are you using the latest CVS sources? Bryce also fixed a couple of class
loading bugs recently (after the fix above went in). If the problem still
persists, can you at least give the backtrace with a "debug_tree()" of
the class that is causing problems?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] [3.4 Regression] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (15 preceding siblings ...)
2004-06-30 4:59 ` rmathew at gcc dot gnu dot org
@ 2004-08-23 20:54 ` mmitchel at gcc dot gnu dot org
2004-09-23 17:19 ` tromey at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-23 20:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-08-23 20:54 -------
Postponed until GCC 3.4.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.2 |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug java/13948] [3.4 Regression] GCJ segmentation fault while compiling GL4Java .class files
2004-01-31 13:46 [Bug java/13948] New: GCJ segmentation fault while compiling GL4Java .class files gilead at yellowhedgehog dot com
` (16 preceding siblings ...)
2004-08-23 20:54 ` mmitchel at gcc dot gnu dot org
@ 2004-09-23 17:19 ` tromey at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-09-23 17:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tromey at gcc dot gnu dot org 2004-09-23 17:19 -------
I can build the rhug ant just fine with current cvs head.
I'm closing this; I'll ping Anthony to see if he still has problems.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to work|3.3.1 4.0 |3.3.1 4.0.0
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13948
^ permalink raw reply [flat|nested] 19+ messages in thread