public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/43086]  New: PR16923 fails with Assertion failed: (class_id)
@ 2010-02-15 22:10 howarth at nitro dot med dot uc dot edu
  2010-02-15 22:12 ` [Bug java/43086] " howarth at nitro dot med dot uc dot edu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-02-15 22:10 UTC (permalink / raw)
  To: java-prs

On x86_64-apple-darwin9/10, the PR16923 libjava testcase, when linked to the
proper libiconv, fails with...

Assertion failed: (class_id), function main, file
/sw/src/fink.build/gcc44-4.4.2-1000/gcc-4.4.2/libjava/testsuite/libjava.jni/invocation/PR16923.c,
line 35.
Abort

A build of gcc-4.4.2 with the libgcc built with -O0 shows a backtrace of this
failure as...

#0  _Jv_AllocPtrFreeObj [inlined] () at java-gc.h:55
#1  _Jv_AllocString (len=Cannot access memory at address 0xf
) at ../../../gcc-4.4.2/libjava/prims.cc:627
Cannot access memory at address 0xf


-- 
           Summary: PR16923 fails with Assertion failed: (class_id)
           Product: gcc
           Version: 4.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: x86_64-apple-darwin*
  GCC host triplet: x86_64-apple-darwin*
GCC target triplet: x86_64-apple-darwin*


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


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

* [Bug java/43086] PR16923 fails with Assertion failed: (class_id)
  2010-02-15 22:10 [Bug java/43086] New: PR16923 fails with Assertion failed: (class_id) howarth at nitro dot med dot uc dot edu
@ 2010-02-15 22:12 ` howarth at nitro dot med dot uc dot edu
  2010-04-21 18:39 ` mrs at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-02-15 22:12 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from howarth at nitro dot med dot uc dot edu  2010-02-15 22:12 -------
Created an attachment (id=19883)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19883&action=view)
gdb walk for PR16923 failure


-- 


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


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

* [Bug java/43086] PR16923 fails with Assertion failed: (class_id)
  2010-02-15 22:10 [Bug java/43086] New: PR16923 fails with Assertion failed: (class_id) howarth at nitro dot med dot uc dot edu
  2010-02-15 22:12 ` [Bug java/43086] " howarth at nitro dot med dot uc dot edu
