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

Walter Doekes (JIRA) noreply at issues.asterisk.org
Mon Jul 7 07:17:56 CDT 2014


Walter Doekes created ASTERISK-23996:
----------------------------------------

             Summary: 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
    Affects Versions: 1.8.28.2, SVN
            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