<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
send also the version 'kamailio -V' to match the proper sources.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 7/17/12 7:11 PM, Bruno Bresciani
wrote:<br>
</div>
<blockquote
cite="mid:CAKv6MrYkEVCs8taSaEXNcV2ohi6yQSLHMAWpAqEc_FK4HAhXFw@mail.gmail.com"
type="cite">Hi all,<br>
<br>
I observed two at 0x08173bf0 in fm_realloc (qm=0xb5f7d000,
p=0xb61f0bc0, size=0) at mem/f_malloc.c:536.<br>
<br>
I don't know exactly what may be caused this core because the
debug of kamailio is disabled, but looking at backtrace (gdb) and
source code I could notice a relationship with TLS connection
establishment (handshake). Other important fact is that core was
generated by the kamalio itself with signal 6 (abort) because it
can't find the pointer to memory realloc.<br>
I'd like to know if someone already observed this issue and if my
analyse above is correct?<br>
<br>
Bellow is backtrace full with gdb:<br>
<br>
Core was generated by `/home2/local/kamailio/sbin/kamailio -P
/var/run/kamailio.pid'.<br>
Program terminated with signal 6, Aborted.<br>
#0 0x00f30402 in __kernel_vsyscall ()<br>
(gdb)<br>
(gdb)<br>
(gdb)<br>
(gdb)<br>
(gdb) bt full<br>
#0 0x00f30402 in __kernel_vsyscall ()<br>
No symbol table info available.<br>
#1 0x009fec10 in raise () from /lib/libc.so.6<br>
No symbol table info available.<br>
#2 0x00a00521 in abort () from /lib/libc.so.6<br>
No symbol table info available.<br>
#3 0x08173bf0 in fm_realloc (qm=0xb5f7d000, p=0xb61f0bc0, size=0)
at mem/f_malloc.c:536<br>
f = (struct fm_frag *) 0xb61f0bb8<br>
pf = <value optimized out><br>
orig_size = 18<br>
L=Ãb¬Ã2n = (struct fm_frag *) 0xb61f0bd2<br>
ptr = <value optimized out><br>
hash = 23548<br>
#4 0x0051a87f in ser_realloc (ptr=0xb61f0bc0, size=32) at
../../mem/shm_mem.h:266<br>
No locals.<br>
#5 0x00460295 in OPENSSL_cleanse () from /lib/libcrypto.so.6<br>
No symbol table info available.<br>
#6 0x004609f7 in CRYPTO_realloc () from /lib/libcrypto.so.6<br>
No symbol table info available.<br>
#7 0x003efb22 in sk_insert () from /lib/libcrypto.so.6<br>
No symbol table info available.<br>
#8 0x003efbaa in sk_push () from /lib/libcrypto.so.6<br>
No symbol table info available.<br>
#9 0x007c2ac3 in ssl_bytes_to_cipher_list () from
/lib/libssl.so.6<br>
No symbol table info available.<br>
#10 0x007aa9f3 in ssl3_get_client_hello () from /lib/libssl.so.6<br>
No symbol table info available.<br>
#11 0x007ab815 in ssl3_accept () from /lib/libssl.so.6<br>
No symbol table info available.<br>
#12 0x007c1c3a in SSL_accept () from /lib/libssl.so.6<br>
No symbol table info available.<br>
#13 0x005278e3 in tls_accept (c=0xb621af88, error=0xbf91dfc8) at
tls_server.c:346<br>
ret = <value optimized out><br>
ssl = (SSL *) 0xb61c1878<br>
cert = <value optimized out><br>
tls_c = (struct tls_extra_data *) 0xb6208e58<br>
tls_log = <value optimized out><br>
#14 0x0052da8e in tls_read_f (c=0xb621af88, flags=0xbf91e200) at
tls_server.c:1028<br>
r = (struct tcp_req *) 0xb621affc<br>
bytes_free = 4095<br>
bytes_read = 70<br>
read_size = 4095<br>
ssl_error = 0<br>
ssl_read = 0<br>
ssl = (SSL *) 0xb61c1878<br>
rd_buf =
"\026\003\001\000A\001\000\000=\003\001Oÿ\v¡ywP\fkÃDÃ<br>
0/\000\a\000\005\001\000ÃÃÃï000\000\026\0009\0008\0005\000\026\000\023\000\n\0003\0002\00<br>
202i<ä<åþ\031ì234 \237ê030Y){lѶ"...06Ã'Ãr9ìë¸{[©\t\205\037\036ÿHPH5µ\t(é32Ã027æò036¾\"\rÔ¤YÃ215uº\027)ö000ñ215\vÃà éEa\023xéJ\206T\204CÃ
wr_buf =
"\027\003\001\003 w²'\016ѼÃ033ÃLÃ021Ã)Ã\220hnL¦\020Xê\236\200\tIhøSf\234Ã\rÃ<br>
?¯¼\024FÃ\200ª/\2264RÃaäIpXȬÃ035äQh\211Ã026ý4ÃU+\asr£/`¤Oû1AʹqUܿ·v±ü\205"...<br>
rd = {buf = 0xbf90dfa4 "\026\003\001", pos = 70, used =
70, size = 65536}<br>
wr = {<br>
buf = 0xbf8fdfa4
"\027\003\001\003 w²'\016ѼÃ033ÃLÃ021Ã)Ã\220hnL¦\020Xê\236\200\tIhøSf\234Ã\rÃ<br>
?¯¼\024FÃ\200ª/\2264RÃaäIpXȬÃ035äQh\211Ã026ý4ÃU+\asr£/`¤Oû1AʹqUܿ·v±ü\205"...,
pos = 0, used = 0,<br>
size = 65536}<br>
tls_c = (struct tls_extra_data *) 0xb6208e58<br>
enc_rd_buf = (struct tls_rd_buf *) 0x0<br>
n = 0<br>
flush_flags = <value optimized out><br>
err_src = 0x541a83 "TLS read:"<br>
x = <value optimized out><br>
#15 0x08158ade in tcp_read_headers (c=0xb621af88,
read_flags=0xbf91e200) at tcp_read.c:406<br>
bytes = -1<br>
remaining = <value optimized out><br>
p = <value optimized out><br>
r = (struct tcp_req *) 0xb621affc<br>
#16 0x08158fd4 in tcp_read_req (con=0xb621af88,
bytes_read=0xbf91e204, read_flags=0xbf91e200) at tcp_read.c:871<br>
bytes = <value optimized out><br>
total_bytes = 0<br>
resp = <value optimized out><br>
size = <value optimized out><br>
req = (struct tcp_req *) 0xb621affc<br>
dst = {send_sock = 0x1, to = {s = {sa_family = 57540,
sa_data = "\221¿\020\000\000\000\000\000\000\000\020\000\000"},
sin = {sin_family = 57540,<br>
sin_port = 49041, sin_addr = {s_addr = 16}, sin_zero =
"\000\000\000\000\020\000\000"}, sin6 = {sin6_family = 57540,
sin6_port = 49041,<br>
sin6_flowinfo = 16, sin6_addr = {in6_u = {u6_addr8 =
"\000\000\000\000\020\000\000\000\001\000\000\000\001\000\000",
u6_addr16 = {0, 0, 16, 0, 1, 0,<br>
1, 0}, u6_addr32 = {0, 16, 1, 1}}}, sin6_scope_id =
12}}, id = -1080958468, proto = 4 '\004', send_flags = {f = 0
'\0', blst_imask = 0 '\0'}}<br>
c = 10 '\n'<br>
#17 0x08159a0f in handle_io (fm=0x83296b0, events=1, idx=-1) at
tcp_read.c:1150<br>
ret = 4<br>
n = 4<br>
read_flags = 1<br>
con = (struct tcp_connection *) 0xb621af88<br>
s = 12<br>
resp = <value optimized out><br>
t = <value optimized out><br>
#18 0x0815d653 in tcp_receive_loop (unix_sock=35) at
io_wait.h:1091<br>
No locals.<br>
---Type <return> to continue, or q <return> to quit---<br>
#19 0x0812885b in tcp_init_children () at tcp_main.c:4819<br>
r = 3<br>
reader_fd_1 = 35<br>
pid = <value optimized out><br>
si = <value optimized out><br>
#20 0x080ad412 in main_loop () at main.c:1632<br>
i = 4<br>
pid = <value optimized out><br>
si = (struct socket_info *) 0x0<br>
si_desc = "udp receiver child=3 sock=<a
moz-do-not-send="true" href="http://192.168.166.31:5060">192.168.166.31:5060</a>\000\221¿\002\000\000\000/\200\220\000\001\000\000\000\000\000H\000¨ä21¿\001\000\000\000°¶è026¶\000\000\000\000\000õ\030s2\b\002\000\000\000âf\b\000õ\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000ÿÿÿÿ¸ä21¿"<br>
#21 0x080afbe7 in main (argc=3, argv=dwarf2_read_address:
Corrupted DWARF expression.<br>
) at main.c:2398<br>
cfg_stream = (FILE *) 0x8a2d008<br>
c = <value optimized out><br>
r = 0<br>
tmp = 0xbf91e674
"\212þ\221¿\233þ\221¿°þ\221¿»þ\221¿Ã\221¿ù1¿\020ÿ\221¿Dÿ\221¿Lÿ\221¿Wÿ\221¿]ÿ\221¿oÿ\221¿{ÿ\221¿\202ÿ\221
tmp_len = 10492229<br>
port = 136192361<br>
proto = -1080957480<br>
ret = <value optimized out><br>
seed = 21782655<br>
rfd = 4<br>
debug_save = <value optimized out><br>
debug_flag = 0<br>
dont_fork_cnt = 0<br>
n_lst = <value optimized out><br>
p = <value optimized out><br>
<br>
<br>
Best Regards<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a>
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kpw">http://asipto.com/u/kpw</a></pre>
</body>
</html>