[asterisk-bugs] [JIRA] (ASTERISK-14441) [patch] Race condition in cdr_syslog.c (SVN Revision 205561)

Sean Bright (JIRA) noreply at issues.asterisk.org
Sat Jan 11 07:45:25 CST 2020


     [ https://issues.asterisk.org/jira/browse/ASTERISK-14441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Bright closed ASTERISK-14441.
----------------------------------

    Resolution: Won't Fix

{{cdr_syslog}} was deprecated in Jan 2018 and there are no plans to update or fix this module.

> [patch] Race condition in cdr_syslog.c (SVN Revision 205561)
> ------------------------------------------------------------
>
>                 Key: ASTERISK-14441
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-14441
>             Project: Asterisk
>          Issue Type: Bug
>          Components: CDR/NewFeature
>            Reporter: Tazio Ceri
>            Severity: Minor
>              Labels: patch
>         Attachments: 20101220__issue15474__1.4.diff.txt, 20111027__issue15474__1.8.diff.txt
>
>
> There is a race condition in these lines of code:
> openlog(sink->ident, LOG_CONS, sink->facility);
> syslog(sink->priority, "%s", ast_str_buffer(str));
> closelog();
> openlog interferes with all syslog calls in the process. Since asterisk
> is multithreaded, some other syslog message may be sent with syslog ident/facility, or some other call to openlog might interfere with this module's
> syslog call.
> This is not going to happen very often, but nevertheless it is an issue.
> I have resolved here piping to a different process which routes all messages
> to syslog with correct values,but implementation of a global syslog manager could be a more elegant solution.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list