RE: SIGSEGV issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrew,

I hope that will help you.

This is why I get when typing arm-unknown-linux-gnu-gcj -v:

Reading specs from
/opt/crosstool/gcc-4.1.2-glibc-2.3.2/arm-unknown-linux-gnu/bin/../lib/gcc/ar
m-unknown-linux-gnu/4.1.2/../../../../arm-unknown-linux-gnu/lib/libgcj.spec
rename spec lib to liborig
Target: arm-unknown-linux-gnu
Configured with:
/opt/test/crosstool-0.43/build/arm-unknown-linux-gnu/gcc-4.1.2-glibc-2.3.2/g
cc-4.1.2/configure --target=arm-unknown-linux-gnu
--host=i686-host_pc-linux-gnu
--prefix=/opt/crosstool2/gcc-4.1.2-glibc-2.3.2/arm-unknown-linux-gnu
--with-headers=/opt/crosstool2/gcc-4.1.2-glibc-2.3.2/arm-unknown-linux-gnu/a
rm-unknown-linux-gnu/include
--with-local-prefix=/opt/crosstool2/gcc-4.1.2-glibc-2.3.2/arm-unknown-linux-
gnu/arm-unknown-linux-gnu --disable-nls --enable-threads=posix
--enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++,java
--enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.1.2

The cross toolchain has been compiled with crosstool 0.43 from Dan Kegel.

Best Regards,
David Sayada.


-----Original Message-----
From: Andrew Haley [mailto:aph-gcc@xxxxxxxxxxxxxxxxxxx] 
Sent: Wednesday, September 05, 2007 5:04 PM
To: David Sayada
Cc: classpath@xxxxxxx; 'Amnon David'
Subject: RE: SIGSEGV issue

David Sayada writes:

 > I have been to catch the place where the SIGSEGV occurs, I hope this
stack
 > trace will help you:
 > 
 > Program received signal SIGSEGV, Segmentation fault.
 > 0x0004a284 in TCPServer.HMCServer.selectEventLoop() () at
 > TCPServer/HMCServer.java:1849
 > 1849                            int nReadBytes =
 > client.read(info.m_readBuff);

Interesting.  A SEGV should not be possible in compiled Java code on
ARM.  I'm wondering if this might be a broken gcj installation.

Try

gcj -v
  
Then look at the line that begins

Reading specs from ...

Send a copy of that file to the list.  It should look something like

#
# This spec file is read by gcj when linking.
# It is used to specify the standard libraries we need in order
# to link with libgcj.
#
%rename startfile startfileorig
*startfile:  %(startfileorig)

%rename lib liborig
*lib: %{static-libgcj:-non_shared} %{s-bc-abi:-lgcj_bc;:-lgcj}
%{static-libgcj:-call_shared} -lm   -lpthread -lrt -lz   -ldl %(libgcc)
-lstdc++ %(liborig)

*jc1:  -fuse-divide-subroutine -fcheck-references -fuse-boehm-gc
-fkeep-inline-functions

Andrew.

Attachment: libgcj.spec
Description: Binary data


[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux