[Asterisk-Users] Realtime Problem = Segmentation faults

Jose R. Ortiz Ubarri cheo at hpcf.upr.edu
Thu Mar 17 12:24:00 MST 2005


Hi:
    A very nice guy asked me for a trace:  (I hope this is what I was 
asked for)

from /var/log/messages:

Mar 17 14:04:23 NOTICE[24649]: Registered Config Engine mysql
Mar 17 14:04:23 WARNING[24649]: Unable to get our IP address, Skinny 
disabled
Mar 17 14:04:57 NOTICE[24666]: Registered Config Engine mysql
Mar 17 14:04:58 WARNING[24666]: Unable to get our IP address, Skinny 
disabled
Mar 17 14:07:48 NOTICE[24696]: Registered Config Engine mysql
Mar 17 14:07:48 WARNING[24696]: Unable to get our IP address, Skinny 
disabled


from the output of asterisk -cvvvvvvvvvvvvvvvv:
Asterisk Ready
CLI> Segmentation Fault


 From gdb:Starting program: /usr/sbin/asterisk -f
[Thread debugging using libthread_db enabled]
[New Thread -151050560 (LWP 24772)]
[New Thread -151053392 (LWP 24775)]
[Thread -151053392 (LWP 24775) exited]
[New Thread -151053392 (LWP 24776)]
[New Thread -151376976 (LWP 24777)]
[New Thread -151782480 (LWP 24778)]
Mar 17 14:13:20 NOTICE[24772]: config.c:847 ast_config_engine_register: 
Registered Config Engine mysql
[New Thread -152441936 (LWP 24780)]
[New Thread -154137680 (LWP 24781)]
[New Thread -154567760 (LWP 24782)]
[New Thread -154862672 (LWP 24783)]
Mar 17 14:13:21 WARNING[24772]: chan_skinny.c:2904 reload_config: Unable 
to get
our IP address, Skinny disabled
[New Thread -155186256 (LWP 24784)]
[New Thread -156058704 (LWP 24785)]
[New Thread -156439632 (LWP 24786)]
[New Thread -156812368 (LWP 24787)]
[New Thread -157078608 (LWP 24788)]
[New Thread -159388752 (LWP 24789)]
[Thread -159388752 (LWP 24789) exited]
[New Thread -159388752 (LWP 24790)]
[Thread -159388752 (LWP 24790) exited]
[New Thread -159654992 (LWP 24791)]
[Thread -159654992 (LWP 24791) exited]
[New Thread -159654992 (LWP 24792)]
[Thread -159654992 (LWP 24792) exited]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -152441936 (LWP 24780)]
0x007642b8 in strcasecmp () from /lib/tls/libc.so.6


(gdb) backtrace
#0  0x007642b8 in strcasecmp () from /lib/tls/libc.so.6
#1  0xf6eb58c0 in build_peer (name=0x0, v=0x95fa370, realtime=0)
    at chan_sip.c:9255
#2  0xf6eb67b0 in find_peer (peer=0x0, sin=0x9642fd4, realtime=1)
    at chan_sip.c:1222
#3  0xf6ebea77 in check_user_full (p=0x9642e78, req=0xf6e9bb50,
    cmd=0xf6e9bd64 "SUBSCRIBE", uri=0xf6e9bd6e 
"sip:1002 at 136.145.54.70:5060",
    reliable=0, sin=0xf6e9bb40, ignore=0, mailbox=0xf6e920a0 "",
    mailboxlen=106) at chan_sip.c:5844
#4  0xf6ec3129 in handle_request (p=0x9642e78, req=0xf6e9bb50, 
sin=0xf6e9bb40,
    recount=0x6a, nounlock=0xf6e9b9c8) at chan_sip.c:8384
#5  0xf6ec5281 in sipsock_read (id=0x960dc50, fd=13, events=1, ignore=0x0)
    at chan_sip.c:8598
#6  0x0805378f in ast_io_wait (ioc=0x960dc10, howlong=106) at io.c:267
#7  0xf6ec89b2 in do_monitor (data=0x0) at chan_sip.c:8745
#8  0x008661d5 in start_thread () from /lib/tls/libpthread.so.0
#9  0x007c02da in clone () from /lib/tls/libc.so.6
(gdb)

If I can provide more information please let me know?
Do you need a core dump file?

Meanwhile I'll update glibc...

Thanks in advance,
JO



Matthew Boehm wrote:

>Jose R. Ortiz Ubarri wrote:
>  
>
>> But if I
>>load the module from boot or from the asterisk command load
>>res_config_mysql.so then I get the Segmentation fault again.
>>    
>>
>
>Where is your backtrace? I don't see a backtrace anywhere.
>
>"Hi. My phone isn't working but I'm not going to let you see what I did to
>cause it to stop working."
>
>Send backtrace from the core file when it crashes.
>
>-Matthew
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>  
>


-- 
Jose R. Ortiz Ubarri (CHEO), CS
System Administrator / Programmer
High Performance Computing facility - UPR
Email: Jose.Ortiz at hpcf.upr.edu|cheo at hpcf.upr.edu
Phone: 787-758-3054
Fax: 787-758-3058




More information about the asterisk-users mailing list