[Devel] cvs coredump

Raymond Chen rchen at broadz.com
Sat Jun 24 08:57:17 CEST 2006


Hi Bogdan,

using lastest CVS today, invite message coredump seems to go away.  but 
I have another core dump when using sipura 2000 to register.

(gdb) bt
#0  match_hash_table (table=0x3712b0, msg=0x8146b20) at hash_func.h:43
#1  0xf6d90337 in allow_trusted (_msg=0x8146b20, str1=0x0, str2=0x0) at 
trusted.c:363
#2  0x08050c94 in do_action (a=0x81317e0, msg=0x8146b20) at action.c:700
#3  0x08052301 in run_action_list (a=0x81317e0, msg=0x8146b20) at 
action.c:89
#4  0x0807e15a in eval_expr (e=0x8131810, msg=0x8146b20) at route.c:624
#5  0x0807e0d9 in eval_expr (e=0x8131830, msg=0x8146b20) at route.c:692
#6  0x0807e27e in eval_expr (e=0x81318c8, msg=0x8146b20) at route.c:686
#7  0x0804fe61 in do_action (a=0x8132678, msg=0x8146b20) at action.c:616
#8  0x08052151 in do_action (a=0x81326a8, msg=0x8146b20) at action.c:89
#9  0x08052361 in run_top_route (a=0x812bee0, msg=0x8146b20) at action.c:89
#10 0x08077126 in receive_msg (
    buf=0x80f44a0 "REGISTER sip:xxx.xxx.xxx.xxx:80 SIP/2.0\r\nVia: 
SIP/2.0/UDP 192.168.0.201:8077;branch=z9hG4bK-c0fa7068\r\nFrom: 61241203 
<sip:61241203 at xxx.xxx.xxx.xxx:80>;tag=d171f31c98b5b1o0\r\nTo: 61241203 
"..., len=533, rcv_info=0xfefe1210)
    at receive.c:155
#11 0x0809669c in udp_rcv_loop () at udp_server.c:465
#12 0x080662b6 in main_loop () at main.c:923
#13 0x08066aa5 in main (argc=1, argv=0xfefe13f4) at main.c:1475
(gdb) p *np
Cannot access memory at address 0x517ef

thanks

Ray

Bogdan-Andrei Iancu wrote:
> Hi Ray,
>
> it looks like a different story. Anyhow, can you print the content of 
> the "np" pointer variable (p *np)....
>
> it this something you can reproduce ?
>
> thanks and regards,
> bogdan
>
> Raymond Chen wrote:
>
>> Dear all
>>
>> I have encountered coredump with yesterday's CVS, Looks like it's the 
>> same issue discussed in SER forum 
>> http://lists.iptel.org/pipermail/serdev/2004-November/003312.html, 
>> please advise.
>>
>> thanks
>>
>> Ray
>>
>> Reading symbols from shared object read from target memory...done.
>> Loaded system supplied DSO at 0xbb2000
>> Core was generated by `openser'.
>> Program terminated with signal 11, Segmentation fault.
>>
>> warning: svr4_current_sos: Can't read pathname for load map: 
>> Input/output error
>>
>> Reading symbols from /lib/libdl.so.2...done.
>> Loaded symbols for /lib/libdl.so.2
>> Reading symbols from /lib/libresolv.so.2...done.
>> Loaded symbols for /lib/libresolv.so.2
>> Reading symbols from /lib/libc.so.6...done.
>> Loaded symbols for /lib/libc.so.6
>> Reading symbols from /lib/ld-linux.so.2...done.
>> Loaded symbols for /lib/ld-linux.so.2
>> Reading symbols from /usr/local/lib/openser/modules/mysql.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/mysql.so
>> Reading symbols from /lib/libm.so.6...done.
>> Loaded symbols for /lib/libm.so.6
>> Reading symbols from /usr/lib/mysql/libmysqlclient.so.15...done.
>> Loaded symbols for /usr/lib/mysql/libmysqlclient.so.15
>> Reading symbols from /usr/lib/libz.so.1...done.
>> Loaded symbols for /usr/lib/libz.so.1
>> Reading symbols from /lib/libcrypt.so.1...done.
>> Loaded symbols for /lib/libcrypt.so.1
>> Reading symbols from /lib/libnsl.so.1...done.
>> Loaded symbols for /lib/libnsl.so.1
>> Reading symbols from /lib/libssl.so.6...done.
>> Loaded symbols for /lib/libssl.so.6
>> Reading symbols from /lib/libcrypto.so.6...done.
>> Loaded symbols for /lib/libcrypto.so.6
>> Reading symbols from /usr/lib/libgssapi_krb5.so.2...done.
>> Loaded symbols for /usr/lib/libgssapi_krb5.so.2
>> Reading symbols from /usr/lib/libkrb5.so.3...done.
>> Loaded symbols for /usr/lib/libkrb5.so.3
>> Reading symbols from /lib/libcom_err.so.2...done.
>> Loaded symbols for /lib/libcom_err.so.2
>> Reading symbols from /usr/lib/libk5crypto.so.3...done.
>> Loaded symbols for /usr/lib/libk5crypto.so.3
>> Reading symbols from /usr/lib/libkrb5support.so.0...done.
>> Loaded symbols for /usr/lib/libkrb5support.so.0
>> Reading symbols from /usr/local/lib/openser/modules/sl.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/sl.so
>> Reading symbols from /usr/local/lib/openser/modules/tm.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/tm.so
>> Reading symbols from /usr/local/lib/openser/modules/rr.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/rr.so
>> Reading symbols from /usr/local/lib/openser/modules/maxfwd.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/maxfwd.so
>> Reading symbols from /usr/local/lib/openser/modules/usrloc.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/usrloc.so
>> Reading symbols from /usr/local/lib/openser/modules/registrar.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/registrar.so
>> Reading symbols from /usr/local/lib/openser/modules/auth.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/auth.so
>> Reading symbols from /usr/local/lib/openser/modules/auth_db.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/auth_db.so
>> Reading symbols from /usr/local/lib/openser/modules/exec.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/exec.so
>> Reading symbols from /usr/local/lib/openser/modules/group.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/group.so
>> Reading symbols from /usr/local/lib/openser/modules/textops.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/textops.so
>> Reading symbols from /usr/local/lib/openser/modules/nathelper.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/nathelper.so
>> Reading symbols from /usr/local/lib/openser/modules/uri.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/uri.so
>> Reading symbols from /usr/local/lib/openser/modules/uri_db.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/uri_db.so
>> Reading symbols from /usr/local/lib/openser/modules/domain.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/domain.so
>> Reading symbols from /usr/local/lib/openser/modules/xlog.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/xlog.so
>> Reading symbols from /usr/local/lib/openser/modules/options.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/options.so
>> Reading symbols from /usr/local/lib/openser/modules/speeddial.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/speeddial.so
>> Reading symbols from /usr/local/lib/openser/modules/avpops.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/avpops.so
>> Reading symbols from /usr/local/lib/openser/modules/lcr.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/lcr.so
>> Reading symbols from /usr/local/lib/openser/modules/alias_db.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/alias_db.so
>> Reading symbols from /usr/local/lib/openser/modules/uac.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/uac.so
>> Reading symbols from 
>> /usr/local/lib/openser/modules/permissions.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/permissions.so
>> Reading symbols from /usr/local/lib/openser/modules/path.so...done.
>> Loaded symbols for /usr/local/lib/openser/modules/path.so
>> Reading symbols from /lib/libnss_files.so.2...done.
>> Loaded symbols for /lib/libnss_files.so.2
>> #0 0x00213991 in match_hash_table (table=0xb60e3aa8, msg=0x8163ff8) 
>> at hash.c:215
>> 215 if ((np->src_ip.len == src_ip.len) &&
>> (gdb) bt
>> #0 0x00213991 in match_hash_table (table=0xb60e3aa8, msg=0x8163ff8) 
>> at hash.c:215
>> #1 0x00219817 in allow_trusted (_msg=0x8163ff8, str1=0x0, str2=0x0) 
>> at trusted.c:363
>> #2 0x0805070a in do_action (a=0x814fc28, msg=0x8163ff8) at action.c:700
>> #3 0x08052353 in run_action_list (a=0x814fc28, msg=0x8163ff8) at 
>> action.c:89
>> #4 0x080877b9 in eval_expr (e=0x814fc68, msg=0x8163ff8) at route.c:624
>> #5 0x0808762f in eval_expr (e=0x814fc98, msg=0x8163ff8) at route.c:692
>> #6 0x080506a7 in do_action (a=0x8150358, msg=0x8163ff8) at action.c:616
>> #7 0x08051c6b in do_action (a=0x8150508, msg=0x8163ff8) at action.c:89
>> #8 0x080523b1 in run_top_route (a=0x8150508, msg=0x8163ff8) at 
>> action.c:89
>> #9 0x0807dab9 in receive_msg (
>> buf=0x810d160 "INVITE sip:010114 at xxx.xxx.xxx.xxx:5066 SIP/2.0\r\nTo: 
>> <sip:010114 at xxx.xxx.xxx.xxx>\r\nFrom: Ray 
>> <sip:5968878 at xxx.xxx.xxx.xxx>;tag=4938167b\r\nVia: SIP/2.0/UDP 
>> 192.168.1.168:9799;branch=z9hG4bK"..., len=758, rcv_info=0xbfc57278)
>> at receive.c:155
>> #10 0x080a1789 in udp_rcv_loop () at udp_server.c:465
>> #11 0x0806a0f1 in main_loop () at main.c:806
>> #12 0x0806c40b in main (argc=1, argv=0xbfc57464) at main.c:1475
>> (gdb) bt full
>> #0 0x00213991 in match_hash_table (table=0xb60e3aa8, msg=0x8163ff8) 
>> at hash.c:215
>> uri_string = 
>> "sip:5968878 at xxx.xxx.xxx.xxx\000\000\000\000\000\000\000\000Z?\000?214F 
>> \000r%-000\000\000\000\000??000??000??000??000\001\000\000\000(g?7 
>> \232?000Lg???000\001\000\000\0007\232?000\\g???000\224f?\000\000\000\000 
>> ??$\226?000\000g?r%-000\000\000\000\000-?\000-?\000??000\234g??\016\bxg? 
>> I\222?000\234g?'?\000??\000\000\000\000\000\000\000\000\020\000\000\000? 
>> ?[f?\000\000\000\000\000\000\000\000???"...
>> preg = {buffer = 0xfbad8004 <Address 0xfbad8004 out of bounds>, 
>> allocated = 58720, used = 0, syntax = 0,
>> fastmap = 0xbfc544c8 "??, translate = 0xbfc544ea "?, re_nsub = 
>> 3217384648, can_be_null = 0, regs_allocated = 0,
>> fastmap_accurate = 0, no_sub = 0, not_bol = 1, not_eol = 1, 
>> newline_anchor = 0}
>> np = (struct trusted_list *) 0x38363033
>> val = {n = 0, s = {s = 0x0, len = 0}}
>> #1 0x00219817 in allow_trusted (_msg=0x8163ff8, str1=0x0, str2=0x0) 
>> at trusted.c:363
>> result = Variable "result" is not available.
>>
>>
>>
>>
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/devel
>>
>
>
>
>

-- 
-------------- next part --------------
Skipped content of type multipart/related


More information about the Devel mailing list