[Asterisk-Dev] Segfault

Hans Petter Selasky hselasky at c2i.net
Sun Aug 28 13:11:26 MST 2005


On Sunday 28 August 2005 19:51, Tamas Jalsovszky wrote:
> Hello,
>
> I got a segmentation fault with:
> Asterisk CVS-NHEAD-08/17/05-20:51:51
> running on Linux-2.6.12.3.
>
> #0  local_hangup (ast=0x81fd8e0) at chan_local.c:403
> 403                             cur = cur->next;
> (gdb) bt full
> #0  local_hangup (ast=0x81fd8e0) at chan_local.c:403
                    ^^^ could you have dumped "ast->pvt" and "ast->pvt->pvt" ?
                    ^^^ can you find out if this structure has been freed ?

>         p = (struct local_pvt *) 0x81fdd80
>         isoutbound = 1080412952
>         f = {frametype = 4, subclass = 1, datalen = 0, samples = 0,
> mallocd = 0, offset = 0, src = 0x0, data = 0x0,
>   delivery = {tv_sec = 0, tv_usec = 0}, prev = 0x0, next = 0x0}
>         cur = (struct local_pvt *) 0xe0
>         prev = (struct local_pvt *) 0xe0
>         ochan = (struct ast_channel *) 0x0
>         glaredetect = 0
> #1  0x0805f31d in ast_hangup (chan=0x81fd8e0) at channel.c:1025
                                ^^^^
>         res = 0
> #2  0x0808c09f in __ast_pbx_run (c=0x81fd8e0) at pbx.c:2386
>         digit = -1
>         exten = '\0' <repeats 255 times>
>         pos = 0
>         waittime = 0
>         res = 0
> #3  0x0808c9f8 in pbx_thread (data=0x81fd8e0) at pbx.c:2436
> No locals.
> #4  0x40025bbf in pthread_start_thread () from /lib/libpthread.so.0
> No symbol table info available.
> #5  0x401e295a in clone () from /lib/libc.so.6
> No symbol table info available.
> (gdb) thread apply all bt
>
> Thread 103 (process 2008):
> #0  0x00000246 in ?? ()
> Cannot access memory at address 0x0
> 403                             cur = cur->next;
>
>
> Any hint?

This might be a manifestation of the "hangup race" problem.

--HPS



More information about the asterisk-dev mailing list