Segmentation fault when calling dbus from java. Need help

Andrejus Chaliapinas a.chaliapinas at infosana.com
Thu Apr 17 11:43:03 PDT 2008


Well,

> > Where could I find unix.jar, debug-disable.jar, hexdump.jar supposed to
> be
> > in /usr/share/java by Makefile? Do you have binary dbus-java v2.4
> > distribution in form of jars already for JDK 5/6?
> 
> Read the README or the website I linked to in my other email, they both
> point to:
>

I've compiled them all and when starting ListDBus besides some initial list
I get this at the end of output:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xb7958256, pid=3758, tid=3086325968
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_15-b04 mixed mode, sharing)
# Problematic frame:
# V  [libjvm.so+0x1a6256]
#

and stack:

---------------  T H R E A D  ---------------

Current thread (0x09edab60):  JavaThread "main" [_thread_in_vm, id=3758]

siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x00000000

Registers:
EAX=0x00000000, EBX=0xb7b3f34c, ECX=0x09edbcc8, EDX=0x09edb098
ESP=0xbfaf9058, EBP=0xbfaf908c, ESI=0x09edbcc4, EDI=0x09edab60
EIP=0xb7958256, CR2=0x00000000, EFLAGS=0x00210292

Top of Stack: (sp=0xbfaf9058)
0xbfaf9058:   00000006 bfaf907c b7a390b3 b1cdd40d
0xbfaf9068:   00000023 09edab60 b77e6100 b7b3f34c
0xbfaf9078:   09edbcc4 09edbcc0 b7b3f34c 09edab60
0xbfaf9088:   09edac20 bfaf90fc b7938f7a 09edac20
0xbfaf9098:   00000000 b1cdd448 b1cdd431 00000000
0xbfaf90a8:   09edab60 00000000 00000000 0082bfac
0xbfaf90b8:   09edab60 00000000 09edbcc4 09edab60
0xbfaf90c8:   b7b0b300 00000169 889f3958 09edab60 

Instructions: (pc=0xb7958256)
0xb7958246:   c0 8d 65 f4 5b 5e 5f 5d c3 90 8b 45 0c 83 ec 0c
0xb7958256:   8b 08 51 e8 62 62 fd ff 83 c4 10 85 c0 74 1b 83 

Stack: [0xbf8fd000,0xbfafd000),  sp=0xbfaf9058,  free space=2032k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native
code)
V  [libjvm.so+0x1a6256]
V  [libjvm.so+0x186f7a]
C  [libunix-java.so+0xc01]  handleerrno+0x78
C  [libunix-java.so+0x110f]
Java_cx_ath_matthew_unix_UnixSocket_native_1close+0x4c
j  cx.ath.matthew.unix.UnixSocket.native_close(I)V+0
j  cx.ath.matthew.unix.UnixSocket.close()V+5
j  cx.ath.matthew.unix.USOutputStream.close()V+9
j  org.freedesktop.dbus.MessageWriter.close()V+4
j  org.freedesktop.dbus.Transport.disconnect()V+11
j  org.freedesktop.dbus.AbstractConnection.disconnect()V+70
j  org.freedesktop.dbus.DBusConnection.disconnect()V+204
j  org.freedesktop.dbus.bin.ListDBus.main([Ljava/lang/String;)V+406
v  ~StubRoutines::call_stub
V  [libjvm.so+0x17b2bc]
V  [libjvm.so+0x28fed8]
V  [libjvm.so+0x17b0ef]
V  [libjvm.so+0x1a5cc2]
V  [libjvm.so+0x196ed2]
C  [java+0x1873]
C  [libc.so.6+0x16390]  __libc_start_main+0xe0

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  cx.ath.matthew.unix.UnixSocket.native_close(I)V+0
j  cx.ath.matthew.unix.UnixSocket.close()V+5
j  cx.ath.matthew.unix.USOutputStream.close()V+9
j  org.freedesktop.dbus.MessageWriter.close()V+4
j  org.freedesktop.dbus.Transport.disconnect()V+11
j  org.freedesktop.dbus.AbstractConnection.disconnect()V+70
j  org.freedesktop.dbus.DBusConnection.disconnect()V+204
j  org.freedesktop.dbus.bin.ListDBus.main([Ljava/lang/String;)V+406
v  ~StubRoutines::call_stub


Should I do/check anything else? Please suggest.

Thank you.
Andrejus



More information about the dbus mailing list