[OpenSER-Devel] crash

Juha Heinanen jh at tutpro.com
Wed Mar 12 08:32:27 CET 2008


today i noticed this kind of (perhaps publish or db related) crash.

syslog:

Mar 12 09:28:04 rautu /usr/sbin/openser[8247]: LOG: Handling SUBSCRIBE to <sip:test at test.fi> 
Mar 12 09:28:04 rautu /usr/sbin/openser[8247]: ERROR:db_mysql:db_mysql_submit_query: driver error on query: Duplicate entry 'sip:test at test.fi-jh-test.fi-presence' for key 2 
Mar 12 09:28:04 rautu /usr/sbin/openser[8247]: ERROR:core:db_do_insert: error while submitting query 
Mar 12 09:28:04 rautu /usr/sbin/openser[8247]: ERROR:presence:insert_db_subs_auth: in sql insert 
Mar 12 09:28:04 rautu /usr/sbin/openser[8247]: ERROR:presence:handle_subscribe: while inserting record in watchers table 
Mar 12 09:28:04 rautu /usr/sbin/openser[8247]: ERROR: SUBSCRIBE to <sip:test at test.fi> failed 
Mar 12 09:28:22 rautu /usr/sbin/openser[8246]: INFO:core:handle_sigs: child process 8248 exited by a signal 11 

gdb:

(gdb) where
#0  0xb7c6555b in strlen () from /lib/tls/i686/cmov/libc.so.6
#1  0xb7740d8d in get_subs_db (pres_uri=0xbfceabd4, event=0xb5781bd0, 
    sender=0x0, s_array=0xbfceab48, n=0xbfceab44) at notify.c:1009
#2  0xb7741fed in get_subs_dialog (pres_uri=0xbfceabd4, event=0xb5781bd0, 
    sender=0x0) at notify.c:1130
#3  0xb7749400 in publ_notify (p=0x8205908, pres_uri=
      {s = 0x8205990 "sip:jh at test.fi", len = 14}, body=0xbfceb1a4, 
    offline_etag=0x0, rules_doc=0x0) at notify.c:1213
#4  0xb77509ad in update_presentity (msg=0x8204e30, presentity=0x8205908, 
    body=0xbfceb1a4, new_t=1, sent_reply=0xbfceb1b0, sphere=0x0)
    at presentity.c:523
#5  0xb7754a10 in handle_publish (msg=0x8204e30, sender_uri=0x0, str2=0x0)
    at publish.c:496
#6  0x08055262 in do_action (a=0x81c3e50, msg=0x8204e30) at action.c:833
#7  0x080578ea in run_action_list (a=0x81c3e50, msg=0x8204e30) at action.c:132
#8  0x0809fa0a in eval_expr (e=0x81c3eb8, msg=0x8204e30, val=0x0)
    at route.c:1072
#9  0x0809f483 in eval_expr (e=0x81c3ee0, msg=0x8204e30, val=0x0)
    at route.c:1379
#10 0x0809f417 in eval_expr (e=0x81c3f08, msg=0x8204e30, val=0x0)
    at route.c:1384
#11 0x080553c9 in do_action (a=0x81c4130, msg=0x8204e30) at action.c:688
#12 0x080578ea in run_action_list (a=0x81c3b60, msg=0x8204e30) at action.c:132
---Type <return> to continue, or q <return> to quit--- 
#13 0x08056d97 in do_action (a=0x81c42f0, msg=0x8204e30) at action.c:705
#14 0x080578ea in run_action_list (a=0x81c42f0, msg=0x8204e30) at action.c:132
#15 0x08056d97 in do_action (a=0x81c5670, msg=0x8204e30) at action.c:705
#16 0x080578ea in run_action_list (a=0x81c0ec8, msg=0x8204e30) at action.c:132
#17 0x08055fe7 in do_action (a=0x81b41c0, msg=0x8204e30) at action.c:112
#18 0x080578ea in run_action_list (a=0x81b34f8, msg=0x8204e30) at action.c:132
#19 0x08056d97 in do_action (a=0x81b4290, msg=0x8204e30) at action.c:705
#20 0x080578ea in run_action_list (a=0x81b2890, msg=0x8204e30) at action.c:132
#21 0x08055fe7 in do_action (a=0x81a82b0, msg=0x8204e30) at action.c:112
#22 0x080578ea in run_action_list (a=0x81a6ec8, msg=0x8204e30) at action.c:132
#23 0x08056d97 in do_action (a=0x81a8380, msg=0x8204e30) at action.c:705
#24 0x080578ea in run_action_list (a=0x81a68f0, msg=0x8204e30) at action.c:132
#25 0x08055fe7 in do_action (a=0x819ca38, msg=0x8204e30) at action.c:112
#26 0x080578ea in run_action_list (a=0x81922c0, msg=0x8204e30) at action.c:132
#27 0x08055fe7 in do_action (a=0x8191310, msg=0x8204e30) at action.c:112
#28 0x080578ea in run_action_list (a=0x818fc08, msg=0x8204e30) at action.c:132
#29 0x08057c99 in run_top_route (a=0x818fc08, msg=0x8204e30) at action.c:112
#30 0x08091b5d in receive_msg (
    buf=0x81631a0 "PUBLISH sip:jh at test.fi SIP/2.0\r\nVia: SIP/2.0/UDP 192.98.101.10:5020;rport;branch=z9hG4bKfgdwdpky\r\nMax-Forwards: 69\r\nProxy-Authorization: Digest username=\"jh\",realm=\"test.fi\",nonce=\"47d78730f93794ccae8"..., 
    len=791, rcv_info=0xbfced514) at receive.c:156
#31 0x080cf217 in udp_rcv_loop () at udp_server.c:438
---Type <return> to continue, or q <return> to quit---
#32 0x0806dd3f in main (argc=15, argv=Cannot access memory at address 0x5
) at main.c:779

-- juha




More information about the Devel mailing list