Bug#886232: perl: Sys::Syslog is not tread-safe (can segfault)

Dominic Hargreaves dom at earth.li
Fri Jan 5 10:51:14 UTC 2018


On Wed, Jan 03, 2018 at 11:52:02AM +0100, Zdenek Salvet wrote:
> Sys::Syslog module is not thread-safe, reopening syslog connection
> (could be internal/automatic after transient transport error, without user 
> calling openlog/closelog) can crash multithreaded process 
> (Apache event MPM with mod_perl in my case).
> You can find upstream bug report at https://rt.perl.org/Public/Bug/Display.html?id=132679 ,
> attached patch (serializing access to shared variable with straightforward locking)
> has been tested on jessie.

Hello,

Are you able to tell whether this affects Debian stretch too?
Or at the very least please could you provide reproducing instructions?
If it's still an issue in current releases of perl we should fix it
there first/also.

By the way, you probably want to file that upstream issue on CPAN RT
rather than rt.perl.org since Sys-Syslog is not maintained by the perl5
porters - and against a current release:

https://rt.cpan.org//Dist/Display.html?Queue=Sys-Syslog

You might find it helpful for testing purposes to install the current
Sys-Syslog from CPAN locally to verify the problem with the newest
version of Sys-Syslog.

Cheers,
Dominic.




More information about the Perl-maintainers mailing list