[ZBX-21897] Zabbix Agent Crashes on Windows Server with Unhandled exception c0000005 detected at 0x0 Created: 2022 Nov 09  Updated: 2023 May 31  Resolved: 2023 May 31

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 6.2.3, 6.2.4, 6.4.1, 6.4.2
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Jerome Bose Assignee: Konstantins Prutkovs (Inactive)
Resolution: Duplicate Votes: 5
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File WORKING_6.0.10_zabbix_agentd.log     File zabbix_agentd.log.old    
Issue Links:
Duplicate
is duplicated by ZBX-22775 Unhandled exception c0000005 detected... Reopened
Sub-task
depends on ZBX-22494 Agent 6.4.0 logs many exceptions on W... Closed

 Description   

Steps to reproduce:

  1. Install agent as service on Windows Server 2019 or sim.
  2. wait few moments until the "wmiApSrv" will be openend to query data

Result:

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]


 Comments   
Comment by Jerome Bose [ 2022 Nov 09 ]

Issue is the same like here: ZBX-19926

Comment by Jerome Bose [ 2022 Nov 09 ]

Btw, with Zabbix-Agent version 6.0.10 (revision e35d7dceead) all working fine.

Comment by Jerome Bose [ 2022 Nov 09 ]

Zabbix agent is running as local "system" credentials. Which is the default if installed as windows service.

Comment by Sergey Usov [ 2023 Apr 18 ]

Windows server 2019 17763.4010

zabbix_agentd Win64 (service) (Zabbix) 6.4.1
Revision 546e284fd7c 3 April 2023, compilation time: Apr  3 2023 11:48:33

 

31524:20230418:120929.566 Unhandled exception 6ba detected at 0x00007FFE53A749B9. Crashing ...
 31524:20230418:120929.566 ====== Fatal information: ======
 31524:20230418:120929.567 Program counter: 0x53a749b9
 31524:20230418:120929.567 === Registers: ===
 31524:20230418:120929.568 r8      =     7ffe00000000 =      140728898420736 =      140728898420736
 31524:20230418:120929.568 r9      =          43701a8 =             70713768 =             70713768
 31524:20230418:120929.568 r10     =                0 =                    0 =                    0
 31524:20230418:120929.568 r11     =          651b498 =            106017944 =            106017944
 31524:20230418:120929.569 r12     =          651bd40 =            106020160 =            106020160
 31524:20230418:120929.569 r13     =                0 =                    0 =                    0
 31524:20230418:120929.570 r14     =                0 =                    0 =                    0
 31524:20230418:120929.570 r15     =              6ba =                 1722 =                 1722
 31524:20230418:120929.570 rdi     =     7ffe3ef0b018 =      140729954381848 =      140729954381848
 31524:20230418:120929.570 rsi     =          5315090 =             87117968 =             87117968
 31524:20230418:120929.571 rbp     =                5 =                    5 =                    5
 31524:20230418:120929.571 rbx     =              6ba =                 1722 =                 1722
 31524:20230418:120929.571 rdx     =          15cf770 =             22869872 =             22869872
 31524:20230418:120929.572 rax     =     7ffe56c8c1a8 =      140730354418088 =      140730354418088
 31524:20230418:120929.572 rcx     =          651b498 =            106017944 =            106017944
 31524:20230418:120929.572 rsp     =          651b900 =            106019072 =            106019072
 31524:20230418:120929.573 efl     =              206 =                  518 =                  518
 31524:20230418:120929.573 csgsfs  =         332b5300 =            858477312 =            858477312
 31524:20230418:120929.573 === Backtrace: ===
 31524:20230418:120929.673 26: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(RaiseException+0x69) [0x53a749b9]
 31524:20230418:120929.673 25: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(RpcRaiseException+0x50) [0x54f00fd0]
 31524:20230418:120929.674 24: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(RpcRaiseException+0x14) [0x54f00f94]
 31524:20230418:120929.674 23: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(NdrClientCall3+0x1a7d) [0x54f873dd]
 31524:20230418:120929.674 22: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(NdrClientCall3+0xf1) [0x54f85a51]
 31524:20230418:120929.675 21: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(I_BrowserQueryStatistics+0x3c) [0x3ef0275c]
 31524:20230418:120929.675 20: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(CloseNetSvcsObject+0x12cd) [0x31ac253d]
 31524:20230418:120929.676 19: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(CollectNetSvcsObjectData+0x112) [0x31ac1212]
 31524:20230418:120929.676 18: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(InitiateShutdownW+0x7ce) [0x54ce8eae]
 31524:20230418:120929.676 17: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(InitiateShutdownW+0x551) [0x54ce8c31]
 31524:20230418:120929.677 16: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(SaferIdentifyLevel+0x397c) [0x54cdf84c]
 31524:20230418:120929.677 15: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(PerfRegQueryValue+0x31) [0x54ce02a1]
 31524:20230418:120929.677 14: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(UnsubscribeFeatureUsageFlush+0xdb2) [0x53ad11c2]
 31524:20230418:120929.677 13: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(RegQueryValueExW+0x108) [0x53a57df8]
 31524:20230418:120929.678 12: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(PdhCollectQueryData+0x16c9) [0x4ee46979]
 31524:20230418:120929.678 11: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(PdhAddCounterW+0x884) [0x4ee43db4]
 31524:20230418:120929.678 10: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(PdhVerifySQLDBW+0xecdf) [0x4ee736af]
 31524:20230418:120929.679 9: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(PdhEnumObjectsHW+0x173) [0x4ee769d3]
 31524:20230418:120929.679 8: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(PdhEnumObjectsW+0x16a) [0x4ee76b9a]
 31524:20230418:120929.679 7: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x400ac965]
 31524:20230418:120929.680 6: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x400928eb]
 31524:20230418:120929.680 5: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x4009a953]
 31524:20230418:120929.680 4: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x400a629d]
 31524:20230418:120929.681 3: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x400a614c]
 31524:20230418:120929.681 2: C:\Program Files\Zabbix Agent\zabbix_agentd.exe() [0x40221644]
 31524:20230418:120929.681 1: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(BaseThreadInitThunk+0x14) [0x543d7ad4]
 31524:20230418:120929.681 0: C:\Program Files\Zabbix Agent\zabbix_agentd.exe(RtlUserThreadStart+0x21) [0x56c8a371]
 31524:20230418:120929.682 ================================
