Pavlo created DAEMON-466:
----------------------------
Summary: Service crashes with 1067 when stopping
Key: DAEMON-466
URL: https://issues.apache.org/jira/browse/DAEMON-466
Project: Commons Daemon
Issue Type: Bug
Components: prunsrv
Affects Versions: 1.4.0
Reporter: Pavlo
Starting with 1.4.0 the service crashes with "Error 1067: The process
terminated unexpectedly" when stopping
[2024-10-17 17:09:39] [info] ( prunsrv.c:1227) [ 1944] Stopping service...
[2024-10-17 17:09:39] [debug] ( javajni.c:424 ) [ 1944] JNI_GetCreatedJavaVMs...
[2024-10-17 17:09:39] [debug] ( javajni.c:1067) [ 8388] Java worker thread
started for agent/Agent:stop
[2024-10-17 17:09:39] [debug] ( javajni.c:1073) [ 8388] JNI calling static void
method agent/Agent:stop
[2024-10-17 17:09:40] [debug] ( prunsrv.c:1277) [ 1944] Waiting for Java JNI
stop worker to finish for agent/Agent:stop...
[2024-10-17 17:09:40] [debug] ( javajni.c:1167) [ 1944] apxJavaWait ->
WaitForSingleObject (0x0000000000000660, -1 milliseconds) (-1=INFINITE)...
[2024-10-17 17:09:41] [debug] ( javajni.c:571 ) [ 5476] Exit hook with exit
code 0
In previous versions (tested on 1.3.3 and 1.3.4) there are two additional logs
after the exit hook which are *not* present in 1.4.0:
[2024-10-17 17:09:15] [debug] ( javajni.c:571 ) [ 6576] Exit hook with exit
code 0
[2024-10-17 17:09:15] [debug] ( prunsrv.c:1194) [ 6576] Stop exit hook called...
[2024-10-17 17:09:15] [debug] ( prunsrv.c:1127) [ 6576] reportServiceStatusE:
dwCurrentState = 1 (SERVICE_STOPPED), dwWin32ExitCode = 0, dwWaitHint = 0
milliseconds, dwServiceSpecificExitCode = 0.
Also found this issue reported here but it is closed
--
This message was sent by Atlassian Jira
(v8.20.10#820010)