Opened 7 years ago

Closed 5 years ago

#633 closed defect (fixed)

segfaults cause i2p to not be able to restart

Reported by: sponge Owned by: zzz
Priority: major Milestone: 0.9.10
Component: wrapper Version: 0.9
Keywords: segfault restart Cc:
Parent Tickets:


When a segfault happens, and the router does not exit cleanly and the wrapper detects this, but is not able to restart because exists. When the router exits unexpectedly like this, the wrapper should delete the file so that it can restart.


 # A fatal error has been detected by the Java Runtime Environment:
 #  SIGSEGV (0xb) at pc=0xb6fe118c, pid=31505, tid=2740644720
 # JRE version: 6.0_30-b12
 # Java VM: Java HotSpot(TM) Server VM (20.5-b03 mixed mode linux-x86 )
 # Problematic frame:
 # V  []
 # An error report file with more information is saved as:
 # /usr/local/i2p/hs_err_pid31505.log
 # If you would like to submit a bug report, please visit:
 JVM exited unexpectedly.
 Launching a JVM...
 Wrapper (Version 3.1.1)

 Starting I2P 0.8.13-25
 ERROR: There appears to be another router already running!
        Please make sure to shut down old instances before starting up
        a new one.  If you are positive that no other instance is running,
        please delete the file /usr/local/i2p/
 <-- Wrapper Stopped

This happens on occasion here. Not sure exactly what the problem is, but I am suspecting a bad RAM module...


Change History (5)

comment:1 Changed 7 years ago by zzz

Getting the wrapper to delete the file might be hard.

Two other possible fixes (at line 232):

1) Use a different exit value than -1, so that the wrapper will wait and try again;

2) Sleep and retest the file in a loop for a couple minutes, as the file won't get re-touched if the previous router has crashed, so the timestamp will become old enough

comment:2 Changed 6 years ago by str4d

  • Milestone 0.9.1 deleted

comment:3 Changed 5 years ago by zzz

  • Milestone set to 0.9.10
  • Status changed from new to accepted

I will implement 2)

comment:4 Changed 5 years ago by zzz

  • Status changed from accepted to testing

In 6263bb149b8301059d0471bcc1d47caeca660f4e i2p.i2p.zzz.test2 to be propped for 0.9.10

comment:5 Changed 5 years ago by zzz

  • Resolution set to fixed
  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.