Bug 154725 - [OOo][gcj] java.lang.NoSuchFieldError regression from gcc-4.0.0-40
Summary: [OOo][gcj] java.lang.NoSuchFieldError regression from gcc-4.0.0-40
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tom Tromey
QA Contact:
Depends On:
Blocks: 153231
TreeView+ depends on / blocked
Reported: 2005-04-13 20:07 UTC by Caolan McNamara
Modified: 2014-08-11 05:46 UTC (History)
3 users (show)

Clone Of:
Last Closed: 2005-05-04 09:57:12 UTC

Attachments (Terms of Use)
sample jar (235.48 KB, application/x-jar)
2005-04-13 20:09 UTC, Caolan McNamara
no flags Details
sample demo source (944 bytes, text/x-c++src)
2005-04-13 20:10 UTC, Caolan McNamara
no flags Details
Try this. (995 bytes, patch)
2005-04-14 13:04 UTC, Andrew Haley
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Compiler Collection 21020 None None None Never

Description Caolan McNamara 2005-04-13 20:07:41 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050330

Description of problem:
   at .__gxx_personality_v0 (/home/caolan/java/a.out)
   at .__gxx_personality_v0 (/home/caolan/java/a.out)
   at .__gxx_personality_v0 (/home/caolan/java/a.out)
   at .__libc_start_main (/lib/libc-2.3.4.so)
   at .__gxx_personality_v0 (/home/caolan/java/a.out)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. take attached ridl.jar
2. take attached java.cxx
3. g++ java.cxx -lgcj
4. ./a.out

Actual Results:  error

Expected Results:  no error

Additional info:

worked in 4.0.0-40, required to build (and reliably run) OOo

Comment 1 Caolan McNamara 2005-04-13 20:09:03 UTC
Created attachment 113115 [details]
sample jar

Comment 2 Caolan McNamara 2005-04-13 20:10:36 UTC
Created attachment 113117 [details]
sample demo source

Comment 3 Tom Tromey 2005-04-13 22:01:08 UTC
This test case works with the g++/gcj I am using:

opsy. g++ --version
g++ (GCC) 4.0.0 20050413 (prerelease)

However, I did find a small bug in the fix for the "[B" PR,
namely that the string in loadClassFromSig is not \0-terminated.
I have a patch.

Comment 4 Tom Tromey 2005-04-13 23:51:55 UTC
FWIW the termination is probably not the problem.
I looked some more and the string in question does not
need to be terminated for correctness in this case.

Comment 6 Andrew Haley 2005-04-14 13:04:50 UTC
Created attachment 113145 [details]
Try this.

Note You need to log in before you can comment on or make changes to this bug.