[ZBX-19926] Zabbix Agent Crashes with Windows Server 2022 Created: 2021 Sep 08 Updated: 2024 Nov 22 Resolved: 2021 Nov 08 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 5.0.15 |
Fix Version/s: | 4.0.36rc1, 5.0.18rc1, 5.4.8rc1, 6.0.0alpha6, 6.0 (plan) |
Type: | Problem report | Priority: | Critical |
Reporter: | Antti Hurme | Assignee: | Vladislavs Sokurenko |
Resolution: | Fixed | Votes: | 5 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() |
||||||||
Issue Links: |
|
||||||||
Team: | |||||||||
Sprint: | Sprint 81 (Oct 2021), Sprint 82 (Nov 2021) | ||||||||
Story Points: | 2 |
Description |
After Inplace upgrading a Windows Server 2019 with a working Zabbix installation to Windows Server 2022, causes the zabbix agent to crash after service start. Been able to reproduce with two VMs, both have the same details in the log. 1040:20210907:124823.045 Starting Zabbix Agent [firaidc01.dev.fqdn.com]. Zabbix 5.0.9 (revision 4d07aaafe2). 1040:20210907:124823.047 **** Enabled features **** 1040:20210907:124823.048 IPv6 support: YES 1040:20210907:124823.050 TLS support: YES 1040:20210907:124823.051 ************************** 1040:20210907:124823.053 using configuration file: C:\ProgramData\directory\Zabbix\zabbix_agentd.conf 1040:20210907:124824.125 agent #0 started [main process] 7828:20210907:124824.127 agent #1 started [collector] 4428:20210907:124824.129 agent #2 started [listener #1|#1] 7056:20210907:124824.131 agent #3 started [listener #2|#2] 8120:20210907:124824.133 agent #4 started [listener #3|#3] 3740:20210907:124824.134 agent #5 started [listener #4|#4] 452:20210907:124824.136 agent #6 started [listener #5|#5] 5204:20210907:124824.137 agent #7 started [listener #6|#6] 7236:20210907:124824.139 agent #8 started [active checks #1|#1] 7236:20210907:124824.171 Unhandled exception c0000005 detected at 0x00007FFBAEEC3AD6. Crashing ... 7236:20210907:124824.172 ====== Fatal information: ====== 7236:20210907:124824.174 Program counter: 0xaeec3ad6 7236:20210907:124824.175 === Registers: === 7236:20210907:124824.177 r8 = 1323cb0 = 20069552 = 20069552 7236:20210907:124824.179 r9 = 1323cb8 = 20069560 = 20069560 7236:20210907:124824.180 r10 = 472a14 = 4663828 = 4663828 7236:20210907:124824.182 r11 = 0 = 0 = 0 7236:20210907:124824.183 r12 = 338 = 824 = 824 7236:20210907:124824.185 r13 = 0 = 0 = 0 7236:20210907:124824.187 r14 = 2 = 2 = 2 7236:20210907:124824.188 r15 = 470000 = 4653056 = 4653056 7236:20210907:124824.190 rdi = 1323cb = 1254347 = 1254347 7236:20210907:124824.191 rsi = 1323cb0 = 20069552 = 20069552 7236:20210907:124824.193 rbp = 1323cc0 = 20069568 = 20069568 7236:20210907:124824.194 rbx = 470000 = 4653056 = 4653056 7236:20210907:124824.196 rdx = 7d5b7860 = 2103146592 = 2103146592 7236:20210907:124824.197 rax = 0 = 0 = 0 7236:20210907:124824.199 rcx = 1323cbf = 20069567 = 20069567 7236:20210907:124824.200 rsp = 3fef1b0 = 67039664 = 67039664 7236:20210907:124824.202 efl = 10206 = 66054 = 66054 7236:20210907:124824.203 csgsfs = 332b5300 = 858477312 = 858477312 7236:20210907:124824.205 === Backtrace: === 7236:20210907:124824.339 13: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe(RtlReAllocateHeap+0x1276) [0xaeec3ad6] 7236:20210907:124824.341 12: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe(RtlReAllocateHeap+0x197) [0xaeec29f7] 7236:20210907:124824.343 11: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe(RtlReAllocateHeap+0x5a) [0xaeec28ba] 7236:20210907:124824.344 10: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x4021f847] 7236:20210907:124824.346 9: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x40075b03] 7236:20210907:124824.347 8: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x4009e8fc] 7236:20210907:124824.349 7: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x4009d34c] 7236:20210907:124824.350 6: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x4009c573] 7236:20210907:124824.352 5: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x4009a2a8] 7236:20210907:124824.353 4: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x4009934f] 7236:20210907:124824.355 3: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x40084487] 7236:20210907:124824.357 2: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x40219028] 7236:20210907:124824.358 1: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe(BaseThreadInitThunk+0x10) [0xad7f4ed0] 7236:20210907:124824.360 0: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe(RtlUserThreadStart+0x2b) [0xaef2e20b] 6920:20210908:083733.814 ================================ 8952:20210908:083815.106 Starting Zabbix Agent [firaidc01.dev.fqdn.com]. Zabbix 5.0.15 (revision 40fb64d970). 8952:20210908:083815.108 **** Enabled features **** 8952:20210908:083815.110 IPv6 support: YES 8952:20210908:083815.112 TLS support: YES 8952:20210908:083815.114 ************************** 8952:20210908:083815.116 using configuration file: C:\ProgramData\directory\Zabbix\zabbix_agentd.conf 8952:20210908:083816.308 agent #0 started [main process] 5464:20210908:083816.311 agent #1 started [collector] 236:20210908:083816.313 agent #2 started [listener #1|#1] 3564:20210908:083816.315 agent #6 started [listener #5|#5] 1244:20210908:083816.317 agent #4 started [listener #3|#3] 1732:20210908:083816.319 agent #5 started [listener #4|#4] 6080:20210908:083816.321 agent #3 started [listener #2|#2] 8140:20210908:083816.324 agent #7 started [listener #6|#6] 2144:20210908:083816.326 agent #8 started [active checks #1|#1] 2144:20210908:083816.374 Unhandled exception c0000005 detected at 0x00007FFBAEEC3AD6. Crashing ... 2144:20210908:083816.376 ====== Fatal information: ====== 2144:20210908:083816.378 Program counter: 0xaeec3ad6 2144:20210908:083816.380 === Registers: === 2144:20210908:083816.382 r8 = 1196670 = 18441840 = 18441840 2144:20210908:083816.384 r9 = 1196678 = 18441848 = 18441848 2144:20210908:083816.386 r10 = 96c98f1b1e5fe270 = 10865372922644521584 = -7581371151065030032 2144:20210908:083816.389 r11 = 0 = 0 = 0 2144:20210908:083816.391 r12 = 1e0 = 480 = 480 2144:20210908:083816.393 r13 = 0 = 0 = 0 2144:20210908:083816.395 r14 = 2 = 2 = 2 2144:20210908:083816.397 r15 = 480000 = 4718592 = 4718592 2144:20210908:083816.399 rdi = 119667 = 1152615 = 1152615 2144:20210908:083816.400 rsi = 1196670 = 18441840 = 18441840 2144:20210908:083816.402 rbp = 1196680 = 18441856 = 18441856 2144:20210908:083816.404 rbx = 480000 = 4718592 = 4718592 2144:20210908:083816.406 rdx = fa8264e0 = 4202849504 = 4202849504 2144:20210908:083816.407 rax = 0 = 0 = 0 2144:20210908:083816.409 rcx = 119667f = 18441855 = 18441855 2144:20210908:083816.411 rsp = 43bef20 = 71036704 = 71036704 2144:20210908:083816.413 efl = 10202 = 66050 = 66050 2144:20210908:083816.415 csgsfs = 332b5300 = 858477312 = 858477312 2144:20210908:083816.416 === Backtrace: === 2144:20210908:083816.599 14: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe(RtlReAllocateHeap+0x1276) [0xaeec3ad6] 2144:20210908:083816.601 13: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe(RtlReAllocateHeap+0x197) [0xaeec29f7] 2144:20210908:083816.603 12: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe(RtlReAllocateHeap+0x5a) [0xaeec28ba] 2144:20210908:083816.605 11: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe(NotifyShims+0x8bea) [0x800aadaa] 2144:20210908:083816.607 10: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x40220967] 2144:20210908:083816.609 9: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x40075b03] 2144:20210908:083816.611 8: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x4009e9bc] 2144:20210908:083816.612 7: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x4009d40c] 2144:20210908:083816.614 6: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x4009c633] 2144:20210908:083816.616 5: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x4009a348] 2144:20210908:083816.619 4: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x400993ef] 2144:20210908:083816.621 3: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x400844d7] 2144:20210908:083816.623 2: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe() [0x4021a148] 2144:20210908:083816.625 1: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe(BaseThreadInitThunk+0x10) [0xad7f4ed0] 2144:20210908:083816.628 0: C:\ProgramData\directory\Zabbix\zabbix_agentd.exe(RtlUserThreadStart+0x2b) [0xaef2e20b]
|
Comments |
Comment by Antti Koskenvoima [ 2021 Oct 04 ] |
The same issue occurs on a pure installation of Windows Server 2022, so in-place upgrade is not the cause of this issue. |
Comment by David Koski [ 2021 Oct 12 ] |
Re: "The same issue occurs on a pure installation of Windows Server 2022, so in-place upgrade is not the cause of this issue." Same here. New install of Windows Server 2022, Zabbix agent immediately crashes when service is started. Show stopper. Using agent version 4.0 LTS, tried earlier versions with no change in outcome. This appears to be listed as "trivial". Not sure why when it is the agent is unusable with Windows Server 2022. |
Comment by Vladislavs Sokurenko [ 2021 Oct 19 ] |
Could you please be so kind to increase log level and attach log as this could help to pinpoint the issue much faster, thanks ! |
Comment by Antti Hurme [ 2021 Oct 19 ] |
Below is the log file with loglevel 4, let me know if you need more information.
4684:20210930:011807.934 ================================ ] , {"key":"eventlog[application,,,ADSync,6941]","delay":10800,"lastlogsize":2087,"mtime":0}, {"key":"eventlog[system,,,,133]","delay":600,"lastlogsize":14420,"mtime":0}, {"key":"eventlog[system,,,Service Control Manager,7031]","delay":60,"lastlogsize":14423,"mtime":0}, {"key":"eventlog[system,,,disk,153]","delay":120,"lastlogsize":14420,"mtime":0}, {"key":"eventlog[system,,,Microsoft-Windows-ActiveDirectory_DomainService,2095]","delay":900,"lastlogsize":14420,"mtime":0}]}] Problem signature: Attached files: These files may be available here: Analysis symbol: Problem signature: Attached files: These files may be available here: Analysis symbol: Problem signature: Attached files: These files may be available here: Analysis symbol: Problem signature: Attached files: These files may be available here: Analysis symbol: Advanced help for this problem is available on https://support.microsoft.com. Query for "troubleshooting 1202 events". |
Comment by Vladislavs Sokurenko [ 2021 Oct 19 ] |
I am sorry but there is no crash message in the attached log |
Comment by Antti Hurme [ 2021 Oct 19 ] |
Advanced help for this problem is available on https://support.microsoft.com. Query for "troubleshooting 1202 events".
Edit: Seems loglevel 5 doesn't provide any more information. |
Comment by Vladislavs Sokurenko [ 2021 Oct 19 ] |
Thank you, error occurs when reading eventlog, somewhere inside zbx_parse_eventlog_message6() function. |
Comment by Vladislavs Sokurenko [ 2021 Oct 22 ] |
Reproduced with non administrator user, please try as a workaround not to use checks that are not allowed. 5948:20211022:063027.455 active check "eventlog[Security]" is not supported: cannot open eventlog 'Security':[0x00000005] Access is denied. 5948:20211022:063028.523 Unhandled exception c0000005 detected at 0x00007FFF60203AD6. Crashing ... 5948:20211022:063028.524 ====== Fatal information: ====== 5948:20211022:063028.525 Program counter: 0x60203ad6 5948:20211022:063028.525 === Registers: === 5948:20211022:063028.526 r8 = 22936e0 = 36255456 = 36255456 5948:20211022:063028.527 r9 = 22936e8 = 36255464 = 36255464 5948:20211022:063028.527 r10 = 3 = 3 = 3 5948:20211022:063028.528 r11 = 0 = 0 = 0 5948:20211022:063028.528 r12 = 178 = 376 = 376 5948:20211022:063028.529 r13 = 0 = 0 = 0 5948:20211022:063028.530 r14 = 2 = 2 = 2 5948:20211022:063028.531 r15 = 4b0000 = 4915200 = 4915200 5948:20211022:063028.531 rdi = 22936e = 2265966 = 2265966 5948:20211022:063028.532 rsi = 22936e0 = 36255456 = 36255456 5948:20211022:063028.533 rbp = 22936f0 = 36255472 = 36255472 5948:20211022:063028.533 rbx = 4b0000 = 4915200 = 4915200 5948:20211022:063028.534 rdx = fa249a0 = 262293920 = 262293920 5948:20211022:063028.535 rax = 0 = 0 = 0 5948:20211022:063028.535 rcx = 22936ef = 36255471 = 36255471 5948:20211022:063028.539 rsp = 391f1b0 = 59896240 = 59896240 5948:20211022:063028.540 efl = 10206 = 66054 = 66054 5948:20211022:063028.540 csgsfs = 332b5300 = 858477312 = 858477312 5948:20211022:063028.541 === Backtrace: === 5948:20211022:063028.660 13: C:\Users\vso\Downloads\bin\zabbix_agentd.exe(RtlReAllocateHeap+0x1276) [0x60203ad6] 5948:20211022:063028.661 12: C:\Users\vso\Downloads\bin\zabbix_agentd.exe(RtlReAllocateHeap+0x197) [0x602029f7] 5948:20211022:063028.661 11: C:\Users\vso\Downloads\bin\zabbix_agentd.exe(RtlReAllocateHeap+0x5a) [0x602028ba] 5948:20211022:063028.662 10: C:\Users\vso\Downloads\bin\zabbix_agentd.exe() [0x4021f847] 5948:20211022:063028.663 9: C:\Users\vso\Downloads\bin\zabbix_agentd.exe() [0x40075b03] 5948:20211022:063028.663 8: C:\Users\vso\Downloads\bin\zabbix_agentd.exe() [0x4009e8fc] 5948:20211022:063028.664 7: C:\Users\vso\Downloads\bin\zabbix_agentd.exe() [0x4009d34c] 5948:20211022:063028.664 6: C:\Users\vso\Downloads\bin\zabbix_agentd.exe() [0x4009c573] 5948:20211022:063028.665 5: C:\Users\vso\Downloads\bin\zabbix_agentd.exe() [0x4009a2a8] 5948:20211022:063028.666 4: C:\Users\vso\Downloads\bin\zabbix_agentd.exe() [0x4009934f] 5948:20211022:063028.666 3: C:\Users\vso\Downloads\bin\zabbix_agentd.exe() [0x40084487] 5948:20211022:063028.667 2: C:\Users\vso\Downloads\bin\zabbix_agentd.exe() [0x40219028] 5948:20211022:063028.667 1: C:\Users\vso\Downloads\bin\zabbix_agentd.exe(BaseThreadInitThunk+0x10) [0x5fda4ed0] 5948:20211022:063028.668 0: C:\Users\vso\Downloads\bin\zabbix_agentd.exe(RtlUserThreadStart+0x2b) [0x6026e20b] 5948:20211022:063028.675 ================================ C:\Users\vso\Downloads\bin> |
Comment by Vladislavs Sokurenko [ 2021 Oct 26 ] |
Fixed in pull request feature/ZBX-19926-4.0 |
Comment by Vladislavs Sokurenko [ 2021 Oct 26 ] |
It is unclear why it crashes on Windows server 2022 and not on any other Windows version, however it seems that documentation cannot be trusted in that exact case so slightly changed code to be exactly the same as example in Windows documentation to avoid the issue. |
Comment by Vladislavs Sokurenko [ 2021 Nov 03 ] |
Fixed in:
|
Comment by David Koski [ 2021 Dec 06 ] |
I don't have a development environment for Windows Server 22 and no update is available from the Zabbix Agent download page. What does it take to get an MSI installer and how does that happen? [EDIT]: Version 4.0 LTS |
Comment by Jerome Bose [ 2022 Nov 09 ] |
In Windows Server 2019 with Zabbix Agent 6.2.x (6.2.3 and 6.2.4) it came back. ----------------- 2304:20221031:155029.440 Zabbix Agent stopped. Zabbix 6.2.3 (revision 98ee88fc19d). 5276:20221031:155034.336 Starting Zabbix Agent [REMOVED]. Zabbix 6.2.3 (revision 98ee88fc19d). 5276:20221031:155034.337 **** Enabled features **** 5276:20221031:155034.337 IPv6 support: YES 5276:20221031:155034.338 TLS support: YES 5276:20221031:155034.339 ************************** 5276:20221031:155034.339 using configuration file: c:\Program Files\Zabbix\zabbix_agentd.conf 5276:20221031:155035.386 agent #0 started [main process] 4500:20221031:155035.387 agent #1 started [collector] 156:20221031:155035.390 agent #2 started [listener #1] 5860:20221031:155035.391 agent #3 started [listener #2] 4128:20221031:155035.391 agent #4 started [listener #3] 4256:20221031:155035.392 agent #5 started [active checks #1] 4256:20221031:160035.213 no active checks on server [*REMOVED*.cloud:10051]: host [*REMOVED*] not monitored 5860:20221031:160309.289 Unhandled exception c0000005 detected at 0x0000000140094CC7. Crashing ... 5860:20221031:160309.290 ====== Fatal information: ====== 5860:20221031:160309.291 Program counter: 0x40094cc7 5860:20221031:160309.292 === Registers: === 5860:20221031:160309.292 r8 = 0 = 0 = 0 5860:20221031:160309.293 r9 = 1 = 1 = 1 5860:20221031:160309.294 r10 = 0 = 0 = 0 5860:20221031:160309.295 r11 = 246 = 582 = 582 5860:20221031:160309.295 r12 = 1000 = 4096 = 4096 5860:20221031:160309.296 r13 = 0 = 0 = 0 5860:20221031:160309.297 r14 = 0 = 0 = 0 5860:20221031:160309.297 r15 = 4fc = 1276 = 1276 5860:20221031:160309.298 rdi = 0 = 0 = 0 5860:20221031:160309.299 rsi = 29cec30 = 43838512 = 43838512 5860:20221031:160309.300 rbp = 1 = 1 = 1 5860:20221031:160309.300 rbx = 690 = 1680 = 1680 5860:20221031:160309.301 rdx = 29ce0f0 = 43835632 = 43835632 5860:20221031:160309.302 rax = 1ddb0fd55c5 = 2051668792773 = 2051668792773 5860:20221031:160309.303 rcx = 690 = 1680 = 1680 5860:20221031:160309.303 rsp = 29cd9f0 = 43833840 = 43833840 5860:20221031:160309.304 efl = 10246 = 66118 = 66118 5860:20221031:160309.304 csgsfs = 332b5300 = 858477312 = 858477312 5860:20221031:160309.304 === Backtrace: === 5860:20221031:160309.345 8: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x40094cc7] 5860:20221031:160309.346 7: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x40094be8] 5860:20221031:160309.347 6: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x4009a663] 5860:20221031:160309.347 5: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x400a478f] 5860:20221031:160309.348 4: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x400a4632] 5860:20221031:160309.348 3: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x40085627] 5860:20221031:160309.349 2: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x4021ffc0] 5860:20221031:160309.349 1: C:\Program Files\Zabbix\zabbix_agentd.exe(BaseThreadInitThunk+0x14) [0x47ad7974] 5860:20221031:160309.350 0: C:\Program Files\Zabbix\zabbix_agentd.exe(RtlUserThreadStart+0x21) [0x480aa2f1] 5276:20221109:102635.079 Starting Zabbix Agent [*REMOVED*]. Zabbix 6.2.4 (revision 885eaefa6f7). 5276:20221109:102635.080 **** Enabled features **** 5276:20221109:102635.081 IPv6 support: YES 5276:20221109:102635.081 TLS support: YES 5276:20221109:102635.082 ************************** 5276:20221109:102635.083 using configuration file: c:\Program Files\Zabbix\zabbix_agentd.conf 5276:20221109:102636.212 agent #0 started [main process] 3400:20221109:102636.213 agent #1 started [collector] 2504:20221109:102636.213 agent #2 started [listener #1] 1760:20221109:102636.214 agent #3 started [listener #2] 5596:20221109:102636.215 agent #4 started [listener #3] 2260:20221109:102636.215 agent #5 started [active checks #1] 2504:20221109:102709.434 Unhandled exception c0000005 detected at 0x0000000140094CC7. Crashing ... 2504:20221109:102709.435 ====== Fatal information: ====== 2504:20221109:102709.436 Program counter: 0x40094cc7 2504:20221109:102709.436 === Registers: === 2504:20221109:102709.437 r8 = 0 = 0 = 0 2504:20221109:102709.438 r9 = 1 = 1 = 1 2504:20221109:102709.438 r10 = 0 = 0 = 0 2504:20221109:102709.439 r11 = 246 = 582 = 582 2504:20221109:102709.439 r12 = 1000 = 4096 = 4096 2504:20221109:102709.440 r13 = 0 = 0 = 0 2504:20221109:102709.440 r14 = 0 = 0 = 0 2504:20221109:102709.441 r15 = 648 = 1608 = 1608 2504:20221109:102709.441 rdi = 0 = 0 = 0 2504:20221109:102709.442 rsi = 2b8ec30 = 45673520 = 45673520 2504:20221109:102709.442 rbp = 1 = 1 = 1 2504:20221109:102709.443 rbx = 664 = 1636 = 1636 2504:20221109:102709.443 rdx = 2b8e0f0 = 45670640 = 45670640 2504:20221109:102709.444 rax = 69af11ad3f6c = 116200636759916 = 116200636759916 2504:20221109:102709.444 rcx = 664 = 1636 = 1636 2504:20221109:102709.445 rsp = 2b8d9f0 = 45668848 = 45668848 2504:20221109:102709.445 efl = 10246 = 66118 = 66118 2504:20221109:102709.446 csgsfs = 332b5300 = 858477312 = 858477312 2504:20221109:102709.446 === Backtrace: === 2504:20221109:102709.511 8: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x40094cc7] 2504:20221109:102709.511 7: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x40094be8] 2504:20221109:102709.512 6: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x4009a643] 2504:20221109:102709.513 5: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x400a47af] 2504:20221109:102709.514 4: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x400a4652] 2504:20221109:102709.514 3: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x40085627] 2504:20221109:102709.515 2: C:\Program Files\Zabbix\zabbix_agentd.exe() [0x4021ffe0] 2504:20221109:102709.515 1: C:\Program Files\Zabbix\zabbix_agentd.exe(BaseThreadInitThunk+0x14) [0x6bc7974] 2504:20221109:102709.516 0: C:\Program Files\Zabbix\zabbix_agentd.exe(RtlUserThreadStart+0x21) [0x752a371] |
Comment by Jerome Bose [ 2022 Nov 09 ] |
With Agent in Version: Zabbix 6.0.10 (LTS) all working fine. |
Comment by Robert Čížek [ 2023 Jul 21 ] |
I can confirm this also affects Windows 10 EDU 22H2 BUILD 19045.2604.
676:20230720:195847.256 Starting Zabbix Agent [REDACTED]. Zabbix 6.4.4 (revision a749236b3d9). 676:20230720:195847.261 **** Enabled features **** 676:20230720:195847.265 IPv6 support: YES 676:20230720:195847.266 TLS support: YES 676:20230720:195847.268 ************************** 676:20230720:195847.270 using configuration file: C:\Program Files\Zabbix Agent\zabbix_agentd.conf 676:20230720:195848.419 agent #0 started [main process] 6964:20230720:195848.430 agent #1 started [collector] 10576:20230720:195848.430 agent #2 started [listener #1] 10972:20230720:195848.431 agent #3 started [listener #2] 9484:20230720:195848.464 agent #4 started [listener #3] 10288:20230720:195848.465 agent #5 started [active checks #1] ... SOME 20 Other lines of info about network connection refusal from other zabbix servers (intended) ... 9484:20230721:024534.130 Unhandled exception c0000005 detected at 0x0000000140106E83. Crashing ... 9484:20230721:024534.131 ====== Fatal information: ====== 9484:20230721:024534.132 Program counter: 0x40106e83 9484:20230721:024534.132 === Registers: === 9484:20230721:024534.133 r8 = 1a3de0 = 1719776 = 1719776 9484:20230721:024534.134 r9 = 1 = 1 = 1 9484:20230721:024534.134 r10 = 8000 = 32768 = 32768 9484:20230721:024534.149 r11 = 2e8ea40 = 48818752 = 48818752 9484:20230721:024534.158 r12 = 0 = 0 = 0 9484:20230721:024534.160 r13 = 0 = 0 = 0 9484:20230721:024534.161 r14 = d9ecd8 = 14281944 = 14281944 9484:20230721:024534.162 r15 = 14 = 20 = 20 9484:20230721:024534.163 rdi = 2e8ecc0 = 48819392 = 48819392 9484:20230721:024534.164 rsi = f0fca0 = 15793312 = 15793312 9484:20230721:024534.164 rbp = 0 = 0 = 0 9484:20230721:024534.165 rbx = f299b0 = 15899056 = 15899056 9484:20230721:024534.167 rdx = 140198480 = 5370381440 = 5370381440 9484:20230721:024534.167 rax = 20 = 32 = 32 9484:20230721:024534.168 rcx = 1a70 = 6768 = 6768 9484:20230721:024534.170 rsp = 2e8ea80 = 48818816 = 48818816 9484:20230721:024534.170 efl = 10202 = 66050 = 66050 9484:20230721:024534.171 csgsfs = 332b5300 = 858477312 = 858477312 9484:20230721:024534.172 === Backtrace: === 9484:20230721:024534.320 14: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x40106e83] 9484:20230721:024534.321 13: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x4019849b] 9484:20230721:024534.324 12: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x40109a24] 9484:20230721:024534.325 11: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x400f7502] 9484:20230721:024534.326 10: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x4011fe29] 9484:20230721:024534.327 9: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x4011fdca] 9484:20230721:024534.328 8: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x401f36c0] 9484:20230721:024534.329 7: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x401d0e73] 9484:20230721:024534.331 6: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x400b320b] 9484:20230721:024534.332 5: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x4007d97e] 9484:20230721:024534.333 4: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x400a63f6] 9484:20230721:024534.334 3: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x400865f7] 9484:20230721:024534.335 2: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x40221d50] 9484:20230721:024534.335 1: C:\Windows\System32\KERNEL32.DLL(BaseThreadInitThunk+0x14) [0x9ce17614] 9484:20230721:024534.336 0: C:\Windows\SYSTEM32\ntdll.dll(RtlUserThreadStart+0x21) [0x9de826a1] 9484:20230721:024534.367 ================================ I laso noticed, that it does not crash right after the service starts, but some time later.
|
Comment by Zakria Nabi [ 2023 Jul 24 ] |
Experiencing the same issue on Windows Server 2022. Here is the log of the crash: 10172:20230721:194918.445 Unhandled exception c0000005 detected at 0x00007FFD8620D160. Crashing ... 10172:20230721:194918.461 ====== Fatal information: ====== 10172:20230721:194918.474 Program counter: 0x8620d160 10172:20230721:194918.488 === Registers: === 10172:20230721:194918.502 r8 = f = 15 = 15 10172:20230721:194918.516 r9 = 519530 = 5346608 = 5346608 10172:20230721:194918.530 r10 = 50 = 80 = 80 10172:20230721:194918.543 r11 = 5f = 95 = 95 10172:20230721:194918.555 r12 = 4b6450 = 4940880 = 4940880 10172:20230721:194918.567 r13 = 1149480 = 18125952 = 18125952 10172:20230721:194918.582 r14 = 218 = 536 = 536 10172:20230721:194918.594 r15 = 0 = 0 = 0 10172:20230721:194918.606 rdi = 2440 = 9280 = 9280 10172:20230721:194918.620 rsi = 519530 = 5346608 = 5346608 10172:20230721:194918.635 rbp = 2a2e8d0 = 44230864 = 44230864 10172:20230721:194918.649 rbx = 0 = 0 = 0 10172:20230721:194918.661 rdx = 1 = 1 = 1 10172:20230721:194918.672 rax = 1 = 1 = 1 10172:20230721:194918.686 rcx = fffffff1 = 4294967281 = 4294967281 10172:20230721:194918.700 rsp = 2a2e7d0 = 44230608 = 44230608 10172:20230721:194918.715 efl = 10202 = 66050 = 66050 10172:20230721:194918.728 csgsfs = 332b5300 = 858477312 = 858477312 10172:20230721:194918.743 === Backtrace: === 10172:20230721:194918.922 18: C:\Windows\System32\ADVAPI32.dll(SaferIdentifyLevel+0x1290) [0x8620d160] 10172:20230721:194918.934 17: C:\Windows\System32\ADVAPI32.dll(SaferIdentifyLevel+0x1078) [0x8620cf48] 10172:20230721:194918.946 16: C:\Windows\System32\ADVAPI32.dll(SaferIdentifyLevel+0x403d) [0x8620ff0d] 10172:20230721:194918.958 15: C:\Windows\System32\ADVAPI32.dll(SaferIdentifyLevel+0x380e) [0x8620f6de] 10172:20230721:194918.970 14: C:\Windows\System32\ADVAPI32.dll(PerfRegQueryValue+0x31) [0x862102a1] 10172:20230721:194918.981 13: C:\Windows\System32\KERNELBASE.dll(UnsubscribeFeatureUsageFlush+0xc06) [0x85de0f76] 10172:20230721:194918.993 12: C:\Windows\System32\KERNELBASE.dll(RegQueryValueExW+0x108) [0x85d67df8] 10172:20230721:194919.006 11: C:\Windows\SYSTEM32\pdh.dll(PdhCloseQuery+0x628) [0x80bd8ae8] 10172:20230721:194919.018 10: C:\Windows\SYSTEM32\pdh.dll(PdhGetCounterTimeBase+0x63d) [0x80bda37d] 10172:20230721:194919.030 9: C:\Windows\SYSTEM32\pdh.dll(PdhCollectQueryData+0x31a0) [0x80bd8450] 10172:20230721:194919.041 8: C:\Windows\SYSTEM32\pdh.dll(PdhGetCounterTimeBase+0x3a75) [0x80bdd7b5] 10172:20230721:194919.053 7: C:\Windows\SYSTEM32\pdh.dll(PdhCollectQueryData+0xbf) [0x80bd536f] 10172:20230721:194919.065 6: C:\Windows\SYSTEM32\pdh.dll(PdhCollectQueryData+0x4b) [0x80bd52fb] 10172:20230721:194919.077 5: C:\Zabbix\zabbix_agentd.exe() [0x400abdf9] 10172:20230721:194919.088 4: C:\Zabbix\zabbix_agentd.exe() [0x400ad337] 10172:20230721:194919.100 3: C:\Zabbix\zabbix_agentd.exe() [0x400865f7] 10172:20230721:194919.112 2: C:\Zabbix\zabbix_agentd.exe() [0x40221d50] 10172:20230721:194919.124 1: C:\Windows\System32\KERNEL32.DLL(BaseThreadInitThunk+0x14) [0x86487ac4] 10172:20230721:194919.136 0: C:\Windows\SYSTEM32\ntdll.dll(RtlUserThreadStart+0x21) [0x88fea351] 10172:20230721:194919.150 =============================== What's strange is that not all the Windows Servers in my environment have the issue. Only a select few. The other ones work flawlessly with no crashes. And as Robert stated above, the crash occurs sometime later and not right away. |
Comment by Michael Veksler [ 2023 Jul 26 ] |
Hi zak2273, Be so kind to make a test with the zabbix_agentd.exe build from comment If will no crash several days - give information |
Comment by Zakria Nabi [ 2023 Jul 26 ] |
Hi @Michael Veksler, I am testing one of the servers with frequent crashing using this new build. |
Comment by Robert Čížek [ 2023 Jul 27 ] |
Hello @MVekslers, I tried the new build and it crashed at least four times on the testing machine (same as I mentioned before). I also tried that on Windows Server 2019 (17763.3165) with similar amount of crashes. I Think I might try Zabbix Agent 2 to run on some more machines to check the stability. |
Comment by Zakria Nabi [ 2023 Jul 27 ] |
My test server also crashed as well. I attached the log file. I've been digging through the Zabbix code and suspect this error may be somehow related to the zbx_execute_agent_check() function that is called within process_listener. Perhaps the result variable or the in_command variable are accessing some invalid memory location. I haven't been able to determine why though. Maybe this will help lead in the right direction. |
Comment by Michael Veksler [ 2023 Jul 27 ] |
Hi zak2273, Please confirm the agent has crashed (stopped) |
Comment by Michael Veksler [ 2023 Jul 27 ] |
Hi laneo Can you upload log with LogLevel=5 |
Comment by Zakria Nabi [ 2023 Jul 27 ] |
Hi @Michael Veksler, Agent does indeed crash. See at line 14794: 13092:20230727:014329.012 Unhandled exception c0000005 detected at 0x00007FFCE3AEA6F2. Crashing ... After producing the back trace, few more entries are recorded and then the Agent stops completely. It is confirmed since when I went into Services, the Agent was not running. |
Comment by Robert Čížek [ 2023 Jul 28 ] |
Hi, I attached the logfile with DebugLevel=5. Crash is at line 22701. I have the service configured to start automatically again after crashing, but I can confirm that the process does indeed exit. |
Comment by Michael Veksler [ 2023 Aug 02 ] |
Hi laneo, Be so kind to make the test with DebugLevel=4 The reason has to do with our new VEH handler. Level 4 will switch off this functionality. I suspect that we caught "normal" cpp exception from win api and stopped the agent "without the reason". |
Comment by Robert Čížek [ 2023 Aug 09 ] |
Hello @Michael Veksler, I attached the log with DebugLevel 4. The crash is on line 55507 and subsequent automatic restart of the service is at 55904. Sorry for the delay, I was on vacation. |
Comment by Michael Veksler [ 2023 Aug 11 ] |
Hi laneo, Thank you very much for the logs, I think the problem has been found and the solution has been moved to |