pschichtel/JavaCAN

Raspberry Pi Zero support

Szbuli opened this issue · 12 comments

I am having similar problems as in #24.

Should Raspberry Pi 3/4/zero etc work out of the box with the library?

If I can help to resolve this problem let me know.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0xa8d32ce0, pid=22763, tid=0xa775e460
#
# JRE version: OpenJDK Runtime Environment (8.0_212-b01) (build 1.8.0_212-8u212-b01-1+rpi1-b01)
# Java VM: OpenJDK Client VM (25.212-b01 mixed mode linux-aarch32 )
# Problematic frame:
# C  [libjavacan-core.so+0x1ce0]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0xa8d32ce0, pid=22763, tid=0xa775e460
#
# JRE version: OpenJDK Runtime Environment (8.0_212-b01) (build 1.8.0_212-8u212-b01-1+rpi1-b01)
# Java VM: OpenJDK Client VM (25.212-b01 mixed mode linux-aarch32 )
# Problematic frame:
# C  [libjavacan-core.so+0x1ce0]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

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

Current thread (0xa7626c00):  JavaThread "CAN_RECIEVE_THREAD" [_thread_in_native, id=22778, stack(0xa770f000,0xa775f000)]

siginfo: si_signo: 4 (SIGILL), si_code: 1 (ILL_ILLOPC), si_addr: 0xa8d32ce0

Registers:
R0=0xa8d460c0
R1=0x00000000
R2=0x00000002
R3=0xa8d46000
R4=0xa8d45f18
R5=0xa8d32d8c
R6=0x00000009
R7=0xbee385e4
R8=0xbee3860c
R9=0xa8d45f18
R10=0xb6fb8970
R11=0xa775c52c
R12=0x0000002f
R13=0xa775c498
R14=0xb6f982e8
R15=0xa8d32ce0

Top of Stack: (sp=0xa775c498)
0xa775c498:   00000000 01a11cb8 00000009 bee385e4
0xa775c4a8:   bee3860c 00000000 b6fb8970 b6f983ec
0xa775c4b8:   ffffffff 01a11cb8 00000003 00000003
0xa775c4c8:   00000008 b6fb9578 b6fb8970 b6f9c394
0xa775c4d8:   a775c52c b6f9c160 01a11cb8 00000000
0xa775c4e8:   00000000 439b7805 9ab782de 77e0ac4b
0xa775c4f8:   a775c4e0 00000000 a775c700 80000001
0xa775c508:   c3c66c0f 00000000 a775c6f4 80000001 

Instructions: (pc=0xa8d32ce0)
0xa8d32cc0:   02 20 a0 e3 4c 10 9f e5 00 00 8f e0 01 10 8f e0
0xa8d32cd0:   44 30 9f e5 01 10 60 e0 41 11 a0 e1 03 30 8f e0
0xa8d32ce0:   11 f2 11 e7 00 00 51 e3 1e ff 2f 01 2c 20 9f e5
0xa8d32cf0:   08 d0 4d e2 02 30 93 e7 04 30 8d e5 00 00 53 e3 

Register to memory mapping:

R0=0xa8d460c0: __bss_start__+0 in /tmp/javacan-core-armv7-1799307621341671518/libjavacan-core.so at 0xa8d31000
R1=0x00000000 is an unknown value
R2=0x00000002 is an unknown value
R3=0xa8d46000: <offset 0x15000> in /tmp/javacan-core-armv7-1799307621341671518/libjavacan-core.so at 0xa8d31000
R4=0xa8d45f18: <offset 0x14f18> in /tmp/javacan-core-armv7-1799307621341671518/libjavacan-core.so at 0xa8d31000
R5=0xa8d32d8c: <offset 0x1d8c> in /tmp/javacan-core-armv7-1799307621341671518/libjavacan-core.so at 0xa8d31000
R6=0x00000009 is an unknown value
R7=0xbee385e4 is an unknown value
R8=0xbee3860c is an unknown value
R9=0xa8d45f18: <offset 0x14f18> in /tmp/javacan-core-armv7-1799307621341671518/libjavacan-core.so at 0xa8d31000
R10=0xb6fb8970: _rtld_global_ro+0 in /lib/ld-linux-armhf.so.3 at 0xb6f88000
R11=0xa775c52c is pointing into the stack for thread: 0xa7626c00
R12=0x0000002f is an unknown value
R13=0xa775c498 is pointing into the stack for thread: 0xa7626c00
R14=0xb6f982e8: <offset 0x102e8> in /lib/ld-linux-armhf.so.3 at 0xb6f88000
R15=0xa8d32ce0: <offset 0x1ce0> in /tmp/javacan-core-armv7-1799307621341671518/libjavacan-core.so at 0xa8d31000