Comment by Christoph Schmocker [ 2023 Apr 25 ]

The same here:

zabbix_agentd Win64 V6.4.1 run as local system (the same with V6.4.0)

On Windows Server 2019 Version 1809 Build 17763.4131

  7504:20230425:112202.942 Unhandled exception c0000005 detected at 0x00007FFF104C7F35. Crashing ...
  7504:20230425:112202.944 ====== Fatal information: ======
  7504:20230425:112202.946 Program counter: 0x104c7f35
  7504:20230425:112202.948 === Registers: ===
  7504:20230425:112202.949 r8      =          12c94e0 =             19698912 =             19698912
  7504:20230425:112202.951 r9      =          2ae18a0 =             44964000 =             44964000
  7504:20230425:112202.953 r10     =                0 =                    0 =                    0
  7504:20230425:112202.955 r11     =              246 =                  582 =                  582
  7504:20230425:112202.957 r12     =           520f10 =              5377808 =              5377808
  7504:20230425:112202.959 r13     = fffffffffffffffe = 18446744073709551614 =                   -2
  7504:20230425:112202.960 r14     =                0 =                    0 =                    0
  7504:20230425:112202.962 r15     =          12c94e0 =             19698912 =             19698912
  7504:20230425:112202.964 rdi     =          12c94d0 =             19698896 =             19698896
  7504:20230425:112202.966 rsi     =             5660 =                22112 =                22112
  7504:20230425:112202.968 rbp     =           470000 =              4653056 =              4653056
  7504:20230425:112202.970 rbx     =           520f00 =              5377792 =              5377792
  7504:20230425:112202.971 rdx     =         3f7246b2 =           1064453810 =           1064453810
  7504:20230425:112202.973 rax     =          12c7fe0 =             19693536 =             19693536
  7504:20230425:112202.975 rcx     =             14f0 =                 5360 =                 5360
  7504:20230425:112202.977 rsp     =          2af1780 =             45029248 =             45029248
  7504:20230425:112202.980 efl     =            10206 =                66054 =                66054
  7504:20230425:112202.982 csgsfs  =         332b5300 =            858477312 =            858477312
  7504:20230425:112202.984 === Backtrace: ===
  7504:20230425:112202.986 2: C:\Program Files\Zabbix Agent\zabbix_agentd.exe [0x104c7f35]
  7504:20230425:112202.989 1: C:\Program Files\Zabbix Agent\zabbix_agentd.exe [0x2af3240]
  7504:20230425:112202.991 0: C:\Program Files\Zabbix Agent\zabbix_agentd.exe [0x0]
  7504:20230425:112202.993 ================================ 
Comment by Konstantins Prutkovs (Inactive) [ 2023 May 10 ]

This issue depends on ZBX-22494.

Comment by Jerome Bose [ 2023 May 10 ]

@ Zabbix Development Team - Please tag the affects versions. Pleas add 6.4.0 and so on.

Please verify that the fix is in the master to avoid upcoming same issues in new releases. It seems to me in some later releases of the 6.2.x it was fixed but this case was not marked as solved.

Please update the case.

Comment by Konstantins Prutkovs (Inactive) [ 2023 May 10 ]

Backstage, rahs, jerome.bose, do you run 64-bit or a 32-bit Zabbix agent? Does agent really crash or continue working and just pollutes log with errors?

Comment by Christoph Schmocker [ 2023 May 10 ]

We run the 64-bit version and the agent crashed and stop working.

Comment by Jerome Bose [ 2023 May 10 ]

Also 64bit here.

Same situation like Christoph Schmocker.

The Microsoft Server 2019 and higher is 64bit compiled. I guess Microsoft does not release 32bit OS anymore.

Comment by Jerome Bose [ 2023 May 11 ]

lgrigorjeva or kprutkovs can you please tag this issuewith the affected versions? 6.4.0 etc.?

Comment by Konstantins Prutkovs (Inactive) [ 2023 May 16 ]

jerome.bose, Backstage. Was not able to reproduce the issue on the Windows Server 2019 with 64-bit Zabbix agent.
There was related bug ZBX-22494 (coming in next 6.4 releases). Also, if you were accidentally running 32-bit Zabbix agent on a 64-bit Windows, that bug-fix should address your problems and prevent crashes.

Alternatively you can try sending me full log files so I can look through them in mode detail.

 

If you will continue experiencing this issue after next 6.4 release, please tell me.

Comment by Christoph Schmocker [ 2023 May 16 ]

@kprutkovs I'll check the next agent release, thank you. A further hint: the zabbix agent is the 64bit version and with OpenSSL encryption. Encryption is enabled with PSK. Installed by MSI paket.

Comment by Jerome Bose [ 2023 May 16 ]

I will check asap, too. If I have additional information I let you know.

Comment by Jerome Bose [ 2023 May 16 ]

Windows Server 2019 - Version 1809

> Zabbix vesion: 6.4.2

> Here the full report for 64-bit Zabbix Agent: (on 64bit Server 20219)

