[ZBX-26211] Crash on check for not supported value due to race condition Created: 2025 Mar 21  Updated: 2025 Mar 31  Resolved: 2025 Mar 31

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: None
Fix Version/s: 7.0.11rc2, 7.2.5rc2, 7.4.0beta1 (master)

Type: Problem report Priority: Blocker
Reporter: Vladislavs Sokurenko Assignee: Vladislavs Sokurenko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2025-03-24 at 14.13.07.png     PNG File Screenshot 2025-03-24 at 14.14.54.png     PNG File Screenshot 2025-03-24 at 14.25.18.png    
Issue Links:
Causes
caused by ZBXNEXT-7726 new preprocessing step: turn not supp... Closed
Duplicate
Team: Team A
Sprint: S25-W12/13
Story Points: 1

 Description   
==150722== Thread 2:
==150722== Invalid read of size 1
==150722==    at 0x4D99E8: regexp_sub_replace (zbxregexp.c:757)
==150722==    by 0x4DA24F: zbx_mregexp_sub_precompiled (zbxregexp.c:1019)
==150722==    by 0x4B0187: item_preproc_check_error_regex (item_preproc.c:1121)
==150722==    by 0x4AA77B: pp_check_not_supported_error (pp_execute.c:140)
==150722==    by 0x4AC523: pp_execute_step (pp_execute.c:1129)
==150722==    by 0x4ACA57: pp_execute (pp_execute.c:1278)
==150722==    by 0x4A02E7: pp_task_process_value (pp_worker.c:52)
==150722==    by 0x4A06F3: pp_worker_entry (pp_worker.c:154)
==150722==    by 0x590595B: start_thread (pthread_create.c:447)
==150722==    by 0x596B7DB: thread_start (clone.S:79)
==150722==  Address 0xd925490 is 0 bytes inside a block of size 1 free'd
==150722==    at 0x48882A8: free (in /usr/libexec/valgrind/vgpreload_memcheck-arm64-linux.so)
==150722==    by 0x4B01B7: item_preproc_check_error_regex (item_preproc.c:1126)
==150722==    by 0x4AA77B: pp_check_not_supported_error (pp_execute.c:140)
==150722==    by 0x4AC523: pp_execute_step (pp_execute.c:1129)
==150722==    by 0x4ACA57: pp_execute (pp_execute.c:1278)
==150722==    by 0x4A02E7: pp_task_process_value (pp_worker.c:52)
==150722==    by 0x4A06F3: pp_worker_entry (pp_worker.c:154)
==150722==    by 0x590595B: start_thread (pthread_create.c:447)
==150722==    by 0x596B7DB: thread_start (clone.S:79)
==150722==  Block was alloc'd at
==150722==    at 0x4885250: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-arm64-linux.so)
==150722==    by 0x591D62F: strdup (strdup.c:42)
==150722==    by 0x64234F: zbx_strdup2 (misc.c:178)
==150722==    by 0x42298F: dc_preproc_sync_preprocitem (dbconfig.c:10181)
==150722==    by 0x422C37: dc_preproc_sync_item (dbconfig.c:10234)
==150722==    by 0x423217: zbx_dc_config_get_preprocessable_items (dbconfig.c:10391)
==150722==    by 0x49BAB3: preprocessor_sync_configuration (pp_manager.c:704)
==150722==    by 0x49C30B: preprocessor_add_request (pp_manager.c:872)
==150722==    by 0x49D3C7: zbx_pp_manager_thread (pp_manager.c:1313)
==150722==    by 0x4E2E6F: zbx_thread_start (threads.c:135)
==150722==    by 0x1DBA7B: server_startup (server.c:1850)
==150722==    by 0x1DD157: MAIN_ZABBIX_ENTRY (server.c:2380)


 Comments   
Comment by Vladislavs Sokurenko [ 2025 Mar 24 ]

Fixed in:

Generated at Wed Apr 02 14:30:04 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.