public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "yuri at tsoft dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug java/41745] Segmentation fault when ecj.jar is run as a binary compiled by gcj
Date: Mon, 19 Oct 2009 09:23:00 -0000	[thread overview]
Message-ID: <20091019092342.28610.qmail@sourceware.org> (raw)
In-Reply-To: <bug-41745-6649@http.gcc.gnu.org/bugzilla/>



------- Comment #2 from yuri at tsoft dot com  2009-10-19 09:23 -------
No, it doesn't work for me on FreeBSD-8.0:

/usr/local/gcc/4.4.1-java/bin/gcj -o ecj
--main=org.eclipse.jdt.internal.compiler.batch.Main
/usr/local/share/java/ecj.jar

LD_LIBRARY_PATH=/usr/local/gcc/4.4.1-java/lib ldd ./ecj
./ecj:
        libgcc_s.so.1 => /usr/local/gcc/4.4.1-java/lib/libgcc_s.so.1
(0x341ba000)
        libgcj.so.10 => /usr/local/gcc/4.4.1-java/lib/libgcj.so.10 (0x341c6000)
        libm.so.5 => /lib/libm.so.5 (0x363d9000)
        libthr.so.3 => /lib/libthr.so.3 (0x363f3000)
        librt.so.1 => /usr/lib/librt.so.1 (0x36408000)
        libc.so.7 => /lib/libc.so.7 (0x3640d000)

LD_LIBRARY_PATH=/usr/local/gcc/4.4.1-java/lib ./ecj HelloWorld.java
Segmentation fault: 11

backtrace:
#0  0x364041c7 in __error () from /lib/libthr.so.3
#1  0x36403da8 in __error () from /lib/libthr.so.3
#2  0x36606820 in ?? ()
#3  0x00000008 in ?? ()
#4  0x00000001 in ?? ()
#5  0x36606800 in ?? ()
#6  0x00000000 in ?? ()
#7  0xbf9fedd4 in ?? ()
#8  0x363fe1a5 in pthread_rwlock_unlock () from /lib/libthr.so.3
#9  0x36401fae in pthread_cond_signal () from /lib/libthr.so.3
#10 0x34d217e8 in _Jv_CondWait (cv=0x3639778c, mu=0x36397780, millis=0,
nanos=0) at ../../../gcc-4.4.1/libjava/posix-threads.cc:212
#11 0x8c34d070 in ?? ()
#12 0x3639778c in _ZL5mutex () from /usr/local/gcc/4.4.1-java/lib/libgcj.so.10
#13 0x36397780 in E () from /usr/local/gcc/4.4.1-java/lib/libgcj.so.10
#14 0x00000000 in ?? ()
#15 0x00000000 in ?? ()
#16 0x00000000 in ?? ()
#17 0x00000001 in ?? ()
#18 0x341795a8 in dladdr () from /libexec/ld-elf.so.1


-- 


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


  parent reply	other threads:[~2009-10-19  9:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-18 22:39 [Bug java/41745] New: " yuri at tsoft dot com
2009-10-19  9:08 ` [Bug java/41745] " aph at gcc dot gnu dot org
2009-10-19  9:23 ` yuri at tsoft dot com [this message]
2009-10-19 10:53 ` rguenth at gcc dot gnu dot org
2009-10-19 17:21 ` yuri at tsoft dot com
2009-10-19 19:12 ` yuri at tsoft dot com
2010-01-03 13:10 ` gerald at pfeifer dot com
2010-01-03 19:38 ` andreast at gcc dot gnu dot org
2010-01-04 23:57 ` yuri at rawbw dot com
2010-01-09 20:15 ` gerald at pfeifer dot com
2010-01-09 20:24 ` andreast at gcc dot gnu dot org
2010-01-10 14:58 ` andreast at gcc dot gnu dot org
2010-01-11  8:37 ` gerald at pfeifer dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091019092342.28610.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).