[asterisk-bugs] [JIRA] (ASTERISK-24014) No core dumps because of res_musiconhold chdir.
Rusty Newton (JIRA)
noreply at issues.asterisk.org
Wed Jul 9 18:03:56 CDT 2014
Rusty Newton created ASTERISK-24014:
---------------------------------------
Summary: No core dumps because of res_musiconhold chdir.
Key: ASTERISK-24014
URL: https://issues.asterisk.org/jira/browse/ASTERISK-24014
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