First, execute a program. java -jar XXX.jar
Second, In java program, run ble and run 'sudo reboot now'
third, after boot, execute a program. java -jar XXX.jar
1) In case faster execute - core dump
A fatal error has been detected by the Java Runtime Environment:
#
SIGSEGV (0xb) at pc=0x641cf170, pid=899, tid=1659528304
#
JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17)
First, execute a program. java -jar XXX.jar Second, In java program, run ble and run 'sudo reboot now' third, after boot, execute a program. java -jar XXX.jar
1) In case faster execute - core dump
A fatal error has been detected by the Java Runtime Environment:
#
SIGSEGV (0xb) at pc=0x641cf170, pid=899, tid=1659528304
#
JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17)
Java VM: Java HotSpot(TM) Client VM (25.65-b01 mixed mode linux-arm )
Problematic frame:
C [libstdc++.so.6+0x83170] std::__detail::_List_node_base::_M_unhook()+0x8
#
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
An error report file with more information is saved as:
/home/pi/hs_err_pid899.log
#
If you would like to submit a bug report, please visit:
http://bugreport.java.com/bugreport/crash.jsp
# Aborted
2) very slowly execution - core dump or normal execution.
Q) what is the problem? linux system cause problem? or tinyB.jar cause problem? or do not close many resource in java code?
source )
--- previous work ---
Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { running = false; alpsData.disableValueNotifications(); alpsData.close(); alpsControl.close(); alpsReadResponse.close(); alpsService.close(); sensor.disconnect(); sensor.close(); } });
------------------------ rebooting ----------------------
public class Reboot {
}