@ 2010-04-21 18:39 ` mrs at gcc dot gnu dot org
  2010-04-21 19:02 ` mrs at gcc dot gnu dot org
  2010-04-21 23:19 ` howarth at nitro dot med dot uc dot edu
  3 siblings, 0 replies; 5+ messages in thread
From: mrs at gcc dot gnu dot org @ 2010-04-21 18:39 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from mrs at gcc dot gnu dot org  2010-04-21 18:39 -------
When I run it by hand, I get:

$ /Users/mrs/net/gcc-java/gcc/xgcc -B/Users/mrs/net/gcc-java/gcc/
/Users/mrs/net/gcc/libjava/testsuite/libjava.jni/invocation/PR16923.c  
-bind_at_load -multiply_defined suppress -I. -I..
-I/Users/mrs/net/gcc/libjava/testsuite/libjava.jni
-I/Users/mrs/net/gcc/libjava/testsuite/../include
-I/Users/mrs/net/gcc/libjava/testsuite/../classpath/include
-fdollars-in-identifiers
-L/Users/mrs/net/gcc-java/x86_64-apple-darwin10/./libjava/.libs -ljvm
-shared-libgcc -ldl -lgcj -L/opt/local/lib -liconv  -lm    -o PR16923
$ export
CLASSPATH=~/net/gcc/libjava/testsuite/libjava.jni/invocation/PR16923.jar
$ DYLD_LIBRARY_PATH=../.libs:../../libgcc:/opt/local/lib ./PR16923
optionReceived

on x86_64-apple-darwin10 so this would be just a simple matter of ensuring the
setting of DYLD_LIBRARY_PATH, CLASSPATH and compiling with -L/opt/local/lib.  I
suspect DYLD_LIBRARY_PATH and CLASSPATH  are already correct.  I'm hoping you
can confirm this incantation works for you.

I've filed PR43839 that covers getting -L added, which I hope resolves this
issue.


-- 


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


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

* [Bug java/43086] PR16923 fails with Assertion failed: (class_id)
  2010-02-15 22:10 [Bug java/43086] New: PR16923 fails with Assertion failed: (class_id) howarth at nitro dot med dot uc dot edu
  2010-02-15 22:12 ` [Bug java/43086] " howarth at nitro dot med dot uc dot edu
  2010-04-21 18:39 ` mrs at gcc dot gnu dot org
@ 2010-04-21 19:02 ` mrs at gcc dot gnu dot org
  2010-04-21 23:19 ` howarth at nitro dot med dot uc dot edu
  3 siblings, 0 replies; 5+ messages in thread
From: mrs at gcc dot gnu dot org @ 2010-04-21 19:02 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from mrs at gcc dot gnu dot org  2010-04-21 19:02 -------
I've been able to confirm that with the hack patch in PR43839, this testcase
works on x86_64-apple-darwin10.

*** This bug has been marked as a duplicate of 43839 ***


-- 

mrs at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug java/43086] PR16923 fails with Assertion failed: (class_id)
  2010-02-15 22:10 [Bug java/43086] New: PR16923 fails with Assertion failed: (class_id) howarth at nitro dot med dot uc dot edu
                   ` (2 preceding siblings ...)
  2010-04-21 19:02 ` mrs at gcc dot gnu dot org
@ 2010-04-21 23:19 ` howarth at nitro dot med dot uc dot edu
  3 siblings, 0 replies; 5+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-04-21 23:19 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from howarth at nitro dot med dot uc dot edu  2010-04-21 23:19 -------
Mike,
    The suggestion in Comment 2 works fine with my gcc trunk build on
x86_64-apple-darwin10 (assuming one fixes the-liconv linkage manually)...

bash-3.2# /sw/src/fink.build/gcc46-4.5.999-20100418/darwin_objdir/gcc/xgcc
-B/sw/src/fink.build/gcc46-4.5.999-20100418/darwin_objdir/gcc/
/sw/src/fink.build/gcc46-4.5.999-20100418/gcc-4.6-20100418/libjava/testsuite/libjava.jni/invocation/PR16923.c
  -bind_at_load -multiply_defined suppress -I. -I..
-I/sw/src/fink.build/gcc46-4.5.999-20100418/gcc-4.6-20100418/libjava/testsuite/libjava.jni
-I/sw/src/fink.build/gcc46-4.5.999-20100418/gcc-4.6-20100418/libjava/testsuite/../include
-I/sw/src/fink.build/gcc46-4.5.999-20100418/gcc-4.6-20100418/libjava/testsuite/../classpath/include
-fdollars-in-identifiers
-L/sw/src/fink.build/gcc46-4.5.999-20100418/darwin_objdir/x86_64-apple-darwin10.3.0/./libjava/.libs
-ljvm -shared-libgcc -lgcj -L/sw/lib -liconv  -lm   -o PR16923
bash-3.2# export
CLASSPATH=/sw/src/fink.build/gcc46-4.5.999-20100418/gcc-4.6-20100418/libjava/testsuite/libjava.jni/invocation/PR16923.jar
bash-3.2# DYLD_LIBRARY_PATH=../.libs:../../libgcc:/opt/local/lib ./PR16923
optionReceived


-- 


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


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

end of thread, other threads:[~2010-04-21 23:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-15 22:10 [Bug java/43086] New: PR16923 fails with Assertion failed: (class_id) howarth at nitro dot med dot uc dot edu
2010-02-15 22:12 ` [Bug java/43086] " howarth at nitro dot med dot uc dot edu
2010-04-21 18:39 ` mrs at gcc dot gnu dot org
2010-04-21 19:02 ` mrs at gcc dot gnu dot org
2010-04-21 23:19 ` howarth at nitro dot med dot uc dot edu

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