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

Walter Doekes (JIRA) noreply at issues.asterisk.org
Wed Jun 19 09:24:03 CDT 2013


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

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

For the record:
{noformat}
root at t1000:/usr/local/src/sparcbus# cat Makefile 
.PHONY: all

all: foo foo2 foo3

foo: foo.c
        gcc -o foo foo.c
foo2: ver2 foo.c
        gcc -o foo2 foo.c -Wl,--version-script,ver2
foo3: ver3 foo.c
        gcc -o foo3 foo.c -Wl,--version-script,ver3

define ver2_body
{
        local: *;
};
endef
export ver2_body

ver2: Makefile
        sh -c 'echo "$$ver2_body" >ver2'

define ver3_body
{
        global:
                _IO_stdin_used;
        local:
                *;
};
endef
export ver3_body

ver3: Makefile
        sh -c 'echo "$$ver3_body" >ver3'
{noformat}

{noformat}
root at t1000:/usr/local/src/sparcbus# cat foo.c 
#include <stdio.h>
#include <stdlib.h>

int main() {
  printf("stdout=%p &_IO_2_1_stdout_=%p\n", stdout, &_IO_2_1_stdout_);
  setbuf(stdout, 0);
  return 0;
}
{noformat}

{noformat}
root at t1000:/usr/local/src/sparcbus# make
gcc -o foo foo.c
gcc -o foo2 foo.c -Wl,--version-script,ver2
gcc -o foo3 foo.c -Wl,--version-script,ver3

root at t1000:/usr/local/src/sparcbus# ./foo
stdout=0x207e0 &_IO_2_1_stdout_=0x207e0

root at t1000:/usr/local/src/sparcbus# ./foo2
stdout=0xf787f2fc &_IO_2_1_stdout_=0x207c0
Bus error

root at t1000:/usr/local/src/sparcbus# ./foo3
stdout=0x207e0 &_IO_2_1_stdout_=0x207e0
{noformat}
                
> 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