[syslog-ng] [Bug 189] Syslog-ng 3.3.5. 90 segfaults with cmd line options --version and --debug

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Tue Aug 21 13:32:54 CEST 2012


https://bugzilla.balabit.com/show_bug.cgi?id=189





--- Comment #2 from Jose Oliveira <jpo at di.uminho.pt>  2012-08-21 13:32:53 ---
(In reply to comment #1)
> syslog-ng's internal message handling system is uninitialized, that's what causes the segfault. The following patch will fix it:
> 
> --- a/syslog-ng/main.c
> +++ b/syslog-ng/main.c
> @@ -212,11 +212,13 @@ main(int argc, char *argv[])
> 
>    if (display_version)
>      {
> +      msg_init(TRUE)
>        version();
>        return 0;
>      }
>    if (display_module_registry)
>      {
> +       msg_init(TRUE)
>        plugin_list_modules(stdout, TRUE);
>        return 0;
>      }
> 

I'm still getting segmentation faults with the above patch [1].

/jpo

[1] - The above patch is missing a couple of semicolons.


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list