[asterisk-bugs] [JIRA] (ASTERISK-25087) Asterisk segfault when using Directory application with alias option.
Chet Stevens (JIRA)
noreply at issues.asterisk.org
Thu May 28 12:21:32 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-25087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=226375#comment-226375 ]
Chet Stevens edited comment on ASTERISK-25087 at 5/28/15 12:20 PM:
-------------------------------------------------------------------
Hello. I think I found the exact way to reproduce this. I tested with Asterisk GIT-13-87c03b7. In summary, when using the "a" option it doesn't like any mailboxes defined with a name and nothing else.
I stripped down the test to barebones dialplan:
Dialplan
{noformat}
exten => ##94,1,Directory(,internal,fa)
{noformat}
Working voicemail.conf
{noformat}
[general]
[zonemessages]
[default]
4405 => 2580,Fred Jones,,,alias=leader
4406 => 2580,Velma Dinkley,,,alias=genius
{noformat}
If any mailbox is defined like:
{noformat}
<mailbox> => <password>,<name>
{noformat}
with nothing else then it will segfault.
If the mailboxes with a name at least end with a comma then aliases will work. For example:
{noformat}
<mailbox> => <password>,<name>,,,alias=My Alias ; With an alias defined.
<mailbox> => <password>,<name>, ; A comma added.
<mailbox> => <password>,<name>,,,alias= ; Alias parameter but no alias defined.
{noformat}
then the Directory application works as expected.
was (Author: cwstevens):
Hello. I think I found the exact way to reproduce this. I tested with Asterisk GIT-13-87c03b7. In summary, when using the "a" option it doesn't like any mailboxes defined with a name and nothing else.
I stripped down the test to barebones dialplan:
Dialplan
{noformat}
exten => ##94,1,Directory(,internal,fa)
{noformat}
Working voicemail.conf
{noformat}
[general]
[zonemessages]
[default]
4405 => 2580,Fred Jones,,,alias=leader
4406 => 2580,Velma Dinkley,,,alias=genius
{noformat}
If any mailbox is defined like:
{noformat}
<mailbox> => <password>,<name>
{noformat}
with nothing else then it will segfault.
If the mailboxes are at least in this format:
{noformat}
<mailbox> => <password>,<name>,,,alias=My Alias ; With an alias defined.
<mailbox> => <password>,<name>,,, ; Padded with commas.
<mailbox> => <password>,<name>,,,alias= ; Alias parameter but no alias defined.
{noformat}
then the Directory application works as expected.
> Asterisk segfault when using Directory application with alias option.
> ---------------------------------------------------------------------
>
> Key: ASTERISK-25087
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-25087
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Applications/app_directory
> Affects Versions: 13.1.0
> Environment: Asterisk 13.1-cert2
> Ubuntu Server 14.04.1 LTS (GNU/Linux 3.13.0-35-generic x86_64)
> HP ProLiant DL380p Gen8 with 16 GB memory
> Wildcard AEX2400: wctdm24xxp+
> Reporter: Chet Stevens
> Assignee: Chet Stevens
> Attachments: backtrace.txt, debug.txt
>
>
> If the Directory application is called with the 'a' (alias) option then the Asterisk process stops with a segfault the moment the caller presses a DTMF key. The Directory application works normally if the 'a' option is not used. Reproduced with latest snapshot from certified/13.1 as well.
> Backtrace will be attached. Last 10k lines of debug will be attached.
> For reference the segfault was at:
> {noformat}
> May 14 11:43:19 Cherry-Red kernel: [1833492.105879] show_signal_msg: 24 callbacks suppressed
> May 14 11:43:19 Cherry-Red kernel: [1833492.105885] asterisk[14204]: segfault at 0 ip 00007f815b4fb331 sp 00007f80f282d160 error 4 in libc-2.19.so[7f815b468000+1bb000]
> {noformat}
> Called application using the following dialplan:
> {noformat}
> exten => 2,1,NoOp()
> same => n,Set(current_menu=2,1)
> same => n,Set(CHANNEL(language)=system_prompts/directory)
> same => n,Wait(1)
> same => n,Directory(,${CONTEXT},fa)
> same => n,Set(CHANNEL(language)=)
> same => n,Background(user_prompts/751)
> same => n,WaitExten(5)
> {noformat}
> The Directory works as expected if we use:
> {noformat}
> same => n,Directory(,${CONTEXT},f)
> {noformat}
> Problem appears to be 100% reproducible once the 'a' option is added.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list