On Tue, Feb 24, 2015 at 12:21 AM, Philip Guenther
<[email protected]> 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(status));
>> ast_log(LOG_WARNING, "WIFSIGNALED = %d\n", WIFSIGNALED(status));
>> ast_log(LOG_WARNING, "WIFSTOPPED = %d\n", WIFSTOPPED(status));
>> ...
>>
>> and here is the result:
> ...
>> 5.7
>> -- Executing [XXXXXXXXXX@from-trunk:3] System("SIP/test-145-00000000",
>> "/bin/pwd") in new stack
> ...
>> [Feb 23 23:08:00] WARNING[-1][C-00000000]: asterisk.c:1137
>> ast_safe_system: WIFSIGNALED = 1
>> [Feb 23 23:08:00] WARNING[-1][C-00000000]: app_system.c:134
>> system_exec_helper: Unable to execute '/bin/pwd'
>>
>> Boom! Child signaled and never executed.
>>
>> Any ideas?
>
> What's WTERMSIG(status) return?
Philip, thanks for joining.
Adding
if (WIFSIGNALED(status)) {
ast_log(LOG_WARNING, "WTERMSIG = %d\n", WTERMSIG(status));
}
results in
[Feb 24 00:42:10] WARNING[-1][C-00000000]: asterisk.c:1137
ast_safe_system: WIFSIGNALED = 1
[Feb 24 00:42:10] WARNING[-1][C-00000000]: asterisk.c:1139
ast_safe_system: WTERMSIG = 11
Getting ktrace requires more time. I will try.