[asterisk-bugs] [JIRA] (ASTERISK-21763) asterisk -r Bus Error on Debian/sparc

Walter Doekes (JIRA) noreply at issues.asterisk.org
Mon Jun 17 02:35:03 CDT 2013


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

Walter Doekes commented on ASTERISK-21763:
------------------------------------------

> not sure if it's interesting

I assume you mean asterisk.c.


I'm sorry that I haven't had the time to investigate further.

But the one time I tested things on your box, I tried to tackle the 'asterisk -r' as non-root bus error first. If my memory serves me right, the bus error disappeared if I removed this line (from asterisk.c):
{noformat}
+		fprintf(stderr, "Unable to connect to remote asterisk (does %s exist?)\n", ast_config_AST_SOCKET);
{noformat}

That felt totally random.

Supposedly there is some call along the line that messes up the stderr FILE internals. Or, the stderr FILE uses a misaligned mutex itself...


                
> asterisk -r Bus Error on Debian/sparc
> -------------------------------------
>
>                 Key: ASTERISK-21763
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21763
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 1.8.20.0, 1.8.21.0, 10.12.2, 11.4.0
>         Environment: Debian 6 SPARC
>            Reporter: Jeremy Kister
>         Attachments: astmm_align.patch, backtrace1.txt, break-main-backtrace.txt, diff-uNrw-between-19-and-20.diff, pimped-backtrace1.txt
>
>
> as root:
> # /etc/init.d/asterisk stop
> stopping asterisk.
> Asterisk ended with exit status 0
> Asterisk shutdown normally.
> # /etc/init.d/asterisk start
> starting asterisk.
> Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
> Bus error (core dumped)
> as non-root:
> # asterisk -r
> Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
> Bus error
> as root:
> # asterisk -r
> Asterisk 10.12.2, Copyright (C) 1999 - 2012 Digium, Inc. and others.
> Created by Mark Spencer <markster at digium.com>
> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
> This is free software, with components licensed under the GNU General Public
> License version 2 and other licenses; you are welcome to redistribute it under
> certain conditions. Type 'core show license' for details.
> =========================================================================
> Connected to Asterisk 10.12.2 currently running on pbx1 (pid = 8635)
> Verbosity is at least 3
> pbx1*CLI> 

--
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