Skip to content

FilterX scope message lifetime issue #655

Closed
@MrAnno

Description

@MrAnno

AxoSyslog

Version of AxoSyslog

e6296d4

==54== Invalid write of size 1
==54==    at 0x4C71EDF: nv_table_unref (nvtable.c:798)
==54==    by 0x4C3BB17: log_filterx_pipe_queue (filterx-pipe.c:116)
==54==    by 0x4BD8083: UnknownInlinedFun (logpipe.c:73)
==54==    by 0x4BD8083: log_pipe_queue (logpipe.c:109)
==54==    by 0x4BDDD7C: log_source_queue (logsource.c:670)
==54==    by 0x4BDD154: log_source_post (logsource.c:587)
==54==    by 0x4BC840E: afinter_source_post (afinter.c:127)
==54==    by 0x4C82CC1: __iv_event_run_pending_events (iv_event.c:56)
==54==    by 0x4C84108: iv_run_tasks (iv_task.c:48)
==54==    by 0x4C9170D: iv_main (iv_main_posix.c:99)
==54==    by 0x4BC84CE: afinter_source_run (afinter.c:171)
==54==    by 0x4BE8AAD: _worker_thread_func (mainloop-threaded-worker.c:79)
==54==    by 0x4D978ED: ??? (in /usr/lib/libglib-2.0.so.0.8200.5)
==54==  Address 0xba23703 is 195 bytes inside a block of size 620 free'd
==54==    at 0x48B5ECF: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==54==    by 0x4C3CEEA: filterx_scope_clear (filterx-scope.c:427)
==54==    by 0x4C3BCDF: log_filterx_pipe_queue (filterx-pipe.c:115)
==54==    by 0x4BD8083: UnknownInlinedFun (logpipe.c:73)
==54==    by 0x4BD8083: log_pipe_queue (logpipe.c:109)
==54==    by 0x4BDDD7C: log_source_queue (logsource.c:670)
==54==    by 0x4BDD154: log_source_post (logsource.c:587)
==54==    by 0x4BC840E: afinter_source_post (afinter.c:127)
==54==    by 0x4C82CC1: __iv_event_run_pending_events (iv_event.c:56)
==54==    by 0x4C84108: iv_run_tasks (iv_task.c:48)
==54==    by 0x4C9170D: iv_main (iv_main_posix.c:99)
==54==    by 0x4BC84CE: afinter_source_run (afinter.c:171)
==54==    by 0x4BE8AAD: _worker_thread_func (mainloop-threaded-worker.c:79)
==54==  Block was alloc'd at
==54==    at 0x48B3733: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==54==    by 0x4D6B9B5: g_malloc (in /usr/lib/libglib-2.0.so.0.8200.5)
==54==    by 0x4C78794: UnknownInlinedFun (logmsg.c:1391)
==54==    by 0x4C78794: log_msg_sized_new (logmsg.c:1504)
==54==    by 0x4C78808: log_msg_new_local (logmsg.c:1520)
==54==    by 0x4C788ED: log_msg_new_mark (logmsg.c:1564)
==54==    by 0x4BC9BCC: UnknownInlinedFun (afinter.c:211)
==54==    by 0x4BC9BCC: afinter_source_mark (afinter.c:198)
==54==    by 0x4C8D102: UnknownInlinedFun (iv_timer.c:124)
==54==    by 0x4C8D102: iv_run_timers (iv_timer.c:86)
==54==    by 0x4C91705: iv_main (iv_main_posix.c:98)
==54==    by 0x4BC84CE: afinter_source_run (afinter.c:171)
==54==    by 0x4BE8AAD: _worker_thread_func (mainloop-threaded-worker.c:79)
==54==    by 0x4D978ED: ??? (in /usr/lib/libglib-2.0.so.0.8200.5)
==54==    by 0x4069386: start (pthread_create.c:207)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions