[asterisk-bugs] [JIRA] (ASTERISK-21665) 11.4 rc1 Crash on debian/sparc

Walter Doekes (JIRA) noreply at issues.asterisk.org
Wed Apr 24 14:47:38 CDT 2013


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

Walter Doekes commented on ASTERISK-21665:
------------------------------------------

Not jumping through hoops yet ;) I might take you up on that root access.. later

A couple of things stand out:

* It's indeed the version-check that crashes ('rasterisk asterisk -nrx core show version')
* The backtrace is really poor this time around
* You're generating 32 bit binaries on a 64 bit system ('ELF 32-bit MSB core file' and 'sparc64')

I have no idea how/why you're making 32 bit binaries on a 64 bit system, but that looks like it's causing all sorts of havoc. The compiler aligns void-pointers on 4 byte boundaries, but mutex-related items are expected on 8 byte boundaries (it seems).

Summarizing:

* Asterisk starts with just the 3rd patch.
* rasterisk core show version fails.

Can you set some additional breakpoints when starting rasterisk?
{noformat}
gdb `which asterisk`
break pthread_cond_init
break pthread_attr_init
break pthread_condattr_init
break pthread_mutex_init
break pthread_mutexattr_init
break pthread_rwlock_init
break pthread_rwlockattr_init
run -nrx 'core show version'

.. and then 'bt' and 'cont' until you find where the stack gets smashed
{noformat}

Alternately, we could alter the ast_mutex* macros to add logging of the pointer address. Depending on how quickly you can find another culprit using the method above.
                
> 11.4 rc1 Crash on debian/sparc
> ------------------------------
>
>                 Key: ASTERISK-21665
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21665
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 11.3.0, 11.4.0
>         Environment: Debian 6.0.7 sparc64
>            Reporter: Jeremy Kister
>            Severity: Critical
>         Attachments: modules.conf, sparc_alignment_issues_2.diff, sparc_alignment_issues_3.diff, sparc_alignment_issues.diff
>
>
> Asterisk 11.4.0-rc1 immediately dumps core with error "Bus Error"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list