[syslog-ng] mongodb stats crash
Gergely Nagy
algernon at balabit.hu
Fri Oct 18 16:55:16 CEST 2013
Gergely Nagy <algernon at balabit.hu> writes:
> Balazs Scheidler <bazsi77 at gmail.com> writes:
>
>> Hi,
>>
>> I have encountered a fixed crash in 3.5 master in the mongodb() driver,
>> it aborts in stats_unregister_counter()
>
> [...]
>
>> This patch solves for me, however I'm not 100% certain it's the proper fix and the other
>> LogThreadedDestDriver instances might be affected too.
>
> This is the correct fix, and all the others are affected too. Can you
> commit it to 3.5 master, or shall I patch up the others myself? And yes,
> threaded_dest_driver_start() can be moved into
> log_threaded_dest_driver_init_method() afterwards. I'd do that in a
> separate patch though.
No, it's not the correct fix as it turns out, as init_method() will
override functions set earlier, if moved to later. So init_method()
needs to be a little smarter too.
--
|8]
More information about the syslog-ng
mailing list