[OpenSER-Devel] SUBSCRIBE crash with -DDBG_QM_MALLOC

Juha Heinanen jh at tutpro.com
Fri Sep 14 15:48:52 CEST 2007


now my proxy crashed when it was compiled with -DDBG_QM_MALLOC.
contents of syslog is below and gdb where is below.

is this now enough info to find the problem or do you need the core dump
or full memory dump?

-- juha

Sep 14 15:09:08 tutpro /usr/sbin/openser[14775]: LOG: Handling in-dialog SUBSCR\
IBE from <sip:x at x.com> to <sip:x.x.x.x:5060;transport=udp>
Sep 14 15:09:08 tutpro /usr/sbin/openser[14775]: presence:get_stored_info: wron\
g sequence number;received: 32 - stored: 32
Sep 14 15:09:08 tutpro /usr/sbin/openser[14775]: presence:handle_subscribe: get\
ting stored info
Sep 14 15:09:08 tutpro /usr/sbin/openser[14775]: BUG: qm_free: freeing already \
freed pointer, first free: subscribe.c: get_stored_info(1049) - aborting
Sep 14 15:09:09 tutpro /usr/sbin/openser[14799]: ERROR: receive_fd: EOF on 11
Sep 14 15:09:09 tutpro /usr/sbin/openser[14770]: core:handle_sigs: child proces\
s 14775 exited by a signal 6
Sep 14 15:09:09 tutpro /usr/sbin/openser[14770]: core:handle_sigs: core was gen\
erated
Sep 14 15:09:09 tutpro /usr/sbin/openser[14770]: core:handle_sigs: terminating \
due to SIGCHLD
Sep 14 15:09:09 tutpro /usr/sbin/openser[14799]: core:sig_usr: signal 15 receiv\
ed
Sep 14 15:09:09 tutpro /usr/sbin/openser[14799]: Memory status (pkg):
Sep 14 15:09:09 tutpro /usr/sbin/openser[14799]: qm_status (0x8155b60):
Sep 14 15:09:09 tutpro /usr/sbin/openser[14799]:  heap size= 4194304
Sep 14 15:09:09 tutpro /usr/sbin/openser[14799]:  used= 367436, used+overhead=7\
73584, free=3420720
Sep 14 15:09:09 tutpro /usr/sbin/openser[14799]:  max used (+overhead)= 773584
Sep 14 15:09:09 tutpro /usr/sbin/openser[14799]: dumping all alloc'ed. fragment\
s:
...

gdb shows:

(gdb) where
#0  0xb7f09410 in ?? ()
#1  0xbfdd4bec in ?? ()
#2  0x00000006 in ?? ()
#3  0x000039b7 in ?? ()
#4  0xb7c3b811 in raise () from /lib/tls/i686/cmov/libc.so.6
#5  0xb7c3cfb9 in abort () from /lib/tls/i686/cmov/libc.so.6
#6  0x080bdc70 in qm_free (qm=0x8155b60, p=0x8209804,
    file=0xb770e63c "subscribe.c", func=0xb77106a3 "handle_subscribe",
    line=704) at mem/q_malloc.c:445
#7  0xb77082e3 in handle_subscribe (msg=0x8208440, str1=0x0, str2=0x0)
    at subscribe.c:704
#8  0x08052cf0 in do_action (a=0x8197e54, msg=0x8208440) at action.c:769
#9  0x08054ffa in run_action_list (a=0x8197e54, msg=0x8208440) at action.c:131
#10 0x08093827 in eval_expr (e=0x8197ed0, msg=0x8208440, val=0x0)
    at route.c:1077
#11 0x0809345d in eval_expr (e=0x8197f20, msg=0x8208440, val=0x0)
    at route.c:1393
#12 0x080933fc in eval_expr (e=0x8197f70, msg=0x8208440, val=0x0)
    at route.c:1398
#13 0x08052d36 in do_action (a=0x81984d8, msg=0x8208440) at action.c:670
#14 0x08054ffa in run_action_list (a=0x8197a9c, msg=0x8208440) at action.c:131
#15 0x0805475c in do_action (a=0x81986fc, msg=0x8208440) at action.c:687
#16 0x08054ffa in run_action_list (a=0x81986fc, msg=0x8208440) at action.c:131
#17 0x0805475c in do_action (a=0x8199e80, msg=0x8208440) at action.c:687
---Type <return> to continue, or q <return> to quit---
#18 0x08054ffa in run_action_list (a=0x819502c, msg=0x8208440) at action.c:131
#19 0x0805475c in do_action (a=0x819e270, msg=0x8208440) at action.c:687
#20 0x08054ffa in run_action_list (a=0x8192c54, msg=0x8208440) at action.c:131
#21 0x08055388 in run_top_route (a=0x8192c54, msg=0x8208440) at action.c:111
#22 0x08088372 in receive_msg (
    buf=0x81450e0 "SUBSCRIBE sip:x.x.x.x:5060;transport=udp SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.1.138:1434;branch=z9hG4bK-d87543-6b651171af21b927-1--d87543-;rport\r\nMax-Forwards: 69\r\nContact: <sip:x at 192.168.1.138"...,
    len=787, rcv_info=0xbfdd60c4) at receive.c:156
#23 0x080b91e7 in udp_rcv_loop () at udp_server.c:451
#24 0x08068a37 in main (argc=15, argv=0xbfdd6254) at main.c:788



More information about the Devel mailing list