[ https://issues.apache.org/jira/browse/DAEMON-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17282192#comment-17282192 ]
scott williams commented on DAEMON-431: --------------------------------------- I can capture a stack trace if you can point me to the steps. I have java tools installed, but can install anything MS if needed to do it, just not sure what I would need to do. Debug logs below. Startup works fine. When I stop the service, it does the right thing and will reach out to wildfly and it will issue the stop command. This one here: {code:java} [2021-02-09 18:59:11] [debug] (rprocess.c:554 ) [ 9144] Apache Commons Daemon Command line: cmd.exe "/c jboss-cli.bat --controller=localhost:9990 --connect --user=admin --password=ff@aaaaaa@bb@dd --command=:shutdown"{code} does in fact stop wildfly. But then the service just shows stopping for a while. About a minute like we see in the logs. At 19:00:15, we record the application event log crash I pasted above. Older versions of prunsrv (1.0.15) would throw this fault on both start and stop for server 2012 but not win10. But this 1.2.4 crashes on all of my test machines when stopping. It does stop, but makes it appear to be very slow when in fact looks like we are waiting on a timeout of some type. Thanks! [2021-02-09 18:58:09] [debug] ( prunsrv.c:1892) [ 2408] Apache Commons Daemon procrun log initialized. [2021-02-09 18:58:09] [info] ( prunsrv.c:1896) [ 2408] Apache Commons Daemon procrun (1.2.4.0 64-bit) started. [2021-02-09 18:58:09] [info] ( prunsrv.c:1806) [ 2408] Running Service ' [2021-02-09 18:58:09] [debug] ( prunsrv.c:1577) [28268] Inside ServiceMain... [2021-02-09 18:58:09] [debug] ( prunsrv.c:1032) [28268] reportServiceStatusE: dwCurrentState = 2, dwWin32ExitCode = 0, dwWaitHint = 3000, dwServiceSpecificExitCode = 0. [2021-02-09 18:58:09] [info] ( prunsrv.c:1325) [28268] Starting service... [2021-02-09 18:58:09] [debug] (rprocess.c:519 ) [28268] Apache Commons Daemon apxProcessExecute() [2021-02-09 18:58:09] [debug] (rprocess.c:258 ) [28268] Apache Commons Daemon procrun __apxProcCreateChildPipes() [2021-02-09 18:58:09] [debug] (rprocess.c:535 ) [28268] Apache Commons Daemon AplZeroMemory() [2021-02-09 18:58:09] [debug] (rprocess.c:550 ) [28268] Apache Commons Daemon GetEnvironmentStringsW() [2021-02-09 18:58:09] [debug] (rprocess.c:553 ) [28268] Apache Commons Daemon Application name: cmd.exe [2021-02-09 18:58:09] [debug] (rprocess.c:554 ) [28268] Apache Commons Daemon Command line: cmd.exe /c set NOPAUSE=Y && standalone.bat -Djboss.server.base.dir=C:\web\standalone --server-config=standalone.xml [2021-02-09 18:58:09] [debug] (rprocess.c:555 ) [28268] Apache Commons Daemon Working path: C:\web\bin [2021-02-09 18:58:09] [debug] (rprocess.c:573 ) [28268] Apache Commons Daemon CreateProcessW() [2021-02-09 18:58:09] [debug] (rprocess.c:595 ) [28268] Apache Commons Daemon CreateThread() [2021-02-09 18:58:09] [debug] (rprocess.c:598 ) [28268] Apache Commons Daemon CreateThread() [2021-02-09 18:58:09] [debug] (rprocess.c:601 ) [28268] Apache Commons Daemon ResumeThread() [2021-02-09 18:58:09] [debug] (rprocess.c:603 ) [28268] Apache Commons Daemon CreateThread() [2021-02-09 18:58:09] [debug] (rprocess.c:609 ) [28268] Apache Commons Daemon apxProcessExecute() returning TRUE [2021-02-09 18:58:09] [info] ( prunsrv.c:1488) [28268] Service started in 11 milliseconds. [2021-02-09 18:58:09] [debug] ( prunsrv.c:1032) [28268] reportServiceStatusE: dwCurrentState = 4, dwWin32ExitCode = 0, dwWaitHint = 0, dwServiceSpecificExitCode = 0. [2021-02-09 18:58:09] [debug] ( prunsrv.c:1732) [28268] Waiting for worker to finish... [2021-02-09 18:59:11] [debug] ( prunsrv.c:1032) [ 2408] reportServiceStatusE: dwCurrentState = 3, dwWin32ExitCode = 0, dwWaitHint = 3000, dwServiceSpecificExitCode = 0. [2021-02-09 18:59:11] [info] ( prunsrv.c:1132) [ 9144] Stopping service... [2021-02-09 18:59:11] [debug] (rprocess.c:519 ) [ 9144] Apache Commons Daemon apxProcessExecute() [2021-02-09 18:59:11] [debug] (rprocess.c:258 ) [ 9144] Apache Commons Daemon procrun __apxProcCreateChildPipes() [2021-02-09 18:59:11] [debug] (rprocess.c:535 ) [ 9144] Apache Commons Daemon AplZeroMemory() [2021-02-09 18:59:11] [debug] (rprocess.c:550 ) [ 9144] Apache Commons Daemon GetEnvironmentStringsW() [2021-02-09 18:59:11] [debug] (rprocess.c:553 ) [ 9144] Apache Commons Daemon Application name: cmd.exe [2021-02-09 18:59:11] [debug] (rprocess.c:554 ) [ 9144] Apache Commons Daemon Command line: cmd.exe "/c jboss-cli.bat --controller=localhost:9990 --connect --user=admin --password=ff@aaaaaa@bb@dd --command=:shutdown" [2021-02-09 18:59:11] [debug] (rprocess.c:555 ) [ 9144] Apache Commons Daemon Working path: C:\web\bin [2021-02-09 18:59:11] [debug] (rprocess.c:573 ) [ 9144] Apache Commons Daemon CreateProcessW() [2021-02-09 18:59:11] [debug] (rprocess.c:595 ) [ 9144] Apache Commons Daemon CreateThread() [2021-02-09 18:59:11] [debug] (rprocess.c:598 ) [ 9144] Apache Commons Daemon CreateThread() [2021-02-09 18:59:11] [debug] (rprocess.c:601 ) [ 9144] Apache Commons Daemon ResumeThread() [2021-02-09 18:59:11] [debug] (rprocess.c:603 ) [ 9144] Apache Commons Daemon CreateThread() [2021-02-09 18:59:11] [debug] (rprocess.c:609 ) [ 9144] Apache Commons Daemon apxProcessExecute() returning TRUE [2021-02-09 18:59:11] [debug] ( prunsrv.c:1253) [ 9144] Waiting for stop worker to finish... [2021-02-09 18:59:15] [debug] (rprocess.c:122 ) [13864] Apache Commons Daemon Child process exit code 0 [2021-02-09 18:59:15] [debug] ( prunsrv.c:1737) [28268] Worker finished. [2021-02-09 18:59:15] [debug] ( prunsrv.c:1746) [28268] Waiting for ShutdownEvent. [2021-02-09 18:59:15] [debug] ( prunsrv.c:1032) [28268] reportServiceStatusE: dwCurrentState = 3, dwWin32ExitCode = 0, dwWaitHint = 60000, dwServiceSpecificExitCode = 0. [2021-02-09 19:00:15] [debug] ( prunsrv.c:1749) [28268] ShutdownEvent signaled. [2021-02-09 19:00:15] [debug] ( prunsrv.c:1755) [28268] Waiting 1 minute for all threads to exit. [2021-02-09 19:00:15] [debug] ( prunsrv.c:1032) [28268] reportServiceStatusE: dwCurrentState = 3, dwWin32ExitCode = 0, dwWaitHint = 60000, dwServiceSpecificExitCode = 0. [2021-02-09 19:00:15] [debug] ( prunsrv.c:1768) [28268] JVM destroyed. [2021-02-09 19:00:15] [debug] ( prunsrv.c:1032) [28268] reportServiceStatusE: dwCurrentState = 1, dwWin32ExitCode = 0, dwWaitHint = 0, dwServiceSpecificExitCode = 0. [2021-02-09 19:00:15] [info] ( prunsrv.c:1808) [ 2408] Run service finished. [2021-02-09 19:00:15] [info] ( prunsrv.c:1980) [ 2408] Apache Commons Daemon procrun finished. > prunsrv crashes when stopping most windows versions > --------------------------------------------------- > > Key: DAEMON-431 > URL: https://issues.apache.org/jira/browse/DAEMON-431 > Project: Commons Daemon > Issue Type: Bug > Components: prunsrv > Affects Versions: 1.2.4 > Environment: windows 10 fully patched. > Reporter: scott williams > Priority: Major > > Crashes when stopping every time. This is from win10 fully patched, but also > crashes on server 2012 and 2016 older patched. > > Faulting application name: wildfly-service.exe, version: 1.2.4.0, time stamp: > 0x600011df > Faulting module name: ntdll.dll, version: 10.0.19041.789, time stamp: > 0x4f929756 > Exception code: 0xc0000374 > Fault offset: 0x00000000000ff099 > Faulting process id: 0x14d4 > Faulting application start time: 0x01d6ff2eb6330c32 > Faulting application path: C:\web\bin\service\amd64\wildfly-service.exe > Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll > Report Id: f2389cdb-df37-4a9c-b862-4399161457ea > Faulting package full name: > Faulting package-relative application ID: -- This message was sent by Atlassian Jira (v8.3.4#803005)