[asterisk-dev] Segfault Asterisk 1.2.31.1 on Debian Lenny AMD64

Stefan Schmidt sst at sil.at
Wed Apr 8 06:23:33 CDT 2009


Hello,

I´ve a Problem with an asterisk system running on Debian Lenny (5.0)
with a sangoma A108d Octo E1 Card (wanpip-3.3.15 driver), Libpri 1.2.8
and zaptel-1.2.27

Sometimes the asterisk exits with an segfault and in the core dumps i
cant see why. Because everytime it happens with another modul used.

Here are 3 core dumps of the segfault:

XXX replaces customer details like callnr.

Apr  3 07:18:25 voipgw kernel: [1941979.432417] asterisk[15843]:
segfault at 7f3b5f3daad0 ip 7f3ff4260de2 sp 40d76ac0 error 6 in
libpri.so.1.0[7f3ff4256000+23000]

Thread 1 (process 15843):
#0  0x00007f3ff4260de2 in pri_schedule_del (pri=0x7f3fdc000690,
id=-602280672) at prisched.c:123
#1  0x00007f3ff4268081 in q931_disconnect (pri=0x7f3fdc000690,
c=0x7f3fdc00bbf0, cause=16) at q931.c:2878
#2  0x00007f3ff4267a1a in pri_connect_timeout (data=0x7f3fdc00bbf0) at
q931.c:2740
#3  0x00007f3ff4260d3b in __pri_schedule_run (pri=0x2893d10,
tv=0x40d76ba0) at prisched.c:103
#4  0x00007f3ff4260d9c in pri_schedule_run (pri=0x2893d10) at prisched.c:115
#5  0x00007f3ff449cb6d in ?? () from /usr/lib/asterisk/modules/chan_zap.so
#6  0x00007f3ff8615fc7 in start_thread () from /lib/libpthread.so.0
#7  0x00007f3ff7a645ad in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()
------------
Apr  7 06:15:19 voipgw kernel: [2692143.544299] asterisk[25254]:
segfault at 48c17dd28 ip 7f9197cb91ba sp 41cd2470 error 4 in
libc-2.7.so[7f9197c43000+14a000]

Thread 1 (process 25254):
#0  0x00007f9197cb91ba in ?? () from /lib/libc.so.6
#1  0x00007f9197cbaa78 in malloc () from /lib/libc.so.6
#2  0x00007f91945141d0 in q931_getcall (pri=0x16f3d10, cr=1584) at
q931.c:2274
#3  0x00007f9194516b8d in q931_receive (pri=0x16f3d10, h=0x41cd27a4,
len=9) at q931.c:3156
#4  0x00007f919450d6ef in q921_handle_iframe (pri=0x16f3d10,
i=0x41cd27a0, len=13) at q921.c:496
#5  0x00007f919450df7b in __q921_receive_qualified (pri=0x16f3d10,
h=0x41cd27a0, len=13) at q921.c:725
#6  0x00007f919450e8ab in __q921_receive (pri=0x16f3d10, h=0x41cd27a0,
len=13) at q921.c:931
#7  0x00007f919450e8e9 in q921_receive (pri=0x16f3d10, h=0x41cd27a0,
len=15) at q921.c:939
#8  0x00007f919450ad17 in pri_check_event (pri=0x16f3d10) at pri.c:358
#9  0x00007f919474cc65 in ?? () from /usr/lib/asterisk/modules/chan_zap.so
#10 0x00007f91988c3fc7 in start_thread () from /lib/libpthread.so.0
#11 0x00007f9197d125ad in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()
------------------
Apr  8 10:29:23 voipgw kernel: [2923614.708237] asterisk[9253]:
segfault at 0 ip 4668c2 sp 408f2710 error 4 in asterisk[400000+eb000]

Thread 1 (process 9253):
#0  0x00000000004668c2 in ast_rtp_read (rtp=0x0) at rtp.c:453
#1  0x00007f08275b3dc5 in ?? () from /usr/lib/asterisk/modules/chan_sip.so
#2  0x0000000000424e32 in ast_read (chan=0x7f081001a5c0) at channel.c:1961
#3  0x000000000042b1b8 in ast_waitstream (c=0x7f081001a5c0,
breakon=0x7f082658cb45 "") at file.c:1016
#4  0x00007f082658c2f2 in ?? () from
/usr/lib/asterisk/modules/app_playback.so
#5  0x0000000000446e9a in pbx_extension_helper (c=0x7f081001a5c0,
con=<value optimized out>, context=0x7f081001a798 "xxx",
    exten=0x7f081001a88c "xxx", priority=73, label=<value optimized
out>, callerid=0x20bd770 "xxx", action=<value optimized out>)
    at pbx.c:574
#6  0x0000000000448009 in __ast_pbx_run (c=0x7f081001a5c0) at pbx.c:2250
#7  0x0000000000448ec9 in pbx_thread (data=0x0) at pbx.c:2537
#8  0x00007f082d064fc7 in start_thread () from /lib/libpthread.so.0
#9  0x00007f082c4b35ad in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

we are about to update to version 1.4 but we want to know if this
segfault could happen on 1.4 too cause its the 64bit lenny system or the
sangoma 64bit driver.

Best regards

Steve Smith




More information about the asterisk-dev mailing list