Stack: [0xa770f000,0xa775f000],  sp=0xa775c498,  free space=309k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libjavacan-core.so+0x1ce0]
C  [libc.so.6+0x115508]  _dl_catch_exception+0x7c
V  [libjvm.so+0x33bc28]  JVM_LoadLibrary+0xb4
C  [libjava.so+0xaba0]  Java_java_lang_ClassLoader_00024NativeLibrary_load+0x13c
j  java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;Z)V+0
j  java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+328
j  java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+48
j  java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;)V+57
j  java.lang.System.load(Ljava/lang/String;)V+7
j  tel.schich.javacan.platform.Platform.loadFromClassPath(Ljava/lang/Class;Ljava/lang/String;Ljava/nio/file/Path;)V+67
j  tel.schich.javacan.platform.Platform.loadExplicitLibrary(Ljava/lang/String;Ljava/lang/Class;)V+449
j  tel.schich.javacan.platform.Platform.loadNativeLibrary(Ljava/lang/String;Ljava/lang/Class;)V+10
j  tel.schich.javacan.JavaCAN.initialize()V+11
j  tel.schich.javacan.platform.linux.LinuxNetworkDevice.<clinit>()V+0
v  ~StubRoutines::call_stub
V  [libjvm.so+0x2e54b8]
V  [libjvm.so+0x2e4c14]
V  [libjvm.so+0x2aa1f4]
V  [libjvm.so+0x2aa6c4]
V  [libjvm.so+0x2aa970]
V  [libjvm.so+0x3b3588]
V  [libjvm.so+0x3b3e88]
V  [libjvm.so+0x3b62f8]
V  [libjvm.so+0x2dbd08]
j  tel.schich.javacan.NetworkDevice.lookup(Ljava/lang/String;)Ltel/schich/javacan/NetworkDevice;+29
j  hu.szbuli.smarthome.can.CanReceiveThread.doRun()V+2
j  hu.szbuli.smarthome.can.SafeThread.run()V+1
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub
V  [libjvm.so+0x2e54b8]
V  [libjvm.so+0x2e31f0]
V  [libjvm.so+0x2e37b0]
V  [libjvm.so+0x33023c]
V  [libjvm.so+0x53d720]
V  [libjvm.so+0x53da18]
V  [libjvm.so+0x455928]
C  [libpthread.so.0+0x6494]  start_thread+0xcc
C  [libc.so.6+0xd7578]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;Z)V+0
j  java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+328
j  java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+48
j  java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;)V+57
j  java.lang.System.load(Ljava/lang/String;)V+7
j  tel.schich.javacan.platform.Platform.loadFromClassPath(Ljava/lang/Class;Ljava/lang/String;Ljava/nio/file/Path;)V+67
j  tel.schich.javacan.platform.Platform.loadExplicitLibrary(Ljava/lang/String;Ljava/lang/Class;)V+449
j  tel.schich.javacan.platform.Platform.loadNativeLibrary(Ljava/lang/String;Ljava/lang/Class;)V+10
j  tel.schich.javacan.JavaCAN.initialize()V+11
j  tel.schich.javacan.platform.linux.LinuxNetworkDevice.<clinit>()V+0
v  ~StubRoutines::call_stub
j  tel.schich.javacan.NetworkDevice.lookup(Ljava/lang/String;)Ltel/schich/javacan/NetworkDevice;+29
j  hu.szbuli.smarthome.can.CanReceiveThread.doRun()V+2
j  hu.szbuli.smarthome.can.SafeThread.run()V+1
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0xb4f07400 JavaThread "DestroyJavaVM" [_thread_blocked, id=22764, stack(0xb5100000,0xb5150000)]
=>0xa7626c00 JavaThread "CAN_RECIEVE_THREAD" [_thread_in_native, id=22778, stack(0xa770f000,0xa775f000)]
  0xa7608c00 JavaThread "CAN_SEND_THREAD" [_thread_blocked, id=22777, stack(0xa775f000,0xa77af000)]
  0xa8cdb800 JavaThread "HEARTBEAT" [_thread_blocked, id=22776, stack(0xa78af000,0xa78ff000)]
  0xa8c6a800 JavaThread "RxComputationThreadPool-1" daemon [_thread_blocked, id=22775, stack(0xa8d47000,0xa8d97000)]
  0xa8fab400 JavaThread "com.hivemq.client.mqtt-1-1" [_thread_in_vm, id=22774, stack(0xa8d97000,0xa8de7000)]
  0xab2e4800 JavaThread "RxCachedWorkerPoolEvictor-1" daemon [_thread_blocked, id=22773, stack(0xa9428000,0xa9478000)]
  0xab2e1000 JavaThread "RxSchedulerPurge-1" daemon [_thread_blocked, id=22772, stack(0xa9478000,0xa94c8000)]
  0xb4f84000 JavaThread "Service Thread" daemon [_thread_blocked, id=22770, stack(0xab3c5000,0xab415000)]
  0xb4f81c00 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=22769, stack(0xab416000,0xab496000)]
  0xb4f80000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=22768, stack(0xab496000,0xab4e6000)]
  0xb4f65000 JavaThread "Finalizer" daemon [_thread_blocked, id=22767, stack(0xab960000,0xab9b0000)]
  0xb4f63000 JavaThread "Reference Handler" daemon [_thread_blocked, id=22766, stack(0xab9b0000,0xaba00000)]

Other Threads:
  0xb4f5d800 VMThread [stack: 0xabb17000,0xabb97000] [id=22765]
  0xb4f85c00 WatcherThread [stack: 0xab345000,0xab3c5000] [id=22771]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
 def new generation   total 2624K, used 1691K [0xac200000, 0xac4d0000, 0xae600000)
  eden space 2368K,  60% used [0xac200000, 0xac366e88, 0xac450000)
  from space 256K,  99% used [0xac450000, 0xac48fff8, 0xac490000)
  to   space 256K,   0% used [0xac490000, 0xac490000, 0xac4d0000)
 tenured generation   total 5720K, used 5660K [0xae600000, 0xaeb96000, 0xb2e00000)
   the space 5720K,  98% used [0xae600000, 0xaeb871b0, 0xaeb87200, 0xaeb96000)
 Metaspace       used 11535K, capacity 11764K, committed 11928K, reserved 12592K

Card table byte_map: [0xb5027000,0xb505e000] byte_map_base: 0xb4ac6000

Polling page: 0xb6fb7000

CodeCache: size=32768Kb used=1777Kb max_used=1797Kb free=30990Kb
 bounds [0xb2f00000, 0xb30c8000, 0xb4f00000]
 total_blobs=603 nmethods=402 adapters=133
 compilation: enabled

Compilation events (10 events):
Event: 16.432 Thread 0xb4f81c00  400             com.hivemq.client.internal.util.ByteArrayUtil::equals (71 bytes)
Event: 16.435 Thread 0xb4f81c00 nmethod 400 0xb30bfe88 code [0xb30bff80, 0xb30c014c]
Event: 16.435 Thread 0xb4f81c00  401             java.lang.AbstractStringBuilder::append (144 bytes)
Event: 16.485 Thread 0xb4f81c00 nmethod 401 0xb30c02c8 code [0xb30c0480, 0xb30c0cc0]
Event: 16.616 Thread 0xb4f81c00  402             java.util.Arrays::fill (21 bytes)
Event: 16.618 Thread 0xb4f81c00 nmethod 402 0xb30c1248 code [0xb30c1340, 0xb30c142c]
Event: 16.782 Thread 0xb4f81c00  403             io.netty.channel.DefaultChannelPipeline::channel (5 bytes)
Event: 16.783 Thread 0xb4f81c00 nmethod 403 0xb30c14c8 code [0xb30c15c0, 0xb30c168c]
Event: 16.785 Thread 0xb4f81c00  404             io.netty.channel.AbstractChannelHandlerContext::channel (8 bytes)
Event: 16.787 Thread 0xb4f81c00 nmethod 404 0xb305e288 code [0xb305e380, 0xb305e46c]

GC Heap History (10 events):
Event: 13.066 GC heap before
{Heap before GC invocations=17 (full 1):
 def new generation   total 2624K, used 2624K [0xac200000, 0xac4d0000, 0xae600000)
  eden space 2368K, 100% used [0xac200000, 0xac450000, 0xac450000)
  from space 256K, 100% used [0xac490000, 0xac4d0000, 0xac4d0000)
  to   space 256K,   0% used [0xac450000, 0xac450000, 0xac490000)
 tenured generation   total 5720K, used 3810K [0xae600000, 0xaeb96000, 0xb2e00000)
   the space 5720K,  66% used [0xae600000, 0xae9b8830, 0xae9b8a00, 0xaeb96000)
 Metaspace       used 9686K, capacity 9902K, committed 10008K, reserved 10544K
Event: 13.083 GC heap after
Heap after GC invocations=18 (full 1):
 def new generation   total 2624K, used 256K [0xac200000, 0xac4d0000, 0xae600000)
  eden space 2368K,   0% used [0xac200000, 0xac200000, 0xac450000)
  from space 256K, 100% used [0xac450000, 0xac490000, 0xac490000)
  to   space 256K,   0% used [0xac490000, 0xac490000, 0xac4d0000)
 tenured generation   total 5720K, used 4248K [0xae600000, 0xaeb96000, 0xb2e00000)
   the space 5720K,  74% used [0xae600000, 0xaea26288, 0xaea26400, 0xaeb96000)
 Metaspace       used 9686K, capacity 9902K, committed 10008K, reserved 10544K
}
Event: 13.486 GC heap before
{Heap before GC invocations=18 (full 1):
 def new generation   total 2624K, used 2618K [0xac200000, 0xac4d0000, 0xae600000)
  eden space 2368K,  99% used [0xac200000, 0xac44e870, 0xac450000)
  from space 256K, 100% used [0xac450000, 0xac490000, 0xac490000)
  to   space 256K,   0% used [0xac490000, 0xac490000, 0xac4d0000)
 tenured generation   total 5720K, used 4248K [0xae600000, 0xaeb96000, 0xb2e00000)
   the space 5720K,  74% used [0xae600000, 0xaea26288, 0xaea26400, 0xaeb96000)
 Metaspace       used 9980K, capacity 10190K, committed 10264K, reserved 10544K
Event: 13.497 GC heap after
Heap after GC invocations=19 (full 1):
 def new generation   total 2624K, used 255K [0xac200000, 0xac4d0000, 0xae600000)
  eden space 2368K,   0% used [0xac200000, 0xac200000, 0xac450000)
  from space 256K,  99% used [0xac490000, 0xac4cfff8, 0xac4d0000)
  to   space 256K,   0% used [0xac450000, 0xac450000, 0xac490000)
 tenured generation   total 5720K, used 4677K [0xae600000, 0xaeb96000, 0xb2e00000)
   the space 5720K,  81% used [0xae600000, 0xaea91508, 0xaea91600, 0xaeb96000)
 Metaspace       used 9980K, capacity 10190K, committed 10264K, reserved 10544K
}
Event: 14.267 GC heap before
{Heap before GC invocations=19 (full 1):
 def new generation   total 2624K, used 2623K [0xac200000, 0xac4d0000, 0xae600000)
  eden space 2368K, 100% used [0xac200000, 0xac450000, 0xac450000)
  from space 256K,  99% used [0xac490000, 0xac4cfff8, 0xac4d0000)
  to   space 256K,   0% used [0xac450000, 0xac450000, 0xac490000)
 tenured generation   total 5720K, used 4677K [0xae600000, 0xaeb96000, 0xb2e00000)
   the space 5720K,  81% used [0xae600000, 0xaea91508, 0xaea91600, 0xaeb96000)
 Metaspace       used 10498K, capacity 10702K, committed 10776K, reserved 11568K
Event: 14.280 GC heap after
Heap after GC invocations=20 (full 1):
 def new generation   total 2624K, used 256K [0xac200000, 0xac4d0000, 0xae600000)
  eden space 2368K,   0% used [0xac200000, 0xac200000, 0xac450000)
  from space 256K, 100% used [0xac450000, 0xac490000, 0xac490000)
  to   space 256K,   0% used [0xac490000, 0xac490000, 0xac4d0000)
 tenured generation   total 5720K, used 5021K [0xae600000, 0xaeb96000, 0xb2e00000)
   the space 5720K,  87% used [0xae600000, 0xaeae7500, 0xaeae7600, 0xaeb96000)
 Metaspace       used 10498K, capacity 10702K, committed 10776K, reserved 11568K
}
Event: 14.905 GC heap before
{Heap before GC invocations=20 (full 1):
 def new generation   total 2624K, used 2624K [0xac200000, 0xac4d0000, 0xae600000)
  eden space 2368K, 100% used [0xac200000, 0xac450000, 0xac450000)
  from space 256K, 100% used [0xac450000, 0xac490000, 0xac490000)
  to   space 256K,   0% used [0xac490000, 0xac490000, 0xac4d0000)
 tenured generation   total 5720K, used 5021K [0xae600000, 0xaeb96000, 0xb2e00000)
   the space 5720K,  87% used [0xae600000, 0xaeae7500, 0xaeae7600, 0xaeb96000)
 Metaspace       used 10968K, capacity 11192K, committed 11288K, reserved 11568K
Event: 14.917 GC heap after
Heap after GC invocations=21 (full 1):
 def new generation   total 2624K, used 256K [0xac200000, 0xac4d0000, 0xae600000)
  eden space 2368K,   0% used [0xac200000, 0xac200000, 0xac450000)
  from space 256K, 100% used [0xac490000, 0xac4d0000, 0xac4d0000)
  to   space 256K,   0% used [0xac450000, 0xac450000, 0xac490000)
 tenured generation   total 5720K, used 5345K [0xae600000, 0xaeb96000, 0xb2e00000)
   the space 5720K,  93% used [0xae600000, 0xaeb385c0, 0xaeb38600, 0xaeb96000)
 Metaspace       used 10968K, capacity 11192K, committed 11288K, reserved 11568K
}
Event: 15.555 GC heap before
{Heap before GC invocations=21 (full 1):
 def new generation   total 2624K, used 2624K [0xac200000, 0xac4d0000, 0xae600000)
  eden space 2368K, 100% used [0xac200000, 0xac450000, 0xac450000)
  from space 256K, 100% used [0xac490000, 0xac4d0000, 0xac4d0000)
  to   space 256K,   0% used [0xac450000, 0xac450000, 0xac490000)
 tenured generation   total 5720K, used 5345K [0xae600000, 0xaeb96000, 0xb2e00000)
   the space 5720K,  93% used [0xae600000, 0xaeb385c0, 0xaeb38600, 0xaeb96000)
 Metaspace       used 11320K, capacity 11567K, committed 11672K, reserved 12592K
Event: 15.571 GC heap after
Heap after GC invocations=22 (full 1):
 def new generation   total 2624K, used 255K [0xac200000, 0xac4d0000, 0xae600000)
  eden space 2368K,   0% used [0xac200000, 0xac200000, 0xac450000)
  from space 256K,  99% used [0xac450000, 0xac48fff8, 0xac490000)
  to   space 256K,   0% used [0xac490000, 0xac490000, 0xac4d0000)
 tenured generation   total 5720K, used 5660K [0xae600000, 0xaeb96000, 0xb2e00000)
   the space 5720K,  98% used [0xae600000, 0xaeb871b0, 0xaeb87200, 0xaeb96000)
 Metaspace       used 11320K, capacity 11567K, committed 11672K, reserved 12592K
}