Hardware: AMD64
Encription: OpenSSL
Paket: Archive 
  1212:20230516:155650.955 Zabbix Agent received stop request.
  1212:20230516:155651.951 Zabbix Agent stopped. Zabbix 6.4.2 (revision 83c2f617387).
  5724:20230516:155652.281 Starting Zabbix Agent [VS39362EA]. Zabbix 6.4.2 (revision 83c2f617387).
  5724:20230516:155652.281 **** Enabled features ****
  5724:20230516:155652.282 IPv6 support:          YES
  5724:20230516:155652.282 TLS support:           YES
  5724:20230516:155652.283 **************************
  5724:20230516:155652.283 using configuration file: C:\Program Files\Zabbix\zabbix_agentd.conf
  5724:20230516:155652.550 Unhandled exception 6d9 detected at 0x00007FFBD39649B9. Crashing ...
  5724:20230516:155652.550 ====== Fatal information: ======
  5724:20230516:155652.551 Program counter: 0xd39649b9
  5724:20230516:155652.551 === Registers: ===
  5724:20230516:155652.552 r8      =           5a0000 =              5898240 =              5898240
  5724:20230516:155652.552 r9      =             1335 =                 4917 =                 4917
  5724:20230516:155652.553 r10     =             1200 =                 4608 =                 4608
  5724:20230516:155652.553 r11     =        c000003ff =          51539608575 =          51539608575
  5724:20230516:155652.554 r12     =           f3d710 =             15980304 =             15980304
  5724:20230516:155652.554 r13     =                0 =                    0 =                    0
  5724:20230516:155652.554 r14     =                0 =                    0 =                    0
  5724:20230516:155652.555 r15     =              6d9 =                 1753 =                 1753
  5724:20230516:155652.555 rdi     =     7ffbcb10f2f8 =      140719420404472 =      140719420404472
  5724:20230516:155652.556 rsi     =           fa1a50 =             16390736 =             16390736
  5724:20230516:155652.556 rbp     =                0 =                    0 =                    0
  5724:20230516:155652.556 rbx     =              6d9 =                 1753 =                 1753
  5724:20230516:155652.557 rdx     =                1 =                    1 =                    1
  5724:20230516:155652.557 rax     =          1122890 =             17967248 =             17967248
  5724:20230516:155652.558 rcx     =                0 =                    0 =                    0
  5724:20230516:155652.558 rsp     =           f3d2d0 =             15979216 =             15979216
  5724:20230516:155652.558 efl     =              206 =                  518 =                  518
  5724:20230516:155652.559 csgsfs  =         332b5300 =            858477312 =            858477312
  5724:20230516:155652.559 === Backtrace: ===
  5724:20230516:155652.616 24: C:\Program Files\zabbix\zabbix_agentd.exe(RaiseException+0x69) [0xd39649b9]
  5724:20230516:155652.617 23: C:\Program Files\zabbix\zabbix_agentd.exe(RpcRaiseException+0x50) [0xd6c09f40]
  5724:20230516:155652.618 22: C:\Program Files\zabbix\zabbix_agentd.exe(RpcRaiseException+0x14) [0xd6c09f04]
  5724:20230516:155652.618 21: C:\Program Files\zabbix\zabbix_agentd.exe(NdrClientCall3+0x1a7d) [0xd6c783dd]
  5724:20230516:155652.619 20: C:\Program Files\zabbix\zabbix_agentd.exe(NdrClientCall3+0xf1) [0xd6c76a51]
  5724:20230516:155652.619 19: C:\Program Files\zabbix\zabbix_agentd.exe(EnumPrintersW+0xca) [0xcb0c4cca]
  5724:20230516:155652.619 18: C:\Program Files\zabbix\zabbix_agentd.exe(PerfOpen+0x282) [0xcb102cc2]
  5724:20230516:155652.620 17: C:\Program Files\zabbix\zabbix_agentd.exe(PerfCollect+0x103) [0xcb102a03]
  5724:20230516:155652.620 16: C:\Program Files\zabbix\zabbix_agentd.exe(InitiateShutdownW+0x7ce) [0xd65d8eae]
  5724:20230516:155652.621 15: C:\Program Files\zabbix\zabbix_agentd.exe(InitiateShutdownW+0x551) [0xd65d8c31]
  5724:20230516:155652.621 14: C:\Program Files\zabbix\zabbix_agentd.exe(SaferIdentifyLevel+0x397c) [0xd65cf84c]
  5724:20230516:155652.622 13: C:\Program Files\zabbix\zabbix_agentd.exe(PerfRegQueryValue+0x31) [0xd65d02a1]
  5724:20230516:155652.622 12: C:\Program Files\zabbix\zabbix_agentd.exe(UnsubscribeFeatureUsageFlush+0xc06) [0xd39c0f76]
  5724:20230516:155652.623 11: C:\Program Files\zabbix\zabbix_agentd.exe(RegQueryValueExW+0x108) [0xd3947df8]
  5724:20230516:155652.623 10: C:\Program Files\zabbix\zabbix_agentd.exe(PdhCollectQueryData+0x16c9) [0xcea46979]
  5724:20230516:155652.624 9: C:\Program Files\zabbix\zabbix_agentd.exe(PdhAddCounterW+0x884) [0xcea43db4]
  5724:20230516:155652.624 8: C:\Program Files\zabbix\zabbix_agentd.exe(PdhVerifySQLDBW+0xecdf) [0xcea736af]
  5724:20230516:155652.624 7: C:\Program Files\zabbix\zabbix_agentd.exe(PdhEnumObjectsHW+0x173) [0xcea769d3]
  5724:20230516:155652.625 6: C:\Program Files\zabbix\zabbix_agentd.exe(PdhEnumObjectsW+0x16a) [0xcea76b9a]
  5724:20230516:155652.625 5: C:\Program Files\zabbix\zabbix_agentd.exe() [0x400acbd5]
  5724:20230516:155652.626 4: C:\Program Files\zabbix\zabbix_agentd.exe() [0x400ac8ff]
  5724:20230516:155652.626 3: C:\Program Files\zabbix\zabbix_agentd.exe() [0x400ad439]
  5724:20230516:155652.627 2: C:\Program Files\zabbix\zabbix_agentd.exe(StartServiceW+0x82) [0xd6b09d42]
  5724:20230516:155652.627 1: C:\Program Files\zabbix\zabbix_agentd.exe(BaseThreadInitThunk+0x14) [0xd4767ab4]
  5724:20230516:155652.627 0: C:\Program Files\zabbix\zabbix_agentd.exe(RtlUserThreadStart+0x21) [0xd750a351]
  5724:20230516:155652.631 ================================
  5724:20230516:155652.685 agent #0 started [main process]
   512:20230516:155652.686 agent #1 started [collector]
  5860:20230516:155652.686 agent #2 started [listener #1]
  3360:20230516:155652.687 agent #3 started [listener #2]
  1760:20230516:155652.687 agent #4 started [listener #3] 

> Here the full report for 32-bit Zabbix Agent: (on 64bit Server 20219)

Hardware: i386
Encription: OpenSSL
Paket: Archive  
...... 
   840:20230516:160746.507 28: C:\Program Files\zabbix\zabbix_agentd.exe(KiUserExceptionDispatcher+0x26) [0x77ea3a36]
   840:20230516:160746.508 27: C:\Program Files\zabbix\zabbix_agentd.exe(KiUserExceptionDispatcher+0x26) [0x77ea3a36]
   840:20230516:160746.509 26: C:\Program Files\zabbix\zabbix_agentd.exe(KiUserExceptionDispatcher+0x26) [0x77ea3a36]
   840:20230516:160746.509 25: C:\Program Files\zabbix\zabbix_agentd.exe(KiUserExceptionDispatcher+0x26) [0x77ea3a36]
   840:20230516:160746.511 24: C:\Program Files\zabbix\zabbix_agentd.exe(KiUserExceptionDispatcher+0x26) [0x77ea3a36]
   840:20230516:160746.512 23: C:\Program Files\zabbix\zabbix_agentd.exe(KiUserExceptionDispatcher+0x26) [0x77ea3a36]
   840:20230516:160746.512 22: C:\Program Files\zabbix\zabbix_agentd.exe(KiUserExceptionDispatcher+0x26) [0x77ea3a36]
......
   840:20230516:160746.513 21: C:\Program Files\zabbix\zabbix_agentd.exe(KiUserExceptionDispatcher+0x26) [0x77ea3a36]
   840:20230516:160746.514 20: C:\Program Files\zabbix\zabbix_agentd.exe(RpcRaiseException+0x3e) [0x759990ae]
   840:20230516:160746.514 19: C:\Program Files\zabbix\zabbix_agentd.exe(NdrClientCall2+0xf5c) [0x75986e6c]
   840:20230516:160746.515 18: C:\Program Files\zabbix\zabbix_agentd.exe(NdrClientCall4+0x14) [0x75985d04]
   840:20230516:160746.516 17: C:\Program Files\zabbix\zabbix_agentd.exe(EnumPrintersW+0x87) [0x747c3517]
   840:20230516:160746.517 16: C:\Program Files\zabbix\zabbix_agentd.exe(PerfOpen+0x226) [0x747ec4a6]
   840:20230516:160746.518 15: C:\Program Files\zabbix\zabbix_agentd.exe(PerfCollect+0x12c) [0x747ec24c]
   840:20230516:160746.519 14: C:\Program Files\zabbix\zabbix_agentd.exe(FreeEncryptedFileMetadata+0x95a) [0x77406d3a]
   840:20230516:160746.520 13: C:\Program Files\zabbix\zabbix_agentd.exe(FreeEncryptedFileMetadata+0x6df) [0x77406abf]
   840:20230516:160746.521 12: C:\Program Files\zabbix\zabbix_agentd.exe(PerfRegQueryValue+0x25c) [0x7740073c]
   840:20230516:160746.522 11: C:\Program Files\zabbix\zabbix_agentd.exe(PerfRegQueryValue+0x1d) [0x774004fd]
   840:20230516:160746.523 10: C:\Program Files\zabbix\zabbix_agentd.exe(UnsubscribeFeatureUsageFlush+0xa25) [0x77ab1b75]
   840:20230516:160746.524 9: C:\Program Files\zabbix\zabbix_agentd.exe(RegQueryValueExW+0xe0) [0x77a86f90]
   840:20230516:160746.525 8: C:\Program Files\zabbix\zabbix_agentd.exe(PdhCollectQueryData+0xe61) [0x75198551]
   840:20230516:160746.526 7: C:\Program Files\zabbix\zabbix_agentd.exe(PdhGetCounterTimeBase+0x35e4) [0x7519e314]
   840:20230516:160746.527 6: C:\Program Files\zabbix\zabbix_agentd.exe(PdhVerifySQLDBW+0xce2f) [0x751c244f]
   840:20230516:160746.528 5: C:\Program Files\zabbix\zabbix_agentd.exe(PdhEnumObjectsHW+0x11c) [0x751c4fec]
   840:20230516:160746.528 4: C:\Program Files\zabbix\zabbix_agentd.exe(PdhEnumObjectsW+0x107) [0x751c5147]
   840:20230516:160746.529 3: C:\Program Files\zabbix\zabbix_agentd.exe() [0x47b22a]
   840:20230516:160746.530 2: C:\Program Files\zabbix\zabbix_agentd.exe(BaseThreadInitThunk+0x19) [0x778c05b9]
   840:20230516:160746.531 1: C:\Program Files\zabbix\zabbix_agentd.exe(RtlGetAppContainerNamedObjectPath+0xed) [0x77e977ad]
   840:20230516:160746.533 0: C:\Program Files\zabbix\zabbix_agentd.exe(RtlGetAppContainerNamedObjectPath+0xbd) [0x77e9777d]
   840:20230516:160746.535 ================================
   840:20230516:160746.535 Unhandled exception c0000026 detected at 0x77ED3294. Crashing ...
   840:20230516:160746.536 ====== Fatal information: ======
   840:20230516:160746.536 Program counter: 0x77ed3294
   840:20230516:160746.537 === Registers: ===
   840:20230516:160746.537 edi     =          131e53c =             20047164 =             20047164
   840:20230516:160746.538 esi     =          123eeb8 =             19132088 =             19132088
   840:20230516:160746.538 ebp     =          123ee50 =             19131984 =             19131984
   840:20230516:160746.539 ebx     =          123ee68 =             19132008 =             19132008
   840:20230516:160746.539 edx     =          123ee68 =             19132008 =             19132008
   840:20230516:160746.540 eax     =          123edf8 =             19131896 =             19131896
   840:20230516:160746.540 ecx     =                0 =                    0 =                    0
   840:20230516:160746.540 esp     =          123edc8 =             19131848 =             19131848
   840:20230516:160746.541 efl     =              282 =                  642 =                  642
   840:20230516:160746.541 csgsfs  =         232b5300 =            590041856 =            590041856
   840:20230516:160746.541 === Backtrace: ===
 

