Re: Strange problem with Asterisk 11 on 5.7

2015-02-24 Thread Ted Unangst
Stuart Henderson wrote: > On 2015/02/24 10:48, Ted Unangst wrote: > > > > I don't know what's going on here, but I'll note that rthread_atfork.c > > hasn't > > changed since before 5.5. > > What changed is p11-kit's atfork handler. Reverting this commit > fixes AGI in asterisk. (URL here, their

Re: Strange problem with Asterisk 11 on 5.7

2015-02-24 Thread Stuart Henderson
On 2015/02/24 10:48, Ted Unangst wrote: > > I don't know what's going on here, but I'll note that rthread_atfork.c hasn't > changed since before 5.5. What changed is p11-kit's atfork handler. Reverting this commit fixes AGI in asterisk. (URL here, their diff inline below). http://cgit.freedeskto

Re: Strange problem with Asterisk 11 on 5.7

2015-02-24 Thread Ted Unangst
Philip Guenther wrote: > On Mon, 23 Feb 2015, Alexey Suslikov wrote: > ... > > 12995 asterisk RET fork 0 > > 12995 asterisk CALL > > sigprocmask(SIG_SETMASK,0x8005003) > > 12995 asterisk RET sigprocmask ~0x10100 > > 12995 asterisk CALL getthrid() > > 12995 asterisk RET getthrid 101299

Re: Strange problem with Asterisk 11 on 5.7

