<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I tracked down the path, which is confirmed by this trace. From the
logs can be seen that it is just next chunk in memory.<br>
<br>
Can you send the output from gdb of:<br>
<br>
frame 2<br>
p *f<br>
<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 20/10/14 12:16, 张顺通 wrote:<br>
</div>
<blockquote
cite="mid:CA+igrvxgLFEGeJ3BZ1o=winoZ4AQDwTaEk2Q4+UqvTN0bMnbug@mail.gmail.com"
type="cite">
<div dir="ltr">4.2.0 have a core<br>
<br>
#0 0x00007ffff7488265 in raise () from /lib64/libc.so.6<br>
No symbol table info available.<br>
#1 0x00007ffff7489d10 in abort () from /lib64/libc.so.6<br>
No symbol table info available.<br>
#2 0x0000000000615b74 in qm_debug_frag (qm=0x7ffff6c55010,
f=0x7ffff6cdcf08) at mem/q_malloc.c:161<br>
__FUNCTION__ = "qm_debug_frag"<br>
#3 0x0000000000616d87 in qm_malloc (qm=0x7ffff6c55010, size=56,
file=0x7ffff5fedef8 "<core>: db_res.c",
func=0x7ffff5fee288 "db_new_result", line=112)<br>
at mem/q_malloc.c:388<br>
f = 0x7ffff6cdcf08<br>
hash = 2057<br>
list_cntr = 1<br>
__FUNCTION__ = "qm_malloc"<br>
#4 0x00007ffff5fdaa2f in db_new_result () at db_res.c:112<br>
r = 0x0<br>
__FUNCTION__ = "db_new_result"<br>
#5 0x00007ffff6a386d6 in db_mysql_new_result () at km_res.c:235<br>
obj = 0x0<br>
__FUNCTION__ = "db_mysql_new_result"<br>
#6 0x00007ffff6a29c7a in db_mysql_store_result
(_h=0x7ffff6cb4e78, _r=0x7fffffffdf38) at km_dbase.c:227<br>
code = -165731152<br>
__FUNCTION__ = "db_mysql_store_result"<br>
#7 0x00007ffff5fd3516 in db_do_query_internal
(_h=0x7ffff6cb4e78, _k=0x7fffffffdf70, _op=0x0,
_v=0x7fffffffdf40, _c=0x7fffffffdf60, _n=1, _nc=1, _o=0x0, <br>
_r=0x7fffffffdf38, val2str=0x7ffff6a39374
<db_mysql_val2str>, submit_query=0x7ffff6a2825c
<db_mysql_submit_query>, <br>
store_result=0x7ffff6a2998c <db_mysql_store_result>,
_l=0) at db_query.c:137<br>
tmp = 32767<br>
off = 63<br>
ret = 23<br>
__FUNCTION__ = "db_do_query_internal"<br>
#8 0x00007ffff5fd3fbd in db_do_query (_h=0x7ffff6cb4e78,
_k=0x7fffffffdf70, _op=0x0, _v=0x7fffffffdf40,
_c=0x7fffffffdf60, _n=1, _nc=1, _o=0x0, _r=0x7fffffffdf38, <br>
val2str=0x7ffff6a39374 <db_mysql_val2str>,
submit_query=0x7ffff6a2825c <db_mysql_submit_query>,
store_result=0x7ffff6a2998c <db_mysql_store_result>)<br>
at db_query.c:156<br>
No locals.<br>
#9 0x00007ffff6a2b04e in db_mysql_query (_h=0x7ffff6cb4e78,
_k=0x7fffffffdf70, _op=0x0, _v=0x7fffffffdf40,
_c=0x7fffffffdf60, _n=1, _nc=1, _o=0x0, _r=0x7fffffffdf38)<br>
at km_dbase.c:323<br>
No locals.<br>
#10 0x00007ffff5fcd6e9 in db_table_version (dbf=0x7ffff2d1e3c0,
connection=0x7ffff6cb4e78, table=0x7ffff2d1d990) at db.c:400<br>
key = {0x7fffffffdf20}<br>
col = {0x7fffffffdf10}<br>
val = {{type = DB1_STR, nul = 0, free = -167987365, val
= {int_val = -223246127, ll_val = 140737265109201, double_val =
6.9533447780108125e-310, <br>
time_val = 140737265109201, string_val =
0x7ffff2b188d1 "dispatcher", str_val = {s = 0x7ffff2b188d1
"dispatcher", len = 10}, blob_val = {s = 0x7ffff2b188d1
"dispatcher", len = 10}, bitmap_val = 4071721169}}}<br>
res = 0x0<br>
ver = 0x0<br>
version = 0x9c7be0<br>
tmp1 = {s = 0x7ffff5feb0e1 "table_name", len = 10}<br>
tmp2 = {s = 0x7ffff5feb0ec "table_version", len = 13}<br>
ret = 8<br>
__FUNCTION__ = "db_table_version"<br>
#11 0x00007ffff2aeab2f in init_ds_db () at dispatch.c:666<br>
ret = 297<br>
__FUNCTION__ = "init_ds_db"<br>
#12 0x00007ffff2b04434 in mod_init () at dispatcher.c:317<br>
avp_spec = {type = 48, getf = 0x7fffffffe190, setf =
0x7fffffffe0d0, pvp = {pvn = {type = 16, nfree = 0x3000000028, u
= {isname = {type = -7760, name = {<br>
n = 7292328, s = {s = 0x6f45a8 "DEBUG", len
= 7555677}, re = 0x6f45a8}}, dname = 0x3ffffe1b0}}, pvi = {type
= 7555621, u = {ival = -223246127, <br>
dval = 0x7ffff2b188d1}}}, trans = 0x0}<br>
__FUNCTION__ = "mod_init"<br>
#13 0x000000000058f59d in init_mod (m=0x7ffff6cb3740) at
sr_module.c:966<br>
__FUNCTION__ = "init_mod"<br>
#14 0x000000000058f8a2 in init_modules () at sr_module.c:995<br>
t = 0x7ffff77ac500<br>
i = 1187628493<br>
__FUNCTION__ = "init_modules"<br>
#15 0x00000000004aa2b0 in main (argc=5, argv=0x7fffffffe528) at
main.c:2501<br>
cfg_stream = 0xa94020<br>
c = -1<br>
r = 32767<br>
tmp = 0x7ffff7ffd000 ""<br>
tmp_len = 32767<br>
port = -7008<br>
proto = 32767<br>
options = 0x7023e0
":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"<br>
ret = -1<br>
seed = 39348307<br>
rfd = 8<br>
debug_save = 0<br>
debug_flag = 0<br>
dont_fork_cnt = 0<br>
n_lst = 0xf0b2ff<br>
p = 0xbf <Address 0xbf out of bounds><br>
__FUNCTION__ = "main"<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2014-10-20 18:11 GMT+08:00
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> What are the
differences between the server that works and the one that
doesn't? I mean hardware and operating system details?<br>
<br>
Checking quickly the source code and comparing with logs,
it doesn't reveal any problem -- it is about allocation of
the next fragment, which was not used at all before, after
the one allocated previously. The only reason I can think
of it right now is corrupted memory or faulty OS.<span
class="HOEnZb"><font color="#888888"><br>
</font></span>
<div><span class="HOEnZb"><font color="#888888"><br>
Daniel</font></span>
<div>
<div class="h5"><br>
<br>
On 20/10/14 11:56, 张顺通 wrote:<br>
</div>
</div>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="ltr">
<div>4.2 have the same problem.<br>
</div>
at begin i use 4.1, i think this is a bug in 4.1;
then i use 4.2 to check to see if the problem is
solved. problems still in.<br>
<div>
<div><br>
see ka_4_2_0.log <br>
<div><br>
<div class="gmail_chip gmail_drive_chip"
style="width:396px;min-height:18px;max-height:18px;background-color:#f5f5f5;padding:5px;color:#222;font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px
solid #ddd;line-height:1"><a
moz-do-not-send="true"
href="https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web"
style="display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px
0px;border:medium none;width:100%"
target="_blank"><img
moz-do-not-send="true"
style="vertical-align:bottom;border:none"
src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span
dir="ltr"
style="color:#15c;text-decoration:none;vertical-align:bottom">ka_4_2_0.log</span></a></div>
<br>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2014-10-20 17:48
GMT+08:00 张顺通 <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:shuntongzhang@gmail.com"
target="_blank">shuntongzhang@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div dir="ltr">
<div>ka.log is genrate by kamailio 4.1.6.<br>
</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2014-10-20
17:44 GMT+08:00 Daniel-Constantin
Mierla <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">Are you
using 4.1 or 4.2?<br>
<br>
Because the subject mentioned 4.2
but the version of kamailio is 4.1<br>
<span><font color="#888888"><br>
Daniel<br>
</font></span><span><br>
On 20/10/14 11:39, 张顺通 wrote:<br>
> -M 12 can not help. all
config is same.<br>
><br>
> see ka.log in attachment,
kamailio version is 4.1.6<br>
><br>
> version: kamailio 4.1.6
(x86_64/linux) 010d57<br>
><br>
> flags: STATS: Off, USE_TCP,
USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,<br>
> DISABLE_NAGLE, USE_MCAST,
DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC,<br>
> DBG_QM_MALLOC, USE_FUTEX,
FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE,<br>
> USE_DNS_FAILOVER, USE_NAPTR,
USE_DST_BLACKLIST, HAVE_RESOLV_RES<br>
><br>
> ADAPTIVE_WAIT_LOOPS=1024,
MAX_RECV_BUFFER_SIZE 262144,
MAX_LISTEN 16,<br>
> MAX_URI_SIZE 1024, BUF_SIZE
65535, DEFAULT PKG_SIZE 4MB<br>
><br>
> poll method support: poll,
epoll_lt, epoll_et, sigio_rt,
select.<br>
><br>
> id: 010d57<br>
><br>
> compiled on 16:48:03 Oct 20
2014 with gcc 4.1.2<br>
><br>
><br>
<br>
</span>
<div>
<div>--<br>
Daniel-Constantin Mierla<br>
<a moz-do-not-send="true"
href="http://twitter.com/#%21/miconda"
target="_blank">http://twitter.com/#!/miconda</a>
- <a moz-do-not-send="true"
href="http://www.linkedin.com/in/miconda"
target="_blank">http://www.linkedin.com/in/miconda</a><br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<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></pre>
</body>
</html>