[asterisk-bugs] [JIRA] (ASTERISK-23996) No core dumps because of res_musiconhold chdir.
Friendly Automation (JIRA)
noreply at issues.asterisk.org
Wed Mar 29 08:17:10 CDT 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-23996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236180#comment-236180 ]
Friendly Automation commented on ASTERISK-23996:
------------------------------------------------
Change 5325 merged by Joshua Colp:
res_musiconhold: Don't chdir() when scanning MoH files
[https://gerrit.asterisk.org/5325|https://gerrit.asterisk.org/5325]
> 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