2015-02-23 Thread Stuart Henderson
On 2015/02/24 02:59, Alexey Suslikov wrote: > On Tue, Feb 24, 2015 at 2:45 AM, Stuart Henderson wrote: > > Yes that gets rid of the "unable to execute" from the system("pwd") call. > > (unfortunately the AGI script can't be fixed that way as it needs to not > > block the parent). > > IMO, fixing

Re: Strange problem with Asterisk 11 on 5.7

2015-02-23 Thread Alexey Suslikov
On Tue, Feb 24, 2015 at 2:45 AM, Stuart Henderson wrote: > On 2015/02/23 16:15, Philip Guenther wrote: >> On Mon, 23 Feb 2015, Alexey Suslikov wrote: >> ... >> > 12995 asterisk RET fork 0 >> > 12995 asterisk CALL >> > sigprocmask(SIG_SETMASK,0x8005003) >> > 12995 asterisk RET sigprocmask

Re: Strange problem with Asterisk 11 on 5.7

2015-02-23 Thread Stuart Henderson
On 2015/02/23 16:15, Philip Guenther wrote: > On Mon, 23 Feb 2015, Alexey Suslikov wrote: > ... > > 12995 asterisk RET fork 0 > > 12995 asterisk CALL > > sigprocmask(SIG_SETMASK,0x8005003) > > 12995 asterisk RET sigprocmask ~0x10100 > > 12995 asterisk CALL getthrid() > > 12995 asterisk

Re: Strange problem with Asterisk 11 on 5.7

2015-02-23 Thread Philip Guenther
On Mon, 23 Feb 2015, Alexey Suslikov wrote: ... > 12995 asterisk RET fork 0 > 12995 asterisk CALL > sigprocmask(SIG_SETMASK,0x8005003) > 12995 asterisk RET sigprocmask ~0x10100 > 12995 asterisk CALL getthrid() > 12995 asterisk RET getthrid 1012995/0xf7503 > 12995 asterisk PSIG SIGSE

Re: Strange problem with Asterisk 11 on 5.7

2015-02-23 Thread Alexey Suslikov
On Tue, Feb 24, 2015 at 1:21 AM, Alexey Suslikov wrote: > On Tue, Feb 24, 2015 at 12:52 AM, Alexey Suslikov > wrote: >> On Tue, Feb 24, 2015 at 12:21 AM, Philip Guenther >> wrote: >>> >>> On Mon, 23 Feb 2015, Alexey Suslikov wrote: I modified chunk at >>> ... to be if (res >

Re: Strange problem with Asterisk 11 on 5.7

2015-02-23 Thread Alexey Suslikov
On Tue, Feb 24, 2015 at 12:52 AM, Alexey Suslikov wrote: > On Tue, Feb 24, 2015 at 12:21 AM, Philip Guenther > wrote: >> >> On Mon, 23 Feb 2015, Alexey Suslikov wrote: >>> I modified chunk at >> ... >>> to be >>> >>> if (res > -1) { >>>ast_log(LOG_WARNING, "WIFCONTINUED = %d\n", WIFCONTINUED(

Re: Strange problem with Asterisk 11 on 5.7

2015-02-23 Thread Alexey Suslikov
On Tue, Feb 24, 2015 at 12:21 AM, Philip Guenther wrote: > > On Mon, 23 Feb 2015, Alexey Suslikov wrote: >> I modified chunk at > ... >> to be >> >> if (res > -1) { >>ast_log(LOG_WARNING, "WIFCONTINUED = %d\n", WIFCONTINUED(status)); >>ast_log(LOG_WARNING, "WIFEXITED = %d\n", WIFEXITED(sta

Re: Strange problem with Asterisk 11 on 5.7

2015-02-23 Thread Philip Guenther
On Mon, 23 Feb 2015, Alexey Suslikov wrote: > I modified chunk at ... > to be > > if (res > -1) { >ast_log(LOG_WARNING, "WIFCONTINUED = %d\n", WIFCONTINUED(status)); >ast_log(LOG_WARNING, "WIFEXITED = %d\n", WIFEXITED(status)); >ast_log(LOG_WARNING, "WIFSIGNALED = %d\n", WIFSIGNALED(s

Re: Strange problem with Asterisk 11 on 5.7

2015-02-23 Thread Alexey Suslikov
On Sun, Feb 22, 2015 at 11:22 PM, Stuart Henderson wrote: > http://svnview.digium.com/svn/asterisk/branches/13/res/res_agi.c?view=markup#l1828 > http://svnview.digium.com/svn/asterisk/branches/13/main/app.c?view=markup#l2904 > > I've given it a bit of a poke with added logging in Asterisk but > no

Re: Strange problem with Asterisk 11 on 5.7

2015-02-23 Thread Alexey Suslikov
On Mon, Feb 23, 2015 at 3:21 PM, Alexey Suslikov wrote: > On Sun, Feb 22, 2015 at 11:22 PM, Stuart Henderson wrote: >> I can replicate this on my system (I'm running Asterisk 13 on >> -current at the moment), including with a simpler script that just >> touches a file in /tmp and doesn't deal wit

Re: Strange problem with Asterisk 11 on 5.7

2015-02-23 Thread Alexey Suslikov
On Sun, Feb 22, 2015 at 11:22 PM, Stuart Henderson wrote: > I can replicate this on my system (I'm running Asterisk 13 on > -current at the moment), including with a simpler script that just > touches a file in /tmp and doesn't deal with input at all; script > doesn't appear to run at all. Try 5.

Re: Strange problem with Asterisk 11 on 5.7

2015-02-22 Thread Stuart Henderson
I can replicate this on my system (I'm running Asterisk 13 on -current at the moment), including with a simpler script that just touches a file in /tmp and doesn't deal with input at all; script doesn't appear to run at all. The asterisk code involved in this hasn't been modified in 4 years or so.

Strange problem with Asterisk 11 on 5.7

2015-02-22 Thread Alexey Suslikov
Hello. Found while migrating to 5.7 snap. Two systems: * 5.6 (RELEASE) running Asterisk 11.11 * 5.7 (Feb 22 snap) running Asterisk 11.16 (also tried with 11.11, 11.7, 11.5.1) Both systems have same Asterisk setup. extensions.conf: [from-trunk] exten => _XX,1,Wait(1) exten => _XX