Hello,
the backtrace you got is not relevant, because it is from the main
process that is handling the singnal of the child process that crashed.
So the corefile from crashed process has been overwritten.
Can you enable one core file per process and try to reproduce? Then get
the backtrace from each core generated.
Cheers,
Daniel
On 11/02/14 12:38, Tuan Viet Nguyen wrote:
Hello,
Upon receipt an 502 Bad gateway, I have the following error then
Kamailio crashed
Feb 11 11:49:57 kamailio23 /usr/local/sbin/kamailio[28895]: WARNING:
tm [t_lookup.c:1564]: t_unref(): WARNING: script writer didn't release
transaction
Feb 11 11:50:03 kamailio23 /usr/local/sbin/kamailio[28926]: : <core>
[pass_fd.c:293]: receive_fd(): ERROR: receive_fd: EOF on 31
Feb 11 11:50:03 kamailio23 /usr/local/sbin/kamailio[28876]: ALERT:
<core> [main.c:788]: handle_sigs(): child process 28903 exited by a
signal 11
Feb 11 11:50:03 kamailio23 /usr/local/sbin/kamailio[28876]: ALERT:
<core> [main.c:791]: handle_sigs(): core was generated
(gdb) bt
#0 0x000000000053a81d in qm_free (qm=0x7fd6f962a000,
p=0x75d63ff100000000) at mem/q_malloc.c:476
#1 0x00007fd700c5581c in free_cell (dead_cell=0x7fd6f9777bf0) at
h_table.c:162
#2 0x00007fd700c56783 in free_hash_table () at h_table.c:443
#3 0x00007fd700c6981b in tm_shutdown () at t_funcs.c:122
#4 0x00000000004ee6f0 in destroy_modules () at sr_module.c:790
#5 0x0000000000463baa in cleanup (show_status=1) at main.c:573
#6 0x0000000000464c32 in shutdown_children (sig=15, show_status=1) at
main.c:715
#7 0x0000000000466223 in handle_sigs () at main.c:806
#8 0x000000000046a459 in main_loop () at main.c:1767
#9 0x000000000046ca85 in main (argc=5, argv=0x7fff2f13ec38) at
main.c:2566
(gdb) bt full
#0 0x000000000053a81d in qm_free (qm=0x7fd6f962a000,
p=0x75d63ff100000000) at mem/q_malloc.c:476
f = 0x75d63ff0fffffff0
size = 4880
next = 0x7fd6f98c5380
prev = 0x7fd6f9634840
__FUNCTION__ = "qm_free"
#1 0x00007fd700c5581c in free_cell (dead_cell=0x7fd6f9777bf0) at
h_table.c:162
b = 0x0
i = 1
rpl = 0x0
tt = 0x0
foo = 0x59e92da4
cbs = 0x0
cbs_tmp = 0x7fd6f98c5370
__FUNCTION__ = "free_cell"
#2 0x00007fd700c56783 in free_hash_table () at h_table.c:443
p_cell = 0x7fd6f9777bf0
tmp_cell = 0x7fd6f98fb9c0
i = 3084
#3 0x00007fd700c6981b in tm_shutdown () at t_funcs.c:122
__FUNCTION__ = "tm_shutdown"
#4 0x00000000004ee6f0 in destroy_modules () at sr_module.c:790
t = 0x7fd7022322f0
foo = 0x7fd702231cc0
#5 0x0000000000463baa in cleanup (show_status=1) at main.c:573
memlog = 32727
__FUNCTION__ = "cleanup"
#6 0x0000000000464c32 in shutdown_children (sig=15, show_status=1) at
main.c:715
__FUNCTION__ = "shutdown_children"
#7 0x0000000000466223 in handle_sigs () at main.c:806
chld = 0
chld_status = 139
memlog = 0
__FUNCTION__ = "handle_sigs"
#8 0x000000000046a459 in main_loop () at main.c:1767
i = 8
pid = 28926
si = 0x0
si_desc = "udp receiver child=7 sock=91.213.79.31:5060
<http://91.213.79.31:5060>\000\326\177", '\000' <repeats 18
times>,
"@\352\023/\377\177\000\000\244-\351Y\000\000\000\000\240mA\000\000\000\000\000\060\354\023/\377\177",
'\000' <repeats 18 times>,
"p\352\023/\377\177\000\000\030>K\000\000\000\000"
nrprocs = 8
__FUNCTION__ = "main_loop"
#9 0x000000000046ca85 in main (argc=5, argv=0x7fff2f13ec38) at
main.c:2566
cfg_stream = 0xc36010
c = -1
r = 0
tmp = 0x7fff2f13ec68 "\233\356\023/\377\177"
tmp_len = 0
port = 5
proto = 0
options = 0x5c7c18
":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"
ret = -1
seed = 3628627122
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0xbf
p = 0x4162c9 "H\203\304\b\303" <Address 0x4162ce out of bounds>
__FUNCTION__ = "main"
(gdb)
Regards,
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda