[asterisk-bugs] [JIRA] (ASTERISK-23755) SIGSEGV due to alignment bug on arm when destination callgroup/pickupgroud is set

Peter Katzmann (JIRA) noreply at issues.asterisk.org
Tue May 27 06:48:44 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=218471#comment-218471 ] 

Peter Katzmann commented on ASTERISK-23755:
-------------------------------------------

When I build and use asterisk 1.8 instead of asterisk 11 then i have no alignment trap messages at all.
But when i switch to a asterisk 11 build, kernel immediately spills out alignment trap messages:

>Alignment trap: asterisk (817) PC=0xb53cb614 Instr=0xe1c120f0 Address=0xb6510ac4 FSR 0x801
<4>Alignment trap: asterisk (817) PC=0xb53cb614 Instr=0xe1c120f0 Address=0xb651931c FSR 0x801
<4>Alignment trap: asterisk (841) PC=0xb6aa5c14 Instr=0xe1c621d0 Address=0x00662644 FSR 0x001
<4>Alignment trap: asterisk (841) PC=0xb6aa5c18 Instr=0xe1c600d8 Address=0x0066263c FSR 0x001
<4>Alignment trap: asterisk (817) PC=0xb53cb614 Instr=0xe1c120f0 Address=0xb6504bcc FSR 0x801

The build system and library’s or completely identical, just a different asterisk selected.

> SIGSEGV due to alignment bug on arm when destination callgroup/pickupgroud is set
> ---------------------------------------------------------------------------------
>
>                 Key: ASTERISK-23755
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23755
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General, Core/Channels
>    Affects Versions: 11.9.0
>         Environment: buildroot 2014.02, Marvel Kirkwood, linux 3.10
>            Reporter: Peter Katzmann
>            Assignee: Peter Katzmann
>            Severity: Critical
>         Attachments: backtrace.txt
>
>
> I encountered an SIGSEGV during testing of asterisk 11 on a Kirkwood arm platform. I tracked it down to the case that it will only occur if the user has pickupgroup/callgroup set,
> The problem does not exist with asterisk 1.8 .
> During deeper examination  i figured out the it seems a alignment probel, becuase when i set /proc/cpu/alignment to 2 i get plenty of misalignment message but no SIGSEGV
> The relevant exception part is:
> {noformat}
> Core was generated by `asterisk -g'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0x00088d00 in ast_channel_inherit_variables (parent=0xb6514774, child=0xb61a74) at channel.c:6527
> 6527                                    AST_LIST_INSERT_TAIL(ast_channel_varshead(child), newvar, entries);
> #0  0x00088d00 in ast_channel_inherit_variables (parent=0xb6514774, child=0xb61a74) at channel.c:6527
>         vartype = 2
>         current = 0xaf3f20
>         newvar = 0xb76ad8
>         varname = <optimized out>
>         __PRETTY_FUNCTION__ = "ast_channel_inherit_variables"
> #1  0xb54938d8 in ?? ()
> No symbol table info available.
> #2  0xb54938d8 in ?? ()
> No symbol table info available.
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list