Deoptimization events (0 events):
No events

Classes redefined (0 events):
No events

Internal exceptions (10 events):
Event: 1.367 Thread 0xb4f07400 Exception <a 'java/security/PrivilegedActionException'> (0xac2af7c0) thrown at [/openjdk-8-8u212-b01/src/hotspot/src/share/vm/prims/jvm.cpp, line 1502]
Event: 1.368 Thread 0xb4f07400 Exception <a 'java/security/PrivilegedActionException'> (0xac2af9c0) thrown at [/openjdk-8-8u212-b01/src/hotspot/src/share/vm/prims/jvm.cpp, line 1502]
Event: 1.382 Thread 0xb4f07400 Exception <a 'java/security/PrivilegedActionException'> (0xac2bc6e0) thrown at [/openjdk-8-8u212-b01/src/hotspot/src/share/vm/prims/jvm.cpp, line 1502]
Event: 1.382 Thread 0xb4f07400 Exception <a 'java/security/PrivilegedActionException'> (0xac2bc8e0) thrown at [/openjdk-8-8u212-b01/src/hotspot/src/share/vm/prims/jvm.cpp, line 1502]
Event: 1.383 Thread 0xb4f07400 Exception <a 'java/security/PrivilegedActionException'> (0xac2bd328) thrown at [/openjdk-8-8u212-b01/src/hotspot/src/share/vm/prims/jvm.cpp, line 1502]
Event: 1.383 Thread 0xb4f07400 Exception <a 'java/security/PrivilegedActionException'> (0xac2bd528) thrown at [/openjdk-8-8u212-b01/src/hotspot/src/share/vm/prims/jvm.cpp, line 1502]
Event: 4.115 Thread 0xb4f07400 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0xac32f008) thrown at [/openjdk-8-8u212-b01/src/hotspot/src/share/vm/prims/methodHandles.cpp, line 1167]
Event: 4.145 Thread 0xb4f07400 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0xac33b168) thrown at [/openjdk-8-8u212-b01/src/hotspot/src/share/vm/prims/methodHandles.cpp, line 1167]
Event: 14.134 Thread 0xb4f07400 Exception <a 'java/lang/ArrayIndexOutOfBoundsException'> (0xac3d9980) thrown at [/openjdk-8-8u212-b01/src/hotspot/src/share/vm/runtime/sharedRuntime.cpp, line 609]
Event: 16.693 Thread 0xa7626c00 Exception <a 'sun/nio/fs/UnixException'> (0xac342e28) thrown at [/openjdk-8-8u212-b01/src/hotspot/src/share/vm/prims/jni.cpp, line 710]

Events (10 events):
Event: 16.783 Thread 0xb4f81c00 flushing nmethod 0xb3054a48
Event: 16.783 Thread 0xb4f81c00 flushing nmethod 0xb305ca08
Event: 16.783 Thread 0xb4f81c00 flushing nmethod 0xb305db48
Event: 16.783 Thread 0xb4f81c00 flushing nmethod 0xb306c208
Event: 16.783 Thread 0xb4f81c00 flushing nmethod 0xb306e9c8
Event: 16.788 Thread 0xb4f81c00 flushing nmethod 0xb30a8788
Event: 16.904 loading class de/entropia/can/CanSocket$CanInterface
Event: 16.904 loading class de/entropia/can/CanSocket$CanInterface done
Event: 16.910 loading class de/entropia/can/CanSocket$Mode
Event: 16.910 loading class de/entropia/can/CanSocket$Mode done


