From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9508 invoked by alias); 5 Nov 2008 13:53:44 -0000 Received: (qmail 9250 invoked by uid 22791); 5 Nov 2008 13:53:42 -0000 X-Spam-Check-By: sourceware.org Received: from cp-out2.libero.it (HELO cp-out2.libero.it) (212.52.84.102) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 05 Nov 2008 13:52:28 +0000 Received: from libero.it (192.168.17.13) by cp-out2.libero.it (8.5.014) id 48873481091931D8; Wed, 5 Nov 2008 14:52:09 +0100 Date: Wed, 05 Nov 2008 13:53:00 -0000 Message-Id: Subject: Re: [GCJ] Performance of GUI applications on embedded systems MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "ffileppo" To: "aph" Cc: "mark" , "java" , "classpath" X-XaM3-API-Version: 4.3 (R1) (B3pl25) X-SenderIP: 130.192.86.37 X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2008-11/txt/msg00023.txt.bz2 > 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 whenev= er 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=3D/root/WiTP/inst-gcc --with-sysroot= =3D/root/WiTP/f8/rootfs-f8 --disable-libssp --disable-libgomp --disable-lib= mudflap --enable-libgcj --disable-bootstrap --disable-multilib --disable-sj= lj-exceptions --target=3Darm-linux-gnueabi --enable-languages=3Dc,c++,java = --with-build-time-tools=3D/root/WiTP/binutils-inst/arm-linux-gnueabi/bin --= with-ld=3D/root/WiTP/binutils-inst/arm-linux-gnueabi/bin/ld --with-nm=3D/ro= ot/WiTP/binutils-inst/arm-linux-gnueabi/bin/nm --with-strip=3D/root/WiTP/bi= nutils-inst/arm-linux-gnueabi/bin/strip --with-as=3D/root/WiTP/binutils-ins= t/arm-linux-gnueabi/bin/as --with-float=3Dsoft --enable-java-awt=3Dgtk --x-= libraries=3D/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=3D0x24320, obj=3D, rightGlyph=3D40, leftGlyph=3D79, fnt=3D, p=3D0x0) at ../../../../../../../libjava/classpath/native/jni/gtk-peer/gnu_java_= awt_peer_gtk_FreetypeGlyphVector.c:204 #3 0x41381c30 in gnu::java::awt::peer::gtk::FreetypeGlyphVector::getKernin= g () from /lib/libgcj.so.10 #4 0x41383f4c in gnu::java::awt::peer::gtk::FreetypeGlyphVector::performDe= faultLayout () from /lib/libgcj.so.10 #5 0x4137022c in gnu::java::awt::peer::gtk::FreetypeGlyphVector::FreetypeG= lyphVector () 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/libg= cj.so.10 #9 0x41358b24 in gnu::java::awt::peer::gtk::GdkFontPeer$GdkFontMetrics::st= ringWidth () 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/l= ibgcj.so.10 #15 0x411bbfdc in javax::swing::plaf::basic::BasicListUI::updateLayoutState= () from /lib/libgcj.so.10 #16 0x411944ec in javax::swing::plaf::basic::BasicListUI::maybeUpdateLayout= State () 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/libgc= j.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 segmentati= on fault. Thank you, Francesco