I am waiting for 6.4.RC3 Agent

Comment by Jerome Bose [ 2023 May 16 ]

kprutkovs it looks like the 32bit Zabbix-Agent does not work on 64bit OS at all... The agent is dumping a lot of entries:
 840:20230516:160746.512 22: C:\Program Files\zabbix\zabbix_agentd.exe(KiUserExceptionDispatcher+0x26) [0x77ea3a36]

Comment by Konstantins Prutkovs (Inactive) [ 2023 May 17 ]

jerome.bose that was exactly my suspicion. The 64-bit agent works fine (you can see listeners got started normally in the logs), but pollutes logs with errors, while 32-bit crashes. This indeed is already addressed in upcoming next release. I will keep this issue open for time being, however, in case you continue having problems in next release.

Comment by Jerome Bose [ 2023 May 31 ]

Hi kprutkovs, good news: the new release is working fine on Windows-Server 2019

I have tested with the following version:

Zabbix Agent: 6.4.3
Hardware: (no selection available anymore) - AMD64
Encription: OpenSSL
Paket: Archive  
  5784:20230531:155019.722 Zabbix Agent stopped. Zabbix 6.4.3 (revision a6c7751b021).
  3436:20230531:155020.061 Starting Zabbix Agent [VS39362EA]. Zabbix 6.4.3 (revision a6c7751b021).
  3436:20230531:155020.061 **** Enabled features ****
  3436:20230531:155020.062 IPv6 support:          YES
  3436:20230531:155020.063 TLS support:           YES
  3436:20230531:155020.064 **************************
  3436:20230531:155020.065 using configuration file: C:\Program Files\Zabbix\zabbix_agentd.conf
  3436:20230531:155020.481 agent #0 started [main process]
  1796:20230531:155020.482 agent #2 started [listener #1]
  5988:20230531:155020.483 agent #3 started [listener #2]
  2572:20230531:155020.483 agent #1 started [collector]
  5072:20230531:155020.484 agent #4 started [listener #3] 

You can enter the Zabbix-Agent version 6.4.3 in the fix versions for this Jira issue 

Thanks for your support!

 

Comment by Konstantins Prutkovs (Inactive) [ 2023 May 31 ]

jerome.bose, I am glad to hear that, closing this issue.

Generated at Sun May 11 07:22:25 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.