Dynamic libraries:
00010000-00011000 r-xp 00000000 b3:02 136679     /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java
00020000-00021000 r--p 00000000 b3:02 136679     /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java
00021000-00022000 rw-p 00001000 b3:02 136679     /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java
0195a000-01a9a000 rw-p 00000000 00:00 0          [heap]
a7600000-a7639000 rw-p 00000000 00:00 0 
a7639000-a7700000 ---p 00000000 00:00 0 
a770f000-a7712000 ---p 00000000 00:00 0 
a7712000-a775f000 rw-p 00000000 00:00 0 
a775f000-a7762000 ---p 00000000 00:00 0 
a7762000-a780f000 rw-p 00000000 00:00 0 
a780f000-a78af000 ---p 00000000 00:00 0 
a78af000-a78b2000 ---p 00000000 00:00 0 
a78b2000-a79ff000 rw-p 00000000 00:00 0 
a79ff000-a7aff000 rw-p 00000000 00:00 0 
a7aff000-a7bff000 rw-p 00000000 00:00 0 
a7bff000-a8c00000 rw-p 00000000 00:00 0 
a8c00000-a8d00000 rw-p 00000000 00:00 0 
a8d31000-a8d36000 r-xp 00000000 b3:02 259134     /tmp/javacan-core-armv7-1799307621341671518/libjavacan-core.so
a8d36000-a8d45000 ---p 00005000 b3:02 259134     /tmp/javacan-core-armv7-1799307621341671518/libjavacan-core.so
a8d45000-a8d46000 r--p 00004000 b3:02 259134     /tmp/javacan-core-armv7-1799307621341671518/libjavacan-core.so
a8d46000-a8d47000 rw-p 00005000 b3:02 259134     /tmp/javacan-core-armv7-1799307621341671518/libjavacan-core.so
a8d47000-a8d4a000 ---p 00000000 00:00 0 
a8d4a000-a8d97000 rw-p 00000000 00:00 0 
a8d97000-a8d9a000 ---p 00000000 00:00 0 
a8d9a000-a8ee7000 rw-p 00000000 00:00 0 
a8ee7000-a8eef000 r-xp 00000000 b3:02 136718     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libmanagement.so
a8eef000-a8efe000 ---p 00008000 b3:02 136718     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libmanagement.so
a8efe000-a8eff000 r--p 00007000 b3:02 136718     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libmanagement.so
a8eff000-a8f00000 rw-p 00008000 b3:02 136718     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libmanagement.so
a8f00000-a9000000 rw-p 00000000 00:00 0 
a9000000-a9100000 rw-p 00000000 00:00 0 
a9100000-a9200000 rw-p 00000000 00:00 0 
a9200000-a9300000 rw-p 00000000 00:00 0 
a9300000-a93fa000 rw-p 00000000 00:00 0 
a93fa000-a9400000 ---p 00000000 00:00 0 
a9408000-a9417000 r-xp 00000000 b3:02 136721     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libnio.so
a9417000-a9426000 ---p 0000f000 b3:02 136721     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libnio.so
a9426000-a9427000 r--p 0000e000 b3:02 136721     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libnio.so
a9427000-a9428000 rw-p 0000f000 b3:02 136721     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libnio.so
a9428000-a942b000 ---p 00000000 00:00 0 
a942b000-a9478000 rw-p 00000000 00:00 0 
a9478000-a947b000 ---p 00000000 00:00 0 
a947b000-ab0c9000 rw-p 00000000 00:00 0 
ab0c9000-ab0de000 r-xp 00000000 b3:02 136720     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libnet.so
ab0de000-ab0ed000 ---p 00015000 b3:02 136720     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libnet.so
ab0ed000-ab0ee000 r--p 00014000 b3:02 136720     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libnet.so
ab0ee000-ab0ef000 rw-p 00015000 b3:02 136720     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libnet.so
ab0ef000-ab200000 r--s 00cb2000 b3:02 129834     /home/pi/smarthome/mqtt-gateway/mqtt-gateway.jar
ab200000-ab300000 rw-p 00000000 00:00 0 
ab30e000-ab329000 r--s 001d6000 b3:02 136743     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/ext/nashorn.jar
ab329000-ab344000 r--s 00394000 b3:02 136738     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/ext/cldrdata.jar
ab344000-ab345000 ---p 00000000 00:00 0 
ab345000-ab3c5000 rw-p 00000000 00:00 0 
ab3c5000-ab3c8000 ---p 00000000 00:00 0 
ab3c8000-ab415000 rw-p 00000000 00:00 0 
ab415000-ab416000 ---p 00000000 00:00 0 
ab416000-ab419000 ---p 00000000 00:00 0 
ab419000-ab496000 rw-p 00000000 00:00 0 
ab496000-ab499000 ---p 00000000 00:00 0 
ab499000-ab4e6000 rw-p 00000000 00:00 0 
ab4e6000-ab760000 r--p 0006b000 b3:02 8657       /usr/lib/locale/locale-archive
ab760000-ab960000 r--p 00000000 b3:02 8657       /usr/lib/locale/locale-archive
ab960000-ab963000 ---p 00000000 00:00 0 
ab963000-ab9b0000 rw-p 00000000 00:00 0 
ab9b0000-ab9b3000 ---p 00000000 00:00 0 
ab9b3000-aba00000 rw-p 00000000 00:00 0 
aba00000-aba5c000 rw-p 00000000 00:00 0 
aba5c000-abb00000 ---p 00000000 00:00 0 
abb03000-abb06000 r-xp 00000000 b3:02 46139      /tmp/de.entropia.can.CanSocket3739155599171528142.so (deleted)
abb06000-abb15000 ---p 00003000 b3:02 46139      /tmp/de.entropia.can.CanSocket3739155599171528142.so (deleted)
abb15000-abb16000 rw-p 00002000 b3:02 46139      /tmp/de.entropia.can.CanSocket3739155599171528142.so (deleted)
abb16000-abb17000 ---p 00000000 00:00 0 
abb17000-abbe5000 rw-p 00000000 00:00 0 
abbe5000-abdb4000 r--s 03c3b000 b3:02 136767     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/rt.jar
abdb4000-ac1fa000 rw-p 00000000 00:00 0 
ac1fa000-ac200000 ---p 00000000 00:00 0 
ac200000-ac4d0000 rw-p 00000000 00:00 0 
ac4d0000-ae600000 ---p 00000000 00:00 0 
ae600000-aeb96000 rw-p 00000000 00:00 0 
aeb96000-b2e00000 ---p 00000000 00:00 0 
b2e09000-b2e0d000 r--s 000a1000 b3:02 136761     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/jsse.jar
b2e0d000-b2e0e000 r--s 00010000 b3:02 136747     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/ext/zipfs.jar
b2e0e000-b2e11000 r--s 0000f000 b3:02 136740     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/ext/icedtea-sound.jar
b2e11000-b2e13000 r--s 00001000 b3:02 136739     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/ext/dnsns.jar
b2e13000-b2e16000 r--s 00039000 b3:02 136746     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/ext/sunpkcs11.jar
b2e16000-b2e20000 r--s 00116000 b3:02 136742     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/ext/localedata.jar
b2e20000-b2e25000 r--s 0003c000 b3:02 136745     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/ext/sunjce_provider.jar
b2e25000-b2e88000 rw-p 00000000 00:00 0 
b2e88000-b2f00000 ---p 00000000 00:00 0 
b2f00000-b30c8000 rwxp 00000000 00:00 0 
b30c8000-b4f00000 ---p 00000000 00:00 0 
b4f00000-b5000000 rw-p 00000000 00:00 0 
b5000000-b5002000 r--s 00008000 b3:02 136744     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/ext/sunec.jar
b5002000-b5005000 rw-p 00000000 00:00 0 
b5005000-b5027000 ---p 00000000 00:00 0 
b5027000-b5029000 rw-p 00000000 00:00 0 
b5029000-b5039000 ---p 00000000 00:00 0 
b5039000-b503c000 rw-p 00000000 00:00 0 
b503c000-b505d000 ---p 00000000 00:00 0 
b505d000-b505e000 rw-p 00000000 00:00 0 
b505e000-b5065000 r-xp 00000000 b3:02 136727     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libzip.so
b5065000-b5074000 ---p 00007000 b3:02 136727     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libzip.so
b5074000-b5075000 r--p 00006000 b3:02 136727     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libzip.so
b5075000-b5076000 rw-p 00007000 b3:02 136727     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libzip.so
b5076000-b507f000 r-xp 00000000 b3:02 5351       /usr/lib/arm-linux-gnueabihf/libnss_files-2.28.so
b507f000-b508f000 ---p 00009000 b3:02 5351       /usr/lib/arm-linux-gnueabihf/libnss_files-2.28.so
b508f000-b5090000 r--p 00009000 b3:02 5351       /usr/lib/arm-linux-gnueabihf/libnss_files-2.28.so
b5090000-b5091000 rw-p 0000a000 b3:02 5351       /usr/lib/arm-linux-gnueabihf/libnss_files-2.28.so
b5091000-b5097000 rw-p 00000000 00:00 0 
b5097000-b50bb000 r-xp 00000000 b3:02 136709     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libjava.so
b50bb000-b50ca000 ---p 00024000 b3:02 136709     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libjava.so
b50ca000-b50cb000 r--p 00023000 b3:02 136709     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libjava.so
b50cb000-b50cc000 rw-p 00024000 b3:02 136709     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libjava.so
b50cc000-b50d7000 r-xp 00000000 b3:02 136726     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libverify.so
b50d7000-b50e6000 ---p 0000b000 b3:02 136726     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libverify.so
b50e6000-b50e7000 r--p 0000a000 b3:02 136726     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libverify.so
b50e7000-b50e8000 rw-p 0000b000 b3:02 136726     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libverify.so
b50e8000-b50ee000 r-xp 00000000 b3:02 5397       /usr/lib/arm-linux-gnueabihf/librt-2.28.so
b50ee000-b50fd000 ---p 00006000 b3:02 5397       /usr/lib/arm-linux-gnueabihf/librt-2.28.so
b50fd000-b50fe000 r--p 00005000 b3:02 5397       /usr/lib/arm-linux-gnueabihf/librt-2.28.so
b50fe000-b50ff000 rw-p 00006000 b3:02 5397       /usr/lib/arm-linux-gnueabihf/librt-2.28.so
b50ff000-b5100000 ---p 00000000 00:00 0 
b5100000-b5103000 ---p 00000000 00:00 0 
b5103000-b5150000 rw-p 00000000 00:00 0 
b5150000-b516c000 r-xp 00000000 b3:02 5265       /usr/lib/arm-linux-gnueabihf/libgcc_s.so.1
b516c000-b517b000 ---p 0001c000 b3:02 5265       /usr/lib/arm-linux-gnueabihf/libgcc_s.so.1
b517b000-b517c000 r--p 0001b000 b3:02 5265       /usr/lib/arm-linux-gnueabihf/libgcc_s.so.1
b517c000-b517d000 rw-p 0001c000 b3:02 5265       /usr/lib/arm-linux-gnueabihf/libgcc_s.so.1
b517d000-b51ee000 r-xp 00000000 b3:02 5318       /usr/lib/arm-linux-gnueabihf/libm-2.28.so
b51ee000-b51fd000 ---p 00071000 b3:02 5318       /usr/lib/arm-linux-gnueabihf/libm-2.28.so
b51fd000-b51fe000 r--p 00070000 b3:02 5318       /usr/lib/arm-linux-gnueabihf/libm-2.28.so
b51fe000-b51ff000 rw-p 00071000 b3:02 5318       /usr/lib/arm-linux-gnueabihf/libm-2.28.so
b51ff000-b532d000 r-xp 00000000 b3:02 5412       /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.25
b532d000-b533d000 ---p 0012e000 b3:02 5412       /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.25
b533d000-b5342000 r--p 0012e000 b3:02 5412       /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.25
b5342000-b5344000 rw-p 00133000 b3:02 5412       /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.25
b5344000-b5346000 rw-p 00000000 00:00 0 
b5346000-b5934000 r-xp 00000000 b3:02 136693     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/client/libjvm.so
b5934000-b5944000 ---p 005ee000 b3:02 136693     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/client/libjvm.so
b5944000-b5954000 r--p 005ee000 b3:02 136693     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/client/libjvm.so
b5954000-b596c000 rw-p 005fe000 b3:02 136693     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/client/libjvm.so
b596c000-b6d87000 rw-p 00000000 00:00 0 
b6d87000-b6ebf000 r-xp 00000000 b3:02 5216       /usr/lib/arm-linux-gnueabihf/libc-2.28.so
b6ebf000-b6ecf000 ---p 00138000 b3:02 5216       /usr/lib/arm-linux-gnueabihf/libc-2.28.so
b6ecf000-b6ed1000 r--p 00138000 b3:02 5216       /usr/lib/arm-linux-gnueabihf/libc-2.28.so
b6ed1000-b6ed2000 rw-p 0013a000 b3:02 5216       /usr/lib/arm-linux-gnueabihf/libc-2.28.so
b6ed2000-b6ed5000 rw-p 00000000 00:00 0 
b6ed5000-b6ed7000 r-xp 00000000 b3:02 5234       /usr/lib/arm-linux-gnueabihf/libdl-2.28.so
b6ed7000-b6ee6000 ---p 00002000 b3:02 5234       /usr/lib/arm-linux-gnueabihf/libdl-2.28.so
b6ee6000-b6ee7000 r--p 00001000 b3:02 5234       /usr/lib/arm-linux-gnueabihf/libdl-2.28.so
b6ee7000-b6ee8000 rw-p 00002000 b3:02 5234       /usr/lib/arm-linux-gnueabihf/libdl-2.28.so
b6ee8000-b6ef6000 r-xp 00000000 b3:02 136695     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/jli/libjli.so
b6ef6000-b6f05000 ---p 0000e000 b3:02 136695     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/jli/libjli.so
b6f05000-b6f06000 r--p 0000d000 b3:02 136695     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/jli/libjli.so
b6f06000-b6f07000 rw-p 0000e000 b3:02 136695     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/jli/libjli.so
b6f07000-b6f21000 r-xp 00000000 b3:02 5443       /usr/lib/arm-linux-gnueabihf/libz.so.1.2.11
b6f21000-b6f30000 ---p 0001a000 b3:02 5443       /usr/lib/arm-linux-gnueabihf/libz.so.1.2.11
b6f30000-b6f31000 r--p 00019000 b3:02 5443       /usr/lib/arm-linux-gnueabihf/libz.so.1.2.11
b6f31000-b6f32000 rw-p 0001a000 b3:02 5443       /usr/lib/arm-linux-gnueabihf/libz.so.1.2.11
b6f32000-b6f49000 r-xp 00000000 b3:02 5389       /usr/lib/arm-linux-gnueabihf/libpthread-2.28.so
b6f49000-b6f58000 ---p 00017000 b3:02 5389       /usr/lib/arm-linux-gnueabihf/libpthread-2.28.so
b6f58000-b6f59000 r--p 00016000 b3:02 5389       /usr/lib/arm-linux-gnueabihf/libpthread-2.28.so
b6f59000-b6f5a000 rw-p 00017000 b3:02 5389       /usr/lib/arm-linux-gnueabihf/libpthread-2.28.so
b6f5a000-b6f5c000 rw-p 00000000 00:00 0 
b6f5c000-b6f63000 r-xp 00000000 b3:02 5199       /usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0
b6f63000-b6f72000 ---p 00007000 b3:02 5199       /usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0
b6f72000-b6f73000 r--p 00006000 b3:02 5199       /usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0
b6f73000-b6f74000 rw-p 00007000 b3:02 5199       /usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0
b6f74000-b6f75000 rw-p 00000000 00:00 0 
b6f75000-b6f77000 r-xp 00000000 b3:02 5194       /usr/lib/arm-linux-gnueabihf/libarmmem-v6l.so
b6f77000-b6f86000 ---p 00002000 b3:02 5194       /usr/lib/arm-linux-gnueabihf/libarmmem-v6l.so
b6f86000-b6f87000 r--p 00001000 b3:02 5194       /usr/lib/arm-linux-gnueabihf/libarmmem-v6l.so
b6f87000-b6f88000 rw-p 00002000 b3:02 5194       /usr/lib/arm-linux-gnueabihf/libarmmem-v6l.so
b6f88000-b6fa8000 r-xp 00000000 b3:02 5107       /usr/lib/arm-linux-gnueabihf/ld-2.28.so
b6fa8000-b6fa9000 r--s 0000a000 b3:02 136741     /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/ext/jaccess.jar
b6fa9000-b6fab000 rw-p 00000000 00:00 0 
b6fab000-b6fad000 r--s 00007000 b3:02 45160      /usr/share/java/java-atk-wrapper.jar
b6fad000-b6fb5000 rw-s 00000000 b3:02 259092     /tmp/hsperfdata_pi/22763
b6fb5000-b6fb7000 rw-p 00000000 00:00 0 
b6fb7000-b6fb8000 r--p 00000000 00:00 0 
b6fb8000-b6fb9000 r--p 00020000 b3:02 5107       /usr/lib/arm-linux-gnueabihf/ld-2.28.so
b6fb9000-b6fba000 rw-p 00021000 b3:02 5107       /usr/lib/arm-linux-gnueabihf/ld-2.28.so
bee18000-bee39000 rw-p 00000000 00:00 0          [stack]
bef1e000-bef1f000 r-xp 00000000 00:00 0          [sigpage]
ffff0000-ffff1000 r-xp 00000000 00:00 0          [vectors]

VM Arguments:
java_command: /home/pi/smarthome/mqtt-gateway/mqtt-gateway.jar --mqtt /home/pi/smarthome/mqtt-gateway/mqtt.properties --gateway /home/pi/smarthome/mqtt-gateway/config.csv --deviceTypes /home/pi/smarthome/mqtt-gateway/deviceTypes.json
java_class_path (initial): /home/pi/smarthome/mqtt-gateway/mqtt-gateway.jar
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
SHELL=/bin/bash

Signal Handlers:
SIGSEGV: [libjvm.so+0x57b11c], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0x57b11c], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0x453b70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0x453b70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0x453b70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0x453b70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGUSR2: [libjvm.so+0x45398c], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: [libjvm.so+0x453ad8], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGINT: [libjvm.so+0x453ad8], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGTERM: [libjvm.so+0x453ad8], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGQUIT: [libjvm.so+0x453ad8], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO


---------------  S Y S T E M  ---------------

OS:PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

uname:Linux 5.4.83+ #1379 Mon Dec 14 13:06:05 GMT 2020 armv6l
libc:glibc 2.28 NPTL 2.28 
rlimit: STACK 8192k, CORE 0k, NPROC 2938, NOFILE 1048576, AS infinity
load average:0.54 0.21 0.12

/proc/meminfo:
MemTotal:         442224 kB
MemFree:          132160 kB
MemAvailable:     290888 kB
Buffers:           43216 kB
Cached:           176644 kB
SwapCached:          220 kB
Active:           170112 kB
Inactive:         102932 kB
Active(anon):      38708 kB
Inactive(anon):    39636 kB
Active(file):     131404 kB
Inactive(file):    63296 kB
Unevictable:          16 kB
Mlocked:              16 kB
SwapTotal:       1048572 kB
SwapFree:        1047292 kB
Dirty:               296 kB
Writeback:             0 kB
AnonPages:         53064 kB
Mapped:            32976 kB
Shmem:             25136 kB
KReclaimable:      18168 kB
Slab:              27120 kB
SReclaimable:      18168 kB
SUnreclaim:         8952 kB
KernelStack:         816 kB
PageTables:         1212 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1269684 kB
Committed_AS:     257168 kB
VmallocTotal:     573440 kB
VmallocUsed:        3736 kB
VmallocChunk:          0 kB
Percpu:               64 kB
CmaTotal:          65536 kB
CmaFree:           64156 kB


CPU:total 1 (initial active 1) 0x41:0x0:0xb76:7

/proc/cpuinfo:
processor	: 0
model name	: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS	: 997.08
Features	: half thumb fastmult vfp edsp java tls 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xb76
CPU revision	: 7

Hardware	: BCM2835
Revision	: 9000c1
Serial		: 00000000c380ffda
Model		: Raspberry Pi Zero W Rev 1.1


Memory: 4k page, physical 442224k(132160k free), swap 1048572k(1047292k free)

vm_info: OpenJDK Client VM (25.212-b01) for linux-aarch32 JRE (1.8.0_212-8u212-b01-1+rpi1-b01), built on Mar 29 2019 13:54:02 by "root" with gcc 8.3.0

time: Sun Feb 21 18:44:40 2021
timezone: GMT
elapsed time: 17 seconds (0d 0h 0m 17s)


@Szbuli It seems the PI Zero uses armv6, but JavaCAN is currently only build for armv7(a). Can you try what I sad in #24 for building a "single architecture version" for armv6? if that works, I'll add it to the default pipeline and try to adjust the architecture detection.

If you have trouble, I could build a version for you, but I don't have the hardware to test it myself.

Thanks, I will try to build it and test it and get back to you soon.

Would it be possible to provide the outputs of cat /proc/cpuinfo, uname -p and lscpu? I want to improve the architecture detection for the multi architecture version (#31). The output of a java program calling System.out.println(System.getProperty("os.arch")) would also be awesome.

Sure.

pi@raspberrypi:~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

Hardware : BCM2835
Revision : 9000c1
Serial : 00000000c380ffda
Model : Raspberry Pi Zero W Rev 1.1

pi@raspberrypi:~ $ sudo uname -p
unknown

pi@raspberrypi:~ $ lscpu
Architecture: armv6l
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
Vendor ID: ARM
Model: 7
Model name: ARM1176
Stepping: r0p7
CPU max MHz: 1000.0000
CPU min MHz: 700.0000
BogoMIPS: 697.95
Flags: half thumb fastmult vfp edsp java tls

System.out.println(System.getProperty("os.arch"));
arm

Thanks!

System.out.println(System.getProperty("os.arch"));
arm

That's exactly why the architecture detection needs improving before I can automatically load libraries for the correct arm architecture

So I refactored the build setup in a way, that completely drops runtime architecture detection. Instead I've put the native libs in dedicated jars per architecture with a classifier on them. This version is currently the latest deployed build in sonatype-snapshots. You just add a dependency to tel.schich:javacan-core:3.0.0-SNAPSHOT:armv6 (same for the epoll module) in addition to the dependency to the default jar.

Thanks! I will test it with rpi zero and rpi3b+ on the weekend.

Did you have a chance to test this?

Thanks, it works like a charm!

Is it still possible to support multiple architectures with the same jar? It would be nice if I did not have to manage seperate depencenies. I will have the same app running on zero, rpi3, rpi4, etc..

I am not sure what happens now if I have multiple architecture depencies, eg. armv6, armv7, etc.

Unless you have some other means for detecting/selecting the arch, I would recommend against arch detection. The native-code jars all have the library at /native/javacan-<module>.so, so shading in multiple will run into conflicts.

Your options:

  1. You could bundle all the jars for the different archs and dynamically load the right one at runtime.
  2. You could try to relocate the *.so files to different locations and at runtime explicitly set the javacan.native.javacan-<module>.classpath property (maven-assembly-plugin might help here).
  3. You could also bundle just the *.so files with your main application and set the javacan.native.javacan-<module>.path property to load them from the filesystem.
  4. In case you are building native OS packages at some point, you could install the appropriate *.so files into the systems LD_LIBRARY_PATH.

Does any of these options work for you?

I'll be releasing JavaCAN 3.0 today unless there are objections against the currently chose approach.

Thanks for your help! One of your suggestion will definitely work!