<SPAM>RE: [Asterisk-Dev] Asterisk and AMD64 - Crashes

Joseph syscon at interbaun.com
Mon Sep 12 22:19:28 MST 2005


On Mon, 2005-09-12 at 12:52 -0500, Brian K. West wrote:
> Posting the core dump does NO good the out put from the "bt full" will.
> 
> You get the core file
> 
> gdb /usr/sbin/asterisk corefile
> 
> When you're at the prompt do "bt full" and "thread apply all bt" and post
> those.  
> 
> /b

I've tried to add as an attachment the bt full and thread apply all bt
but the second one is too large. So here is bt full from the core dump.
If anybody can tell me what is causing this crash it would be helpful
 
#0  0x00002aaaab3f30a4 in strncpy () from /lib/libc.so.6
No symbol table info available.
#1  0x00002aaaac84bea3 in handle_request (p=0x6449f0,
req=0x2aaaacc82240, sin=0x2aaaacc82230, recount=0x2aaaacc820b4,
    nounlock=0x2aaaacc820b8) at chan_sip.c:7267
        mailbox = '\0' <repeats 255 times>
        resp = {rlPart1 = 0x0, rlPart2 = 0x0, len = 0, headers = 0,
header = {0x0 <repeats 64 times>}, lines = 0,
  line = {0x0 <repeats 64 times>}, data = '\0' <repeats 4095 times>}
        cmd = 0x64517c ""
        cseq = 0xacc826d4 <Address 0xacc826d4 out of bounds>
        from = 0xacc826d4 <Address 0xacc826d4 out of bounds>
        e = 0x2aaaacc82669 "sip:10.0.0.104"
        c = (struct ast_channel *) 0x0
        transfer_to = (struct ast_channel *) 0x0
        seqno = 1
        len = 1
        ignore = 0
        respid = 0
        res = 1
        gotdest = 0
        iabuf = '\0' <repeats 15 times>
        af = {frametype = 5, subclass = 0, datalen = 0, samples = 0,
mallocd = 0, offset = 0, src = 0x0, data = 0x0,
  delivery = {tv_sec = 0, tv_usec = 0}, prev = 0x0, next = 0x0}
        __PRETTY_FUNCTION__ = "handle_request"
#2  0x00002aaaac84f6e2 in sipsock_read (id=0x64517b, fd=-1396169000,
events=255, ignore=0x3f) at chan_sip.c:7864
        req = {rlPart1 = 0x2aaaacc82660 "REGISTER", rlPart2 =
0x2aaaacc82669 "sip:10.0.0.104", len = 423,
  headers = 12, header = {0x2aaaacc82660 "REGISTER",
    0x2aaaacc82680 "Via: SIP/2.0/UDP
10.0.0.120:5062;branch=z9hG4bK-b87fef53",
    0x2aaaacc826b9 "From: <sip:820 at 10.0.0.104>;tag=8f217fcbf04b422do0",
0x2aaaacc826eb "To: <sip:820 at 10.0.0.104>",
    0x2aaaacc82704 "Call-ID: b343f8c3-48065d95 at 10.0.0.120",
0x2aaaacc8272a "CSeq: 1 REGISTER",
    0x2aaaacc8273b "Max-Forwards: 70", 0x2aaaacc8274c "Contact:
<sip:820 at 10.0.0.120:5062>;expires=3600",
    0x2aaaacc8277c "User-Agent: Sipura/SPA3000-2.0.11(GWg)",
0x2aaaacc827a3 "Content-Length: 0",
    0x2aaaacc827b5 "Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY,
OPTIONS, REFER",
    0x2aaaacc827f3 "Supported: x-sipura", 0x2aaaacc82807 "", 0x0
<repeats 51 times>}, lines = 0, line = {
    0x2aaaacc82807 "", 0x0 <repeats 63 times>},
  data = "REGISTER\000sip:10.0.0.104\000SIP/2.0\000Via: SIP/2.0/UDP
10.0.0.120:5062;branch=z9hG4bK-b87fef53\000From:
<sip:820 at 10.0.0.104>;tag=8f217fcbf04b422do0\000To:
<sip:820 at 10.0.0.104>\000Call-ID: b343f8c3-48065d95 at 10.0.0.12"...}
        sin = {sin_family = 2, sin_port = 50707, sin_addr = {s_addr =
2013265930},
  sin_zero = "\000\000\000\000\000\000\000"}
        res = -1396169004
        len = 16
        nounlock = 0
        recount = 0
        __PRETTY_FUNCTION__ = "sipsock_read"
#3  0x000000000040d348 in ast_io_wait (ioc=0x5ee050,
howlong=-1396169004) at io.c:267
        res = 1
        x = 0
        origcnt = 1
