Opened 10 months ago

Closed 9 months ago

#2423 closed defect (worksforme)

Random restarts on arm-machine

Reported by: sam Owned by:
Priority: minor Milestone: undecided
Component: unspecified Version: 0.9.38
Keywords: Cc:
Parent Tickets: Sensitive: no

Description

I installed the i2p-router (0.9.38-0) on an odroid xu4 (armv7, ubuntu 18.04) and compiled the wrapper from source as described on the i2p-homepage.

i2p version:    0.9.38-0
Java version:	Oracle Corporation 1.8.0_191 (Java(TM) SE Runtime Environment 1.8.0_191-b12)
Wrapper version:3.5.36
Server version:	9.2.25.v20180606
Servlet version:Jasper JSP 2.3 Engine
JSTL version:	standard-taglib 1.2.0
Platform:	Linux arm 4.14.87-153
Processor:	(armcortexa7)
JBigI status:	Locally optimized library libjbigi-linux-armv7.so loaded from file
GMP version:	6.0.0
JBigI version:	3
Encoding:	UTF-8
Charset:	UTF-8
Built By:	zzz

Now i got some random restarts after some errors which are:

2019/01/31 07:51:21 | Launching a JVM...
2019/01/31 07:51:22 | WrapperManager: Initializing...
2019/01/31 07:51:23 | Starting I2P 0.9.38-0
2019/01/31 07:51:23 | INFO: Locally optimized library libjbigi-linux-armv7.so loaded from file
2019/01/31 08:27:38 | KRITISCH [JobQueue 5/5] net.i2p.router.JobQueueRunner : Error processing job [Handle Database Store Message] on thread 4: null
2019/01/31 08:27:38 | java.lang.NullPointerException
2019/01/31 08:27:38 | 	at net.i2p.crypto.eddsa.math.ed25519.Ed25519FieldElement.pow22523(Ed25519FieldElement.java:873)
2019/01/31 08:27:38 | 	at net.i2p.crypto.eddsa.math.GroupElement.<init>(GroupElement.java:321)
2019/01/31 08:27:38 | 	at net.i2p.crypto.eddsa.math.GroupElement.<init>(GroupElement.java:282)
2019/01/31 08:27:38 | 	at net.i2p.crypto.eddsa.spec.EdDSAPublicKeySpec.<init>(EdDSAPublicKeySpec.java:27)
2019/01/31 08:27:38 | 	at net.i2p.crypto.SigUtil.cvtToJavaEdDSAKey(SigUtil.java:360)
2019/01/31 08:27:38 | 	at net.i2p.crypto.SigUtil.toJavaEdDSAKey(SigUtil.java:327)
2019/01/31 08:27:38 | 	at net.i2p.crypto.SigUtil.toJavaKey(SigUtil.java:74)
2019/01/31 08:27:38 | 	at net.i2p.crypto.DSAEngine.altVerifySig(DSAEngine.java:518)
2019/01/31 08:27:38 | 	at net.i2p.crypto.DSAEngine.verifySignature(DSAEngine.java:109)
2019/01/31 08:27:38 | 	at net.i2p.crypto.DSAEngine.verifySignature(DSAEngine.java:96)
2019/01/31 08:27:38 | 	at net.i2p.data.DatabaseEntry.verifySignature(DatabaseEntry.java:250)
2019/01/31 08:27:38 | 	at net.i2p.data.LeaseSet.verifySignature(LeaseSet.java:254)
2019/01/31 08:27:38 | 	at net.i2p.router.networkdb.kademlia.KademliaNetworkDatabaseFacade.validate(KademliaNetworkDatabaseFacade.java:804)
2019/01/31 08:27:38 | 	at net.i2p.router.networkdb.kademlia.KademliaNetworkDatabaseFacade.store(KademliaNetworkDatabaseFacade.java:872)
2019/01/31 08:27:38 | 	at net.i2p.router.networkdb.kademlia.HandleFloodfillDatabaseStoreMessageJob.runJob(HandleFloodfillDatabaseStoreMessageJob.java:110)
2019/01/31 08:27:38 | 	at net.i2p.router.JobQueueRunner.runCurrentJob(JobQueueRunner.java:135)
2019/01/31 08:27:38 | 	at net.i2p.router.JobQueueRunner.run(JobQueueRunner.java:78)
2019/01/31 17:00:33 | #
2019/01/31 17:00:33 | # A fatal error has been detected by the Java Runtime Environment:
2019/01/31 17:00:33 | #
2019/01/31 17:00:33 | #  SIGSEGV (0xb) at pc=0xb6770df4, pid=20419, tid=0x6e547460
2019/01/31 17:00:33 | #
2019/01/31 17:00:33 | # JRE version: Java(TM) SE Runtime Environment (8.0_191-b12) (build 1.8.0_191-b12)
2019/01/31 17:00:33 | # Java VM: Java HotSpot(TM) Client VM (25.191-b12 mixed mode linux-arm )
2019/01/31 17:00:33 | # Problematic frame:
2019/01/31 17:00:33 | # V  [libjvm.so+0x375df4]  Klass::external_name() const+0xc
2019/01/31 17:00:33 | #
2019/01/31 17:00:33 | # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
2019/01/31 17:00:33 | #
2019/01/31 17:00:33 | # An error report file with more information is saved as:
2019/01/31 17:00:33 | # /home/user/i2pbin/hs_err_pid20419.log
2019/01/31 17:00:33 | #
2019/01/31 17:00:33 | # If you would like to submit a bug report, please visit:
2019/01/31 17:00:33 | #   http://bugreport.java.com/bugreport/crash.jsp
2019/01/31 17:00:33 | #
2019/01/31 17:00:33 | JVM received a signal UNKNOWN (6).
2019/01/31 17:00:33 | JVM process is gone.
2019/01/31 17:00:33 | JVM exited unexpectedly.
2019/01/31 17:00:48 | JVM process is gone.
2019/01/31 17:00:48 | Launching a JVM...
2019/01/31 17:00:49 | WrapperManager: Initializing...
2019/01/31 17:00:50 | Starting I2P 0.9.38-0
2019/01/31 17:00:50 | WARN: There may be another router already running. Waiting a while to be sure...
2019/01/31 17:01:30 | WARN: Old router was not shut down gracefully, deleting /home/user/.i2p/router.ping
2019/01/31 17:01:30 | INFO: No, there wasn't another router already running. Proceeding with startup.
2019/01/31 17:01:30 | INFO: Locally optimized library libjbigi-linux-armv7.so loaded from file
2019/01/31 17:33:24 | KRITISCH [P reader 2/4] p.router.transport.ntcp.Reader: Error in the ntcp reader
2019/01/31 17:33:24 | java.lang.IllegalArgumentException
2019/01/31 17:33:24 | 	at java.nio.Buffer.position(Buffer.java:244)
2019/01/31 17:33:24 | 	at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:153)
2019/01/31 17:33:24 | 	at net.i2p.router.transport.ntcp.InboundEstablishState.receiveInboundNTCP2(InboundEstablishState.java:812)
2019/01/31 17:33:24 | 	at net.i2p.router.transport.ntcp.InboundEstablishState.receiveInbound(InboundEstablishState.java:147)
2019/01/31 17:33:24 | 	at net.i2p.router.transport.ntcp.InboundEstablishState.receive(InboundEstablishState.java:115)
2019/01/31 17:33:24 | 	at net.i2p.router.transport.ntcp.Reader.processRead(Reader.java:161)
2019/01/31 17:33:24 | 	at net.i2p.router.transport.ntcp.Reader.access$400(Reader.java:21)
2019/01/31 17:33:24 | 	at net.i2p.router.transport.ntcp.Reader$Runner.run(Reader.java:120)
2019/01/31 17:33:24 | 	at java.lang.Thread.run(Thread.java:748)
2019/01/31 17:33:24 | 	at net.i2p.util.I2PThread.run(I2PThread.java:103)
2019/01/31 18:35:42 | #
2019/01/31 18:35:42 | # A fatal error has been detected by the Java Runtime Environment:
2019/01/31 18:35:42 | #
2019/01/31 18:35:42 | #  SIGSEGV (0xb) at pc=0xb41977dc, pid=6502, tid=0x6ebff460
2019/01/31 18:35:42 | #
2019/01/31 18:35:42 | # JRE version: Java(TM) SE Runtime Environment (8.0_191-b12) (build 1.8.0_191-b12)
2019/01/31 18:35:42 | # Java VM: Java HotSpot(TM) Client VM (25.191-b12 mixed mode linux-arm )
2019/01/31 18:35:42 | # Problematic frame:
2019/01/31 18:35:42 | # v  ~BufferBlob::I2C/C2I adapters
2019/01/31 18:35:42 | #
2019/01/31 18:35:42 | # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
2019/01/31 18:35:42 | #
2019/01/31 18:35:42 | # An error report file with more information is saved as:
2019/01/31 18:35:42 | # /home/user/i2pbin/hs_err_pid6502.log
2019/01/31 18:35:42 | Compiled method (c1) 5694171 70610             net.i2p.router.transport.FIFOBandwidthLimiter::shortcutSatisfyInboundRequest (63 bytes)
2019/01/31 18:35:42 |  total in heap  [0xb42bfdc8,0xb42c0100] = 824
2019/01/31 18:35:42 |  relocation     [0xb42bfe94,0xb42bfeb4] = 32
2019/01/31 18:35:42 |  main code      [0xb42bfec0,0xb42c0000] = 320
2019/01/31 18:35:42 |  stub code      [0xb42c0000,0xb42c0034] = 52
2019/01/31 18:35:42 |  oops           [0xb42c0034,0xb42c0038] = 4
2019/01/31 18:35:42 |  metadata       [0xb42c0038,0xb42c0044] = 12
2019/01/31 18:35:42 |  scopes data    [0xb42c0044,0xb42c007c] = 56
2019/01/31 18:35:42 |  scopes pcs     [0xb42c007c,0xb42c00dc] = 96
2019/01/31 18:35:42 |  dependencies   [0xb42c00dc,0xb42c00e4] = 8
2019/01/31 18:35:42 |  nul chk table  [0xb42c00e4,0xb42c0100] = 28
2019/01/31 18:35:42 | AHE@0xb625dd38: 0xa0000000 i2c: 0xb41977c0 c2i: 0xb41977f8 c2iUV: 0xb41977d8
2019/01/31 18:35:42 | #
2019/01/31 18:35:42 | # If you would like to submit a bug report, please visit:
2019/01/31 18:35:42 | #   http://bugreport.java.com/bugreport/crash.jsp
2019/01/31 18:35:42 | #
2019/01/31 18:35:43 | JVM received a signal UNKNOWN (6).
2019/01/31 18:35:43 | JVM process is gone.
2019/01/31 18:35:43 | JVM exited unexpectedly.
2019/01/31 18:35:57 | JVM process is gone.
2019/01/31 18:35:58 | Launching a JVM...
2019/01/31 18:35:58 | WrapperManager: Initializing...
2019/01/31 18:35:59 | Starting I2P 0.9.38-0
2019/01/31 18:35:59 | WARN: There may be another router already running. Waiting a while to be sure...
2019/01/31 18:36:04 | WARN: Old router was not shut down gracefully, deleting /home/user/.i2p/router.ping
2019/01/31 18:36:04 | INFO: No, there wasn't another router already running. Proceeding with startup.
2019/01/31 18:36:04 | INFO: Locally optimized library libjbigi-linux-armv7.so loaded from file
2019/01/31 19:29:43 | KRITISCH [P reader 1/4] p.router.transport.ntcp.Reader: Error in the ntcp reader
2019/01/31 19:29:43 | java.lang.IllegalArgumentException
2019/01/31 19:29:43 | 	at java.nio.Buffer.position(Buffer.java:244)
2019/01/31 19:29:43 | 	at net.i2p.router.transport.ntcp.NTCPConnection$NTCP2ReadState.receive(NTCPConnection.java:2001)
2019/01/31 19:29:43 | 	at net.i2p.router.transport.ntcp.NTCPConnection.recvEncryptedI2NP(NTCPConnection.java:1359)
2019/01/31 19:29:43 | 	at net.i2p.router.transport.ntcp.Reader.processRead(Reader.java:171)
2019/01/31 19:29:43 | 	at net.i2p.router.transport.ntcp.Reader.access$400(Reader.java:21)
2019/01/31 19:29:43 | 	at net.i2p.router.transport.ntcp.Reader$Runner.run(Reader.java:120)
2019/01/31 19:29:43 | 	at java.lang.Thread.run(Thread.java:748)
2019/01/31 19:29:43 | 	at net.i2p.util.I2PThread.run(I2PThread.java:103)
2019/01/31 20:07:55 | KRITISCH [P reader 2/4] p.router.transport.ntcp.Reader: Error in the ntcp reader
2019/01/31 20:07:55 | java.lang.IllegalArgumentException
2019/01/31 20:07:55 | 	at java.nio.Buffer.position(Buffer.java:244)
2019/01/31 20:07:55 | 	at net.i2p.router.transport.ntcp.NTCPConnection$NTCP2ReadState.receive(NTCPConnection.java:2001)
2019/01/31 20:07:55 | 	at net.i2p.router.transport.ntcp.NTCPConnection.recvEncryptedI2NP(NTCPConnection.java:1359)
2019/01/31 20:07:55 | 	at net.i2p.router.transport.ntcp.Reader.processRead(Reader.java:171)
2019/01/31 20:07:55 | 	at net.i2p.router.transport.ntcp.Reader.access$400(Reader.java:21)
2019/01/31 20:07:55 | 	at net.i2p.router.transport.ntcp.Reader$Runner.run(Reader.java:120)
2019/01/31 20:07:55 | 	at java.lang.Thread.run(Thread.java:748)
2019/01/31 20:07:55 | 	at net.i2p.util.I2PThread.run(I2PThread.java:103)
2019/02/01 10:22:02 | KRITISCH [P reader 2/4] p.router.transport.ntcp.Reader: Error in the ntcp reader
2019/02/01 10:22:02 | java.lang.IllegalArgumentException
2019/02/01 10:22:02 | 	at java.nio.Buffer.position(Buffer.java:244)
2019/02/01 10:22:02 | 	at net.i2p.router.transport.ntcp.NTCPConnection$NTCP2ReadState.receive(NTCPConnection.java:2001)
2019/02/01 10:22:02 | 	at net.i2p.router.transport.ntcp.NTCPConnection.recvEncryptedI2NP(NTCPConnection.java:1359)
2019/02/01 10:22:02 | 	at net.i2p.router.transport.ntcp.Reader.processRead(Reader.java:171)
2019/02/01 10:22:02 | 	at net.i2p.router.transport.ntcp.Reader.access$400(Reader.java:21)
2019/02/01 10:22:02 | 	at net.i2p.router.transport.ntcp.Reader$Runner.run(Reader.java:120)
2019/02/01 10:22:02 | 	at java.lang.Thread.run(Thread.java:748)
2019/02/01 10:22:02 | 	at net.i2p.util.I2PThread.run(I2PThread.java:103)
2019/02/01 15:34:17 | KRITISCH [P reader 3/4] p.router.transport.ntcp.Reader: Error in the ntcp reader
2019/02/01 15:34:17 | java.lang.IllegalArgumentException
2019/02/01 15:34:17 | 	at java.nio.Buffer.position(Buffer.java:244)
2019/02/01 15:34:17 | 	at net.i2p.router.transport.ntcp.NTCPConnection$NTCP2ReadState.receive(NTCPConnection.java:2001)
2019/02/01 15:34:17 | 	at net.i2p.router.transport.ntcp.NTCPConnection.recvEncryptedI2NP(NTCPConnection.java:1359)
2019/02/01 15:34:17 | 	at net.i2p.router.transport.ntcp.Reader.processRead(Reader.java:171)
2019/02/01 15:34:17 | 	at net.i2p.router.transport.ntcp.Reader.access$400(Reader.java:21)
2019/02/01 15:34:17 | 	at net.i2p.router.transport.ntcp.Reader$Runner.run(Reader.java:120)
2019/02/01 15:34:17 | 	at java.lang.Thread.run(Thread.java:748)
2019/02/01 15:34:17 | 	at net.i2p.util.I2PThread.run(I2PThread.java:103)
2019/02/01 15:59:25 | 01.02.19 15:59:23 ^^^ 1 similar message omitted ^^^ 

Subtickets

Change History (9)

comment:1 Changed 10 months ago by sam

Summary: Random shutdowns on arm-machineRandom restarts on arm-machine

comment:2 Changed 10 months ago by jogger

Please try Java 11 first. 8 is crashy on ARM. I am running several HC1, nearly identical to XU4, successfully with 11. See #2368.

comment:3 in reply to:  2 Changed 10 months ago by sam

Replying to jogger:

Please try Java 11 first. 8 is crashy on ARM. I am running several HC1, nearly identical to XU4, successfully with 11. See #2368.

Ok thanks. I just installed the package openjdk-11-jre on ubuntu. Unlike the name suggests this command installs Java 10. I try to find a java 11 build for arm but could not find anything on OpenJDK and Oracle Java. The Source-Code of OpenJDK 11.0.2 says that is it not recommend to complile it on arm. You should cross-compile it instead. This is to heavy for me. :)

So if you have any source of Java 11 for arm pls let me know.

In the meantime i go on testing Java 10. It now runs several ours without any problems.
To be sure that it works stable i will test it some more days.

By the way: If it works it would be nice to add this info to the router-console for all arm-users.

Last edited 10 months ago by sam (previous) (diff)

comment:4 Changed 10 months ago by jogger

I have compiled OpenJDK several times on HC1. Takes 1 hour when running on SSD, which should not be much slower for you with USB 3.0/SSD.

Currently running the OpenJDK 11.0.1 right from the Armbian distro. Could post either one at postman.

Cheat sheet for building yourself:

hg clone -u jdk-11.0.2-ga http://hg.openjdk.java.net/jdk-updates/jdk11u;cd jdk11u
bash configure —disable-warnings-as-errors ←-with-jtreg=/path/to/jtreg>
make JOBS=4 images
make test will probably fail, takes a full day

comment:5 Changed 10 months ago by sam

Java version 10.0.2 (installed with the package openjdk-11-jre) also doesnt work without errors.

Can you pls upload your 11.0.1 build on postman?

comment:6 Changed 10 months ago by jogger

Its out

comment:7 in reply to:  6 Changed 10 months ago by sam

Replying to jogger:

Its out

Thanks a lot. Just began to download it and can continue downloading in about 24hours.

I will post some updates after the "installation".

comment:8 Changed 9 months ago by sam

Found some time and compiled jdk-11.0.2 myself. Works since 2 days without any problems.
I hope it stays that way.
Thanks jogger

comment:9 Changed 9 months ago by sam

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.