[asterisk-bugs] [JIRA] (ASTERISK-23996) No core dumps because of res_musiconhold chdir.

Rusty Newton (JIRA) noreply at issues.asterisk.org
Wed Jul 9 16:32:57 CDT 2014


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

Rusty Newton updated ASTERISK-23996:
------------------------------------

    Component/s: Resources/res_musiconhold

> No core dumps because of res_musiconhold chdir.
> -----------------------------------------------
>
>                 Key: ASTERISK-23996
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23996
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_musiconhold
>    Affects Versions: SVN, 1.8.28.2
>            Reporter: Walter Doekes
>
> Jeez. Finally found out why I didn't get core dumps most of the time.
> res_musiconhold does a chdir to a non-writable directory (since r4552). That chdir is completely avoidable, as far as I can tell.
> If run quickly enough, that chdir is undone at the end of the function, but because of the race, a second run of the function will take the temporary cwd as old cwd and return to that when finished:
> *from now on, you're in a non-writable musiconhold dir, and you get no core dumps (unless you run as root or your moh dirs are writable or your core_pattern is absolutely pathed).*



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



More information about the asterisk-bugs mailing list