#4  0x00002aaaac8531fa in do_monitor (data=0x64517b) at chan_sip.c:8012
        ignore = 0
        respid = 0
        res = 1
        gotdest = 0
        iabuf = '\0' <repeats 15 times>
        af = {frametype = 5, subclass = 0, datalen = 0, samples = 0,
mallocd = 0, offset = 0, src = 0x0, data = 0x0,
  delivery = {tv_sec = 0, tv_usec = 0}, prev = 0x0, next = 0x0}
        __PRETTY_FUNCTION__ = "handle_request"
#2  0x00002aaaac84f6e2 in sipsock_read (id=0x64517b, fd=-1396169000,
events=255, ignore=0x3f) at chan_sip.c:7864
        req = {rlPart1 = 0x2aaaacc82660 "REGISTER", rlPart2 =
0x2aaaacc82669 "sip:10.0.0.104", len = 423,
  headers = 12, header = {0x2aaaacc82660 "REGISTER",
    0x2aaaacc82680 "Via: SIP/2.0/UDP
10.0.0.120:5062;branch=z9hG4bK-b87fef53",
    0x2aaaacc826b9 "From: <sip:820 at 10.0.0.104>;tag=8f217fcbf04b422do0",
0x2aaaacc826eb "To: <sip:820 at 10.0.0.104>",
    0x2aaaacc82704 "Call-ID: b343f8c3-48065d95 at 10.0.0.120",
0x2aaaacc8272a "CSeq: 1 REGISTER",
    0x2aaaacc8273b "Max-Forwards: 70", 0x2aaaacc8274c "Contact:
<sip:820 at 10.0.0.120:5062>;expires=3600",
    0x2aaaacc8277c "User-Agent: Sipura/SPA3000-2.0.11(GWg)",
0x2aaaacc827a3 "Content-Length: 0",
    0x2aaaacc827b5 "Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY,
OPTIONS, REFER",
    0x2aaaacc827f3 "Supported: x-sipura", 0x2aaaacc82807 "", 0x0
<repeats 51 times>}, lines = 0, line = {
    0x2aaaacc82807 "", 0x0 <repeats 63 times>},
  data = "REGISTER\000sip:10.0.0.104\000SIP/2.0\000Via: SIP/2.0/UDP
10.0.0.120:5062;branch=z9hG4bK-b87fef53\000From:
<sip:820 at 10.0.0.104>;tag=8f217fcbf04b422do0\000To:
<sip:820 at 10.0.0.104>\000Call-ID: b343f8c3-48065d95 at 10.0.0.12"...}
        sin = {sin_family = 2, sin_port = 50707, sin_addr = {s_addr =
2013265930},
  sin_zero = "\000\000\000\000\000\000\000"}
        res = -1396169004
        len = 16
        nounlock = 0
        recount = 0
        __PRETTY_FUNCTION__ = "sipsock_read"
#3  0x000000000040d348 in ast_io_wait (ioc=0x5ee050,
howlong=-1396169004) at io.c:267
        res = 1
        x = 0
        origcnt = 1
#4  0x00002aaaac8531fa in do_monitor (data=0x64517b) at chan_sip.c:8012
---Type <return> to continue, or q <return> to quit---
        res = -1396169004
        sip = (struct sip_pvt *) 0x3e8
        peer = (struct sip_peer *) 0x0
        t = 1126571834
        fastrestart = 0
        lastpeernum = -1
        curpeernum = 0
        reloading = 1000
        __PRETTY_FUNCTION__ = "do_monitor"
#5  0x00002aaaaaccabb9 in pthread_start_thread ()
from /lib/libpthread.so.0
No symbol table info available.
#6  0x00002aaaab43bf23 in clone () from /lib/libc.so.6
No symbol table info available.
Cannot access memory at address 0x2aaaacc85000
(gdb)

-- 
#Joseph



More information about the asterisk-dev mailing list