[asterisk-bugs] [JIRA] (ASTERISK-21665) 11.4 rc1 Crash on debian/sparc with SIGBUS, Bus Error

Walter Doekes (JIRA) noreply at issues.asterisk.org
Thu Apr 25 15:05:38 CDT 2013


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

Walter Doekes edited comment on ASTERISK-21665 at 4/25/13 3:04 PM:
-------------------------------------------------------------------

Ok. The bt/cont loop suggests that the ast_mutext_t in linkedlist.h should also get an aligned attribute.

However.. that would mean that all of the following would need adapting too. All ast_mutex_t/ast_rwlock_t in any struct.
{noformat}
$ find . -name '*.h' -or -name '*.c' | xargs grep '^[[:blank:]]*struct[^;]*$' -A30 | egrep 'ast_(mutex|rwlock)_t' | sort
...
./include/asterisk/linkedlists.h-	ast_mutex_t lock;						\
./include/asterisk/linkedlists.h-        ast_rwlock_t lock;                                              \
...
./main/astobj2.c-	ast_mutex_t lock;
./main/astobj2.c-	ast_rwlock_t lock;
./main/data.c-	ast_rwlock_t lock;
./main/devicestate.c-	ast_mutex_t lock;
...

$ find . -name '*.h' -or -name '*.c' | xargs grep '^[[:blank:]]*struct[^;]*$' -A30 | egrep 'ast_(mutex|rwlock)_t' | wc -l
112

$ find . -name '*.h' -or -name '*.c' | xargs grep '^[[:blank:]]*struct[^;]*$' -A30 | egrep 'ast_(mutex|rwlock)_t' | sort | sed -e 's/^..//;s/\/.*//' | uniq -c
      5 addons
     11 apps
      1 bridges
      2 cdr
      1 cel
     25 channels
      1 funcs
     27 include
     20 main
      7 res
     12 utils
{noformat}

That's no fun to fix. (And then I even skipped the ast_cond_t's.) That can't be right.


I must be looking at this from the wrong angle. What's different between 1.8 and 11? That change should be significantly less intrusive.

Unfortunately I'm out of ideas there. The two noisy builds you've shown both show identical CC and LD flags.
                
      was (Author: wdoekes):
    Ok. The bt/cont loop suggests that the ast_mutext_t in linkedlist.h should also get an aligned attribute.

However.. that would mean that all of the following would need adapting too. All ast_mutex_t/ast_rwlock_t in 
{noformat}
$ find . -name '*.h' -or -name '*.c' | xargs grep '^[[:blank:]]*struct[^;]*$' -A30 | egrep 'ast_(mutex|rwlock)_t' | sort
...
./include/asterisk/linkedlists.h-	ast_mutex_t lock;						\
./include/asterisk/linkedlists.h-        ast_rwlock_t lock;                                              \
...
./main/astobj2.c-	ast_mutex_t lock;
./main/astobj2.c-	ast_rwlock_t lock;
./main/data.c-	ast_rwlock_t lock;
./main/devicestate.c-	ast_mutex_t lock;
...

$ find . -name '*.h' -or -name '*.c' | xargs grep '^[[:blank:]]*struct[^;]*$' -A30 | egrep 'ast_(mutex|rwlock)_t' | wc -l
112

$ find . -name '*.h' -or -name '*.c' | xargs grep '^[[:blank:]]*struct[^;]*$' -A30 | egrep 'ast_(mutex|rwlock)_t' | sort | sed -e 's/^..//;s/\/.*//' | uniq -c
      5 addons
     11 apps
      1 bridges
      2 cdr
      1 cel
     25 channels
      1 funcs
     27 include
     20 main
      7 res
     12 utils
{noformat}

That's no fun to fix. (And then I even skipped the ast_cond_t's.)


I must be looking at this from the wrong angle. What's different between 1.8 and 11? That change should be significantly less intrusive.

Unfortunately I'm out of ideas there. The two noisy builds you've shown both show identical CC and LD flags.
                  
> 11.4 rc1 Crash on debian/sparc with SIGBUS, Bus Error
> -----------------------------------------------------
>
>                 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
>            Assignee: Walter Doekes
>            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