public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: "ffileppo" <ffileppo@libero.it>
To: "aph" <aph@redhat.com>
Cc: "mark" <mark@klomp.org>, 	"java" <java@gcc.gnu.org>,
		"classpath" <classpath@gnu.org>
Subject: Re: [GCJ] Performance of GUI applications on embedded systems
Date: Wed, 05 Nov 2008 13:53:00 -0000	[thread overview]
Message-ID: <K9V56X$F90BD72B7EAD4AE4D513784851B34AB5@libero.it> (raw)


> Mark Wielaard wrote:
> > On Wed, 2008-11-05 at 09:24 +0100, ffileppo wrote:
> >> I tried your improvement but now I'm getting Segmentation Fault whenever I execute any GUI application.
> >> (Non-gui code is working fine)
> >>
> >> Do you have any idea to investigate this problem?
> >
> > Run it under GDB and post a backtrace please.
>
> For what it's worth, I very much suspect that this will be a build
> problem.  ffileppo, we also need to know what configure options you
> used.
>
> Andrew.
>


Hi,

I tried rebuilding gcj (with Andrew's improvement) on a clean system
but I'm still getting Segmentation Fault when I run GUI applications on my embedded system.

Here is configure :

Configured with: ../configure --prefix=/root/WiTP/inst-gcc --with-sysroot=/root/WiTP/f8/rootfs-f8 --disable-libssp --disable-libgomp --disable-libmudflap --enable-libgcj --disable-bootstrap --disable-multilib --disable-sjlj-exceptions --target=arm-linux-gnueabi --enable-languages=c,c++,java --with-build-time-tools=/root/WiTP/binutils-inst/arm-linux-gnueabi/bin --with-ld=/root/WiTP/binutils-inst/arm-linux-gnueabi/bin/ld --with-nm=/root/WiTP/binutils-inst/arm-linux-gnueabi/bin/nm --with-strip=/root/WiTP/binutils-inst/arm-linux-gnueabi/bin/strip --with-as=/root/WiTP/binutils-inst/arm-linux-gnueabi/bin/as --with-float=soft --enable-java-awt=gtk --x-libraries=/root/WiTP/arm-rpm/usr/lib


And here is GDB backtrace

#0  0x40b92d14 in java::lang::Object::getClass () from /lib/libgcj.so.10
#1  0x40b116f0 in javax::swing::JComponent::isPaintRoot () from /lib/libgcj.so.10
#2  0x42f9b114 in Java_gnu_java_awt_peer_gtk_FreetypeGlyphVector_getKerning (env=0x24320, obj=<value optimized out>, rightGlyph=40,
    leftGlyph=79, fnt=<value optimized out>, p=0x0)
    at ../../../../../../../libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c:204
#3  0x41381c30 in gnu::java::awt::peer::gtk::FreetypeGlyphVector::getKerning () from /lib/libgcj.so.10
#4  0x41383f4c in gnu::java::awt::peer::gtk::FreetypeGlyphVector::performDefaultLayout () from /lib/libgcj.so.10
#5  0x4137022c in gnu::java::awt::peer::gtk::FreetypeGlyphVector::FreetypeGlyphVector () from /lib/libgcj.so.10
#6  0x41368ac4 in gnu::java::awt::peer::gtk::GdkFontPeer::layoutGlyphVector () from /lib/libgcj.so.10
#7  0x40e977c0 in java::awt::Font::layoutGlyphVector () from /lib/libgcj.so.10
#8  0x40ef0d10 in java::awt::font::TextLayout::TextLayout () from /lib/libgcj.so.10
#9  0x41358b24 in gnu::java::awt::peer::gtk::GdkFontPeer$GdkFontMetrics::stringWidth () from /lib/libgcj.so.10
#10 0x41150c38 in javax::swing::JComponent::isPaintRoot () from /lib/libgcj.so.10
#11 0x41151704 in javax::swing::SwingUtilities::layoutCompoundLabel () from /lib/libgcj.so.10
#12 0x411c7ec0 in javax::swing::plaf::basic::BasicLabelUI::layoutCL () from /lib/libgcj.so.10
#13 0x411d2500 in javax::swing::plaf::basic::BasicLabelUI::getPreferredSize () from /lib/libgcj.so.10
#14 0x4111f6f0 in javax::swing::JComponent::getPreferredSize () from /lib/libgcj.so.10
#15 0x411bbfdc in javax::swing::plaf::basic::BasicListUI::updateLayoutState () from /lib/libgcj.so.10
#16 0x411944ec in javax::swing::plaf::basic::BasicListUI::maybeUpdateLayoutState () from /lib/libgcj.so.10
#17 0x4119c52c in javax::swing::plaf::basic::BasicListUI::installUI () from /lib/libgcj.so.10
#18 0x4111e778 in javax::swing::JComponent::setUI () from /lib/libgcj.so.10
#19 0x4111e8c0 in javax::swing::JList::setUI () from /lib/libgcj.so.10
#20 0x41143d48 in javax::swing::JList::updateUI () from /lib/libgcj.so.10
#21 0x4116f1bc in javax::swing::JList::init () from /lib/libgcj.so.10
#22 0x4116f230 in javax::swing::JList::JList () from /lib/libgcj.so.10
#23 0x00012d88 in MainPanel::MainPanel ()
#24 0x00012f80 in MainPanel::main ()
#25 0x40b7be60 in gnu::java::lang::MainThread::call_main () from /lib/libgcj.so.10
#26 0x40bfe85c in gnu::java::lang::MainThread::run () from /lib/libgcj.so.10
#27 0x40b99648 in _Jv_ThreadRun () from /lib/libgcj.so.10
#28 0x40b0d588 in _Jv_RunMain () from /lib/libgcj.so.10
#29 0x40b0d720 in _Jv_RunMain () from /lib/libgcj.so.10
#30 0x40b0d75c in JvRunMain () from /lib/libgcj.so.10
#31 0x424b5db8 in __libc_start_main () from /lib/libc.so.6
#32 0x0001255c in _start ()



I'll try to revert Andrew's patch to be sure that's the cause of segmentation fault.


Thank you,

Francesco



             reply	other threads:[~2008-11-05 13:53 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-05 13:53 ffileppo [this message]
2008-11-05 14:07 ` Andrew Haley
2008-11-05 14:26   ` Andrew Haley
  -- strict thread matches above, loose matches on Subject: below --
2008-11-10  8:55 ffileppo
2008-11-10 10:20 ` Andrew Haley
2008-11-07 11:04 ffileppo
2008-11-07 11:18 ` Andrew Haley
2008-11-07 18:56 ` Andrew Haley
2008-11-08 11:40   ` Andrew Haley
2008-11-08 12:47     ` Andrew Haley
2008-11-09  0:25       ` Andrew John Hughes
2008-11-09 10:11         ` Mark Wielaard
2008-11-09 13:55         ` Andrew Haley
2008-11-06 13:40 ffileppo
2008-11-06 16:40 ` Andrew Haley
2008-11-06 17:02   ` Christian Thalinger
2008-11-05  8:24 ffileppo
2008-11-05  9:44 ` Andrew Haley
2008-11-05  9:45 ` Mark Wielaard
2008-11-05  9:50   ` Andrew Haley
2008-11-03 12:51 ffileppo
2008-11-03 14:53 ` Andrew Haley
2008-11-03 15:04   ` Andrew Haley
2008-11-03  7:38 ffileppo
2008-11-03 10:37 ` Andrew Haley
2008-11-03 12:02   ` Andrew Haley
2008-11-03 12:54     ` Andrew Haley
2008-11-03 13:02       ` Roman Kennke
2008-11-03 13:14         ` Andrew Haley
2008-11-03 15:46     ` Andrew Haley

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='K9V56X$F90BD72B7EAD4AE4D513784851B34AB5@libero.it' \
    --to=ffileppo@libero.it \
    --cc=aph@redhat.com \
    --cc=classpath@gnu.org \
    --cc=java@gcc.gnu.org \
    --cc=mark@klomp.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).