Discussion:
[SR-Users] kamailio 4.2 ,have some problems when use mysql db
张顺通
2014-10-20 01:38:55 UTC
Permalink
Oct 20 08:14:45 ka[15500]: INFO: rr [../outbound/api.h:54]: ob_load_api():
Failed to import bind_ob
Oct 20 08:14:45 ka[15500]: INFO: rr [rr_mod.c:160]: mod_init(): outbound
module not available
Oct 20 08:14:45 ka[15500]: INFO: usrloc [hslot.c:53]: ul_init_locks():
locks array size 1024
Oct 20 08:14:45 ka[15500]: INFO: auth [auth_mod.c:350]: mod_init(): auth:
qop set, but nonce-count (nc_enabled) support disabled
Oct 20 08:14:45 ka[15500]: ERROR: <core> [db_res.c:114]: db_new_result():
no private memory left
Oct 20 08:14:45 ka[15500]: ERROR: db_mysql [km_dbase.c:229]:
db_mysql_store_result(): no memory left
Oct 20 08:14:45 ka[15500]: ERROR: <core> [db_query.c:139]:
db_do_query_internal(): error while storing result
Oct 20 08:14:45 ka[15500]: ERROR: <core> [db.c:401]: db_table_version():
error in db_query
Oct 20 08:14:45 ka[15500]: ERROR: dispatcher [dispatch.c:669]:
init_ds_db(): failed to query table version
Oct 20 08:14:45 ka[15500]: ERROR: dispatcher [dispatcher.c:319]:
mod_init(): could not initiate a connect to the database
Oct 20 08:14:45 ka[15500]: ERROR: <core> [sr_module.c:968]: init_mod():
Error while initializing module dispatcher (/lib64/kamailio/dispatcher.so)

I need help.thks
Gonzalo Gasca
2014-10-20 05:51:28 UTC
Permalink
Hi,

Based on:

Oct 20 08:14:45 ka[15500]: ERROR: <core> [db.c:401]: db_table_version():
error in db_query
Oct 20 08:14:45 ka[15500]: ERROR: dispatcher [dispatch.c:669]:
init_ds_db(): failed to query table version

What's the result when you run a direct mysql query for "version" table for
the following "select * from version":

Example:

mysql -h localhost -P 3306 -u root -p

mysql> use kamailiodb; <Use your kamailio Db name here>

mysql>desc version;

mysql> select count(*) from version;
mysql> select * from version;

/G
Post by 张顺通
Failed to import bind_ob
Oct 20 08:14:45 ka[15500]: INFO: rr [rr_mod.c:160]: mod_init(): outbound
module not available
locks array size 1024
qop set, but nonce-count (nc_enabled) support disabled
no private memory left
db_mysql_store_result(): no memory left
db_do_query_internal(): error while storing result
error in db_query
init_ds_db(): failed to query table version
mod_init(): could not initiate a connect to the database
Error while initializing module dispatcher (/lib64/kamailio/dispatcher.so)
I need help.thks
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
张顺通
2014-10-20 08:20:18 UTC
Permalink
I have two computer, one is ok ,the other can not startup.
mysql operation is all ok.
no private memory left.
pkg_malloc is failed.
发自我的小米手机
Hi,
error in db_query
init_ds_db(): failed to query table version
What's the result when you run a direct mysql query for "version" table
mysql -h localhost -P 3306 -u root -p
mysql> use kamailiodb; <Use your kamailio Db name here>
mysql>desc version;
mysql> select count(*) from version;
mysql> select * from version;
/G
ob_load_api(): Failed to import bind_ob
Oct 20 08:14:45 ka[15500]: INFO: rr [rr_mod.c:160]: mod_init(): outbound
module not available
locks array size 1024
qop set, but nonce-count (nc_enabled) support disabled
no private memory left
db_mysql_store_result(): no memory left
db_do_query_internal(): error while storing result
error in db_query
init_ds_db(): failed to query table version
mod_init(): could not initiate a connect to the database
Error while initializing module dispatcher (/lib64/kamailio/dispatcher.so)
I need help.thks
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
张顺通
2014-10-20 09:00:09 UTC
Permalink
when open MEMDBG ?= 1, I get this

<core> [mem/q_malloc.c:159]: qm_debug_frag(): BUG: qm_*: prev. fragm. tail
overwritten(0, 0)[0x7f64241cdfc0:0x7f64241cdff0]!
Post by 张顺通
I have two computer, one is ok ,the other can not startup.
mysql operation is all ok.
no private memory left.
pkg_malloc is failed.
发自我的小米手机
Hi,
error in db_query
init_ds_db(): failed to query table version
What's the result when you run a direct mysql query for "version" table
mysql -h localhost -P 3306 -u root -p
mysql> use kamailiodb; <Use your kamailio Db name here>
mysql>desc version;
mysql> select count(*) from version;
mysql> select * from version;
/G
ob_load_api(): Failed to import bind_ob
Oct 20 08:14:45 ka[15500]: INFO: rr [rr_mod.c:160]: mod_init(): outbound
module not available
locks array size 1024
auth: qop set, but nonce-count (nc_enabled) support disabled
db_new_result(): no private memory left
db_mysql_store_result(): no memory left
db_do_query_internal(): error while storing result
error in db_query
init_ds_db(): failed to query table version
mod_init(): could not initiate a connect to the database
Error while initializing module dispatcher (/lib64/kamailio/dispatcher.so)
I need help.thks
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel-Constantin Mierla
2014-10-20 09:09:34 UTC
Permalink
Are both computers using same database or each of them has a database
server locally?

Do you use same configuration file and command line parameters on both
systems? Can you start with higher pkg memory on the computer where you
have troubles? Like:

kamailio -M 12 ...

Cheers,
Daniel
Post by 张顺通
I have two computer, one is ok ,the other can not startup.
mysql operation is all ok.
no private memory left.
pkg_malloc is failed.
发自我的小米手机
Hi,
db_table_version(): error in db_query
init_ds_db(): failed to query table version
What's the result when you run a direct mysql query for
mysql -h localhost -P 3306 -u root -p
mysql> use kamailiodb; <Use your kamailio Db name here>
mysql>desc version;
mysql> select count(*) from version;
mysql> select * from version;
/G
On Sun, Oct 19, 2014 at 6:38 PM, 匠顺通
Oct 20 08:14:45 ka[15500]: INFO: rr
[../outbound/api.h:54]: ob_load_api(): Failed to import
bind_ob
mod_init(): outbound module not available
ul_init_locks(): locks array size 1024
mod_init(): auth: qop set, but nonce-count (nc_enabled)
support disabled
db_new_result(): no private memory left
Oct 20 08:14:45 ka[15500]: ERROR: db_mysql
[km_dbase.c:229]: db_mysql_store_result(): no memory left
db_do_query_internal(): error while storing result
db_table_version(): error in db_query
Oct 20 08:14:45 ka[15500]: ERROR: dispatcher
[dispatch.c:669]: init_ds_db(): failed to query table version
Oct 20 08:14:45 ka[15500]: ERROR: dispatcher
[dispatcher.c:319]: mod_init(): could not initiate a
connect to the database
Oct 20 08:14:45 ka[15500]: ERROR: <core>
[sr_module.c:968]: init_mod(): Error while initializing
module dispatcher (/lib64/kamailio/dispatcher.so)
I need help.thks
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Daniel-Constantin Mierla
2014-10-20 09:11:42 UTC
Permalink
Can you set in kamailio.cfg:

debug=3
memdbg=2
memlog=2

and send the syslog messages printed by kamailio from the moment of
starting it to me?

They can be a lot, would be good if you can make an archive (tgz) and
put it somewhere for download.

Cheers,
Daniel
Post by 张顺通
when open MEMDBG ?= 1, I get this
<core> [mem/q_malloc.c:159]: qm_debug_frag(): BUG: qm_*: prev. fragm.
tail overwritten(0, 0)[0x7f64241cdfc0:0x7f64241cdff0]!
I have two computer, one is ok ,the other can not startup.
mysql operation is all ok.
no private memory left.
pkg_malloc is failed.
发自我的小米手机
圚 2014幎10月20日 䞋午1:51Gonzalo Gasca
Hi,
db_table_version(): error in db_query
Oct 20 08:14:45 ka[15500]: ERROR: dispatcher
[dispatch.c:669]: init_ds_db(): failed to query table version
What's the result when you run a direct mysql query for
mysql -h localhost -P 3306 -u root -p
mysql> use kamailiodb; <Use your kamailio Db name here>
mysql>desc version;
mysql> select count(*) from version;
mysql> select * from version;
/G
On Sun, Oct 19, 2014 at 6:38 PM, 匠顺通
Oct 20 08:14:45 ka[15500]: INFO: rr
[../outbound/api.h:54]: ob_load_api(): Failed to
import bind_ob
mod_init(): outbound module not available
ul_init_locks(): locks array size 1024
Oct 20 08:14:45 ka[15500]: INFO: auth
[auth_mod.c:350]: mod_init(): auth: qop set, but
nonce-count (nc_enabled) support disabled
Oct 20 08:14:45 ka[15500]: ERROR: <core>
[db_res.c:114]: db_new_result(): no private memory left
Oct 20 08:14:45 ka[15500]: ERROR: db_mysql
[km_dbase.c:229]: db_mysql_store_result(): no memory left
Oct 20 08:14:45 ka[15500]: ERROR: <core>
[db_query.c:139]: db_do_query_internal(): error while
storing result
db_table_version(): error in db_query
Oct 20 08:14:45 ka[15500]: ERROR: dispatcher
[dispatch.c:669]: init_ds_db(): failed to query table
version
Oct 20 08:14:45 ka[15500]: ERROR: dispatcher
[dispatcher.c:319]: mod_init(): could not initiate a
connect to the database
Oct 20 08:14:45 ka[15500]: ERROR: <core>
[sr_module.c:968]: init_mod(): Error while
initializing module dispatcher
(/lib64/kamailio/dispatcher.so)
I need help.thks
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) -
sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
张顺通
2014-10-20 09:43:59 UTC
Permalink
-M 12 can not help. all config is same.

see ka.log in attachment, kamailio version is 4.1.6

version: kamailio 4.1.6 (x86_64/linux) 010d57

flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES

ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB

poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.

id: 010d57

compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2​
ka.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAZXhaTkdCcllwams/edit?usp=drive_web>
​
Post by Daniel-Constantin Mierla
debug=3
memdbg=2
memlog=2
and send the syslog messages printed by kamailio from the moment of
starting it to me?
They can be a lot, would be good if you can make an archive (tgz) and put
it somewhere for download.
Cheers,
Daniel
when open MEMDBG ?= 1, I get this
<core> [mem/q_malloc.c:159]: qm_debug_frag(): BUG: qm_*: prev. fragm.
tail overwritten(0, 0)[0x7f64241cdfc0:0x7f64241cdff0]!
Post by 张顺通
I have two computer, one is ok ,the other can not startup.
mysql operation is all ok.
no private memory left.
pkg_malloc is failed.
发自我的小米手机
Hi,
db_table_version(): error in db_query
init_ds_db(): failed to query table version
What's the result when you run a direct mysql query for "version" table
mysql -h localhost -P 3306 -u root -p
mysql> use kamailiodb; <Use your kamailio Db name here>
mysql>desc version;
mysql> select count(*) from version;
mysql> select * from version;
/G
ob_load_api(): Failed to import bind_ob
outbound module not available
locks array size 1024
auth: qop set, but nonce-count (nc_enabled) support disabled
db_new_result(): no private memory left
db_mysql_store_result(): no memory left
db_do_query_internal(): error while storing result
db_table_version(): error in db_query
init_ds_db(): failed to query table version
mod_init(): could not initiate a connect to the database
Error while initializing module dispatcher (/lib64/kamailio/dispatcher.so)
I need help.thks
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel-Constantin Mierla
2014-10-20 09:44:19 UTC
Permalink
Are you using 4.1 or 4.2?

Because the subject mentioned 4.2 but the version of kamailio is 4.1

Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
张顺通
2014-10-20 09:48:09 UTC
Permalink
ka.log is genrate by kamailio 4.1.6.
Post by Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
张顺通
2014-10-20 09:56:28 UTC
Permalink
4.2 have the same problem.
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.

see ka_4_2_0.log
​
ka_4_2_0.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web>
​
Post by 张顺通
ka.log is genrate by kamailio 4.1.6.
Post by Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Daniel-Constantin Mierla
2014-10-20 10:11:55 UTC
Permalink
What are the differences between the server that works and the one that
doesn't? I mean hardware and operating system details?

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.

Daniel
Post by 张顺通
4.2 have the same problem.
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.
see ka_4_2_0.log
​
ka_4_2_0.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web>
​
ka.log is genrate by kamailio 4.1.6.
2014-10-20 17:44 GMT+08:00 Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC,
Post by 张顺通
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE,
Post by 张顺通
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
MAX_LISTEN 16,
Post by 张顺通
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda
<http://twitter.com/#%21/miconda> -
http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
张顺通
2014-10-20 10:16:35 UTC
Permalink
4.2.0 have a core

#0 0x00007ffff7488265 in raise () from /lib64/libc.so.6
No symbol table info available.
#1 0x00007ffff7489d10 in abort () from /lib64/libc.so.6
No symbol table info available.
#2 0x0000000000615b74 in qm_debug_frag (qm=0x7ffff6c55010,
f=0x7ffff6cdcf08) at mem/q_malloc.c:161
__FUNCTION__ = "qm_debug_frag"
#3 0x0000000000616d87 in qm_malloc (qm=0x7ffff6c55010, size=56,
file=0x7ffff5fedef8 "<core>: db_res.c", func=0x7ffff5fee288
"db_new_result", line=112)
at mem/q_malloc.c:388
f = 0x7ffff6cdcf08
hash = 2057
list_cntr = 1
__FUNCTION__ = "qm_malloc"
#4 0x00007ffff5fdaa2f in db_new_result () at db_res.c:112
r = 0x0
__FUNCTION__ = "db_new_result"
#5 0x00007ffff6a386d6 in db_mysql_new_result () at km_res.c:235
obj = 0x0
__FUNCTION__ = "db_mysql_new_result"
#6 0x00007ffff6a29c7a in db_mysql_store_result (_h=0x7ffff6cb4e78,
_r=0x7fffffffdf38) at km_dbase.c:227
code = -165731152
__FUNCTION__ = "db_mysql_store_result"
#7 0x00007ffff5fd3516 in db_do_query_internal (_h=0x7ffff6cb4e78,
_k=0x7fffffffdf70, _op=0x0, _v=0x7fffffffdf40, _c=0x7fffffffdf60, _n=1,
_nc=1, _o=0x0,
_r=0x7fffffffdf38, val2str=0x7ffff6a39374 <db_mysql_val2str>,
submit_query=0x7ffff6a2825c <db_mysql_submit_query>,
store_result=0x7ffff6a2998c <db_mysql_store_result>, _l=0) at
db_query.c:137
tmp = 32767
off = 63
ret = 23
__FUNCTION__ = "db_do_query_internal"
#8 0x00007ffff5fd3fbd in db_do_query (_h=0x7ffff6cb4e78,
_k=0x7fffffffdf70, _op=0x0, _v=0x7fffffffdf40, _c=0x7fffffffdf60, _n=1,
_nc=1, _o=0x0, _r=0x7fffffffdf38,
val2str=0x7ffff6a39374 <db_mysql_val2str>, submit_query=0x7ffff6a2825c
<db_mysql_submit_query>, store_result=0x7ffff6a2998c
<db_mysql_store_result>)
at db_query.c:156
No locals.
#9 0x00007ffff6a2b04e in db_mysql_query (_h=0x7ffff6cb4e78,
_k=0x7fffffffdf70, _op=0x0, _v=0x7fffffffdf40, _c=0x7fffffffdf60, _n=1,
_nc=1, _o=0x0, _r=0x7fffffffdf38)
at km_dbase.c:323
No locals.
#10 0x00007ffff5fcd6e9 in db_table_version (dbf=0x7ffff2d1e3c0,
connection=0x7ffff6cb4e78, table=0x7ffff2d1d990) at db.c:400
key = {0x7fffffffdf20}
col = {0x7fffffffdf10}
val = {{type = DB1_STR, nul = 0, free = -167987365, val = {int_val
= -223246127, ll_val = 140737265109201, double_val =
6.9533447780108125e-310,
time_val = 140737265109201, string_val = 0x7ffff2b188d1
"dispatcher", str_val = {s = 0x7ffff2b188d1 "dispatcher", len = 10},
blob_val = {s = 0x7ffff2b188d1 "dispatcher", len = 10}, bitmap_val =
4071721169}}}
res = 0x0
ver = 0x0
version = 0x9c7be0
tmp1 = {s = 0x7ffff5feb0e1 "table_name", len = 10}
tmp2 = {s = 0x7ffff5feb0ec "table_version", len = 13}
ret = 8
__FUNCTION__ = "db_table_version"
#11 0x00007ffff2aeab2f in init_ds_db () at dispatch.c:666
ret = 297
__FUNCTION__ = "init_ds_db"
#12 0x00007ffff2b04434 in mod_init () at dispatcher.c:317
avp_spec = {type = 48, getf = 0x7fffffffe190, setf =
0x7fffffffe0d0, pvp = {pvn = {type = 16, nfree = 0x3000000028, u = {isname
= {type = -7760, name = {
n = 7292328, s = {s = 0x6f45a8 "DEBUG", len = 7555677},
re = 0x6f45a8}}, dname = 0x3ffffe1b0}}, pvi = {type = 7555621, u = {ival =
-223246127,
dval = 0x7ffff2b188d1}}}, trans = 0x0}
__FUNCTION__ = "mod_init"
#13 0x000000000058f59d in init_mod (m=0x7ffff6cb3740) at sr_module.c:966
__FUNCTION__ = "init_mod"
#14 0x000000000058f8a2 in init_modules () at sr_module.c:995
t = 0x7ffff77ac500
i = 1187628493
__FUNCTION__ = "init_modules"
#15 0x00000000004aa2b0 in main (argc=5, argv=0x7fffffffe528) at main.c:2501
cfg_stream = 0xa94020
c = -1
r = 32767
tmp = 0x7ffff7ffd000 ""
tmp_len = 32767
port = -7008
proto = 32767
options = 0x7023e0
":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"
ret = -1
seed = 39348307
rfd = 8
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0xf0b2ff
p = 0xbf <Address 0xbf out of bounds>
__FUNCTION__ = "main"
Post by Daniel-Constantin Mierla
What are the differences between the server that works and the one that
doesn't? I mean hardware and operating system details?
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.
Daniel
4.2 have the same problem.
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.
see ka_4_2_0.log
​
ka_4_2_0.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web>
​
Post by 张顺通
ka.log is genrate by kamailio 4.1.6.
Post by Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
张顺通
2014-10-20 10:24:15 UTC
Permalink
os is rhel.
rhel6 is ok, rhel5 can not start.
Post by Daniel-Constantin Mierla
What are the differences between the server that works and the one that
doesn't? I mean hardware and operating system details?
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.
Daniel
4.2 have the same problem.
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.
see ka_4_2_0.log
​
ka_4_2_0.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web>
​
Post by 张顺通
ka.log is genrate by kamailio 4.1.6.
Post by Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Daniel-Constantin Mierla
2014-10-20 10:30:47 UTC
Permalink
physical machine is the same? Is it standard OS installation, or some
customizations (e.g. custom kernel modules, etc.)? Embedded device? What
CPU?

Daniel
Post by 张顺通
os is rhel.
rhel6 is ok, rhel5 can not start.
What are the differences between the server that works and the one
that doesn't? I mean hardware and operating system details?
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.
Daniel
Post by 张顺通
4.2 have the same problem.
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.
see ka_4_2_0.log
​
ka_4_2_0.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web>
​
ka.log is genrate by kamailio 4.1.6.
2014-10-20 17:44 GMT+08:00 Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of
kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS,
USE_RAW_SOCKS,
Post by 张顺通
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM,
SHM_MMAP, PKG_MALLOC,
Post by 张顺通
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE,
Post by 张顺通
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES
Post by 张顺通
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
MAX_LISTEN 16,
Post by 张顺通
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et,
sigio_rt, select.
Post by 张顺通
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda
<http://twitter.com/#%21/miconda> -
http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
张顺通
2014-10-20 10:57:02 UTC
Permalink
rhel5
$cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
24 Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz
rhel6
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
16 Intel(R) Xeon(R) CPU E5620 @ 2.40GHz

not Embedded device, normal server.


gdb

(gdb) f 2
#2 0x0000000000615b74 in qm_debug_frag (qm=0x7ffff6c55010,
f=0x7ffff6cdcf08) at mem/q_malloc.c:161
161 abort();
(gdb) p *f
$1 = {size = 7831720, u = {nxt_free = 0x7ffff6c893f8, is_free =
140737333728248}, file = 0x7ffff6a4c93d "db_mysql: km_my_con.c",
func = 0x758307 "fragm. from qm_malloc", line = 62, check = 4042322160}
Post by Daniel-Constantin Mierla
physical machine is the same? Is it standard OS installation, or some
customizations (e.g. custom kernel modules, etc.)? Embedded device? What
CPU?
Daniel
os is rhel.
rhel6 is ok, rhel5 can not start.
Post by Daniel-Constantin Mierla
What are the differences between the server that works and the one that
doesn't? I mean hardware and operating system details?
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.
Daniel
4.2 have the same problem.
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.
see ka_4_2_0.log
​
ka_4_2_0.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web>
​
Post by 张顺通
ka.log is genrate by kamailio 4.1.6.
Post by Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
张顺通
2014-10-20 11:39:09 UTC
Permalink
db_new_result->pkg_malloc(qm_malloc)->qm_find_free, func qm_find_free
return 0, can not find mem when i close memdbg.
Post by 张顺通
rhel5
$cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
rhel6
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
not Embedded device, normal server.
gdb
(gdb) f 2
#2 0x0000000000615b74 in qm_debug_frag (qm=0x7ffff6c55010,
f=0x7ffff6cdcf08) at mem/q_malloc.c:161
161 abort();
(gdb) p *f
$1 = {size = 7831720, u = {nxt_free = 0x7ffff6c893f8, is_free =
140737333728248}, file = 0x7ffff6a4c93d "db_mysql: km_my_con.c",
func = 0x758307 "fragm. from qm_malloc", line = 62, check = 4042322160}
Post by Daniel-Constantin Mierla
physical machine is the same? Is it standard OS installation, or some
customizations (e.g. custom kernel modules, etc.)? Embedded device? What
CPU?
Daniel
os is rhel.
rhel6 is ok, rhel5 can not start.
Post by Daniel-Constantin Mierla
What are the differences between the server that works and the one that
doesn't? I mean hardware and operating system details?
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.
Daniel
4.2 have the same problem.
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.
see ka_4_2_0.log
​
ka_4_2_0.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web>
​
Post by 张顺通
ka.log is genrate by kamailio 4.1.6.
Post by Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
张顺通
2014-10-20 15:01:08 UTC
Permalink
I install a rehl 5.7 by myself, kamailio 4.1.6 can run correctly. but it
can not run on out company's server which is also rehl 5.7. How to find the
problem.I have no idea.
anyone can help?
thks
Post by 张顺通
db_new_result->pkg_malloc(qm_malloc)->qm_find_free, func qm_find_free
return 0, can not find mem when i close memdbg.
Post by 张顺通
rhel5
$cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
rhel6
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
not Embedded device, normal server.
gdb
(gdb) f 2
#2 0x0000000000615b74 in qm_debug_frag (qm=0x7ffff6c55010,
f=0x7ffff6cdcf08) at mem/q_malloc.c:161
161 abort();
(gdb) p *f
$1 = {size = 7831720, u = {nxt_free = 0x7ffff6c893f8, is_free =
140737333728248}, file = 0x7ffff6a4c93d "db_mysql: km_my_con.c",
func = 0x758307 "fragm. from qm_malloc", line = 62, check = 4042322160}
Post by Daniel-Constantin Mierla
physical machine is the same? Is it standard OS installation, or some
customizations (e.g. custom kernel modules, etc.)? Embedded device? What
CPU?
Daniel
os is rhel.
rhel6 is ok, rhel5 can not start.
Post by Daniel-Constantin Mierla
What are the differences between the server that works and the one
that doesn't? I mean hardware and operating system details?
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.
Daniel
4.2 have the same problem.
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.
see ka_4_2_0.log
​
ka_4_2_0.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web>
​
Post by 张顺通
ka.log is genrate by kamailio 4.1.6.
Post by Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC,
Post by 张顺通
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN
16,
Post by 张顺通
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Gonzalo Gasca
2014-10-20 22:47:44 UTC
Permalink
Hi Shuntongzhang,

As Daniel mentioned we can see the error during* pkg_malloc*
db_res.c: db_new_result(112) (db_res.c#L112)

https://github.com/kamailio/kamailio/blob/fcdf5f9cfff634ebfa736d7084d5e5483a36355b/lib/srdb1/db_res.c#L112

As I mentioned before can you provide the results of the query for version
table and dispatcher table. Seems to be an issue storing the results

__FUNCTION__ = "db_mysql_store_result"
#7 0x00007ffff5fd3516 in db_do_query_internal (_h=0x7ffff6cb4e78,
_k=0x7fffffffdf70, _op=0x0, _v=0x7fffffffdf40, _c=0x7fffffffdf60, _n=1,
_nc=1, _o=0x0,
_r=0x7fffffffdf38, val2str=0x7ffff6a39374 <db_mysql_val2str>,
submit_query=0x7ffff6a2825c <db_mysql_submit_query>,
store_result=0x7ffff6a2998c <db_mysql_store_result>, _l=0) at
db_query.c:137
* tmp = 32767*
off = 63
ret = 23

a) Can you provide the results for:

mysql -h localhost -P 3306 -u root -p

mysql> use kamailiodb; <Use your kamailio Db name here>

mysql>desc version;

mysql> select count(*) from version;
mysql> select * from version;

mysql> select count(*) from dispatcher;

This will help us to see how many entries in dispatcher table.

b) Can you provide dispatcher config for kamailio.cfg ?
c) Is the SQL db server local or in a remote server?

/G
Post by 张顺通
I install a rehl 5.7 by myself, kamailio 4.1.6 can run correctly. but it
can not run on out company's server which is also rehl 5.7. How to find the
problem.I have no idea.
anyone can help?
thks
Post by 张顺通
db_new_result->pkg_malloc(qm_malloc)->qm_find_free, func qm_find_free
return 0, can not find mem when i close memdbg.
Post by 张顺通
rhel5
$cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
rhel6
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
not Embedded device, normal server.
gdb
(gdb) f 2
#2 0x0000000000615b74 in qm_debug_frag (qm=0x7ffff6c55010,
f=0x7ffff6cdcf08) at mem/q_malloc.c:161
161 abort();
(gdb) p *f
$1 = {size = 7831720, u = {nxt_free = 0x7ffff6c893f8, is_free =
140737333728248}, file = 0x7ffff6a4c93d "db_mysql: km_my_con.c",
func = 0x758307 "fragm. from qm_malloc", line = 62, check = 4042322160
}
Post by Daniel-Constantin Mierla
physical machine is the same? Is it standard OS installation, or some
customizations (e.g. custom kernel modules, etc.)? Embedded device? What
CPU?
Daniel
os is rhel.
rhel6 is ok, rhel5 can not start.
Post by Daniel-Constantin Mierla
What are the differences between the server that works and the one
that doesn't? I mean hardware and operating system details?
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.
Daniel
4.2 have the same problem.
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.
see ka_4_2_0.log
​
ka_4_2_0.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web>
​
Post by 张顺通
ka.log is genrate by kamailio 4.1.6.
2014-10-20 17:44 GMT+08:00 Daniel-Constantin Mierla <
Post by Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC,
Post by 张顺通
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN
16,
Post by 张顺通
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
张顺通
2014-10-20 23:15:15 UTC
Permalink
mysql> desc version;
+---------------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+------------------+------+-----+---------+-------+
| table_name | varchar(32) | NO | PRI | NULL | |
| table_version | int(10) unsigned | NO | | 0 | |
+---------------+------------------+------+-----+---------+-------+
2 rows in set (0.00 sec)
mysql> select count(*) from version;
+----------+
| count(*) |
+----------+
| 26 |
+----------+
1 row in set (0.00 sec)

mysql> select * from version;
+-----------------+---------------+
| table_name | table_version |
+-----------------+---------------+
| acc | 4 |
| acc_cdrs | 1 |
| address | 6 |
| aliases | 6 |
| dbaliases | 1 |
| dialog | 7 |
| dialog_vars | 1 |
| dialplan | 1 |
| dispatcher | 4 |
| domain | 2 |
| domain_attrs | 1 |
| grp | 2 |
| lcr_gw | 3 |
| lcr_rule | 2 |
| lcr_rule_target | 1 |
| location | 6 |
| location_attrs | 1 |
| missed_calls | 3 |
| pdt | 1 |
| re_grp | 1 |
| silo | 7 |
| speed_dial | 2 |
| subscriber | 6 |
| trusted | 5 |
| uri | 1 |
| usr_preferences | 2 |
+-----------------+---------------+
26 rows in set (0.01 sec)
mysql> select count(*) from dispatcher;
+----------+
| count(*) |
+----------+
| 1 |
+----------+
1 row in set (0.01 sec)


# ----- dispatcher params -----
modparam("dispatcher", "db_url", DBURL)

I try local & remote db at the same time, all do not work.
Post by Gonzalo Gasca
Hi Shuntongzhang,
As Daniel mentioned we can see the error during* pkg_malloc*
db_res.c: db_new_result(112) (db_res.c#L112)
https://github.com/kamailio/kamailio/blob/fcdf5f9cfff634ebfa736d7084d5e5483a36355b/lib/srdb1/db_res.c#L112
As I mentioned before can you provide the results of the query for version
table and dispatcher table. Seems to be an issue storing the results
__FUNCTION__ = "db_mysql_store_result"
#7 0x00007ffff5fd3516 in db_do_query_internal (_h=0x7ffff6cb4e78,
_k=0x7fffffffdf70, _op=0x0, _v=0x7fffffffdf40, _c=0x7fffffffdf60, _n=1,
_nc=1, _o=0x0,
_r=0x7fffffffdf38, val2str=0x7ffff6a39374 <db_mysql_val2str>,
submit_query=0x7ffff6a2825c <db_mysql_submit_query>,
store_result=0x7ffff6a2998c <db_mysql_store_result>, _l=0) at
db_query.c:137
* tmp = 32767*
off = 63
ret = 23
mysql -h localhost -P 3306 -u root -p
mysql> use kamailiodb; <Use your kamailio Db name here>
mysql>desc version;
mysql> select count(*) from version;
mysql> select * from version;
mysql> select count(*) from dispatcher;
This will help us to see how many entries in dispatcher table.
b) Can you provide dispatcher config for kamailio.cfg ?
c) Is the SQL db server local or in a remote server?
/G
Post by 张顺通
I install a rehl 5.7 by myself, kamailio 4.1.6 can run correctly. but it
can not run on out company's server which is also rehl 5.7. How to find the
problem.I have no idea.
anyone can help?
thks
Post by 张顺通
db_new_result->pkg_malloc(qm_malloc)->qm_find_free, func qm_find_free
return 0, can not find mem when i close memdbg.
Post by 张顺通
rhel5
$cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
rhel6
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
not Embedded device, normal server.
gdb
(gdb) f 2
#2 0x0000000000615b74 in qm_debug_frag (qm=0x7ffff6c55010,
f=0x7ffff6cdcf08) at mem/q_malloc.c:161
161 abort();
(gdb) p *f
$1 = {size = 7831720, u = {nxt_free = 0x7ffff6c893f8, is_free =
140737333728248}, file = 0x7ffff6a4c93d "db_mysql: km_my_con.c",
func = 0x758307 "fragm. from qm_malloc", line = 62, check =
4042322160}
Post by Daniel-Constantin Mierla
physical machine is the same? Is it standard OS installation, or some
customizations (e.g. custom kernel modules, etc.)? Embedded device? What
CPU?
Daniel
os is rhel.
rhel6 is ok, rhel5 can not start.
Post by Daniel-Constantin Mierla
What are the differences between the server that works and the one
that doesn't? I mean hardware and operating system details?
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.
Daniel
4.2 have the same problem.
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.
see ka_4_2_0.log
​
ka_4_2_0.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web>
​
Post by 张顺通
ka.log is genrate by kamailio 4.1.6.
2014-10-20 17:44 GMT+08:00 Daniel-Constantin Mierla <
Post by Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC,
Post by 张顺通
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN
16,
Post by 张顺通
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Gonzalo Gasca
2014-10-21 06:04:53 UTC
Permalink
Interestingly you only have 1 record in your dispatcher table. My guess was
a huge number of dispatcher records.

What do you have in that rule? Maybe some special characters?

Can you send:

mysql> select * from dispatcher;

mysql> desc dispatcher;

+-------------+------------------+------+-----+---------+----------------+

| Field | Type | Null | Key | Default | Extra |

+-------------+------------------+------+-----+---------+----------------+

| id | int(10) unsigned | NO | PRI | NULL | auto_increment |

| setid | int(11) | NO | | 0 | |

| destination | varchar(192) | NO | | | |

| flags | int(11) | NO | | 0 | |

| priority | int(11) | NO | | 0 | |

| attrs | varchar(128) | NO | | | |

| description | varchar(64) | NO | | | |

+-------------+------------------+------+-----+---------+----------------+
Post by 张顺通
mysql> desc version;
+---------------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+------------------+------+-----+---------+-------+
| table_name | varchar(32) | NO | PRI | NULL | |
| table_version | int(10) unsigned | NO | | 0 | |
+---------------+------------------+------+-----+---------+-------+
2 rows in set (0.00 sec)
mysql> select count(*) from version;
+----------+
| count(*) |
+----------+
| 26 |
+----------+
1 row in set (0.00 sec)
mysql> select * from version;
+-----------------+---------------+
| table_name | table_version |
+-----------------+---------------+
| acc | 4 |
| acc_cdrs | 1 |
| address | 6 |
| aliases | 6 |
| dbaliases | 1 |
| dialog | 7 |
| dialog_vars | 1 |
| dialplan | 1 |
| dispatcher | 4 |
| domain | 2 |
| domain_attrs | 1 |
| grp | 2 |
| lcr_gw | 3 |
| lcr_rule | 2 |
| lcr_rule_target | 1 |
| location | 6 |
| location_attrs | 1 |
| missed_calls | 3 |
| pdt | 1 |
| re_grp | 1 |
| silo | 7 |
| speed_dial | 2 |
| subscriber | 6 |
| trusted | 5 |
| uri | 1 |
| usr_preferences | 2 |
+-----------------+---------------+
26 rows in set (0.01 sec)
mysql> select count(*) from dispatcher;
+----------+
| count(*) |
+----------+
| 1 |
+----------+
1 row in set (0.01 sec)
# ----- dispatcher params -----
modparam("dispatcher", "db_url", DBURL)
I try local & remote db at the same time, all do not work.
Post by Gonzalo Gasca
Hi Shuntongzhang,
As Daniel mentioned we can see the error during* pkg_malloc*
db_res.c: db_new_result(112) (db_res.c#L112)
https://github.com/kamailio/kamailio/blob/fcdf5f9cfff634ebfa736d7084d5e5483a36355b/lib/srdb1/db_res.c#L112
As I mentioned before can you provide the results of the query for
version table and dispatcher table. Seems to be an issue storing the results
__FUNCTION__ = "db_mysql_store_result"
#7 0x00007ffff5fd3516 in db_do_query_internal (_h=0x7ffff6cb4e78,
_k=0x7fffffffdf70, _op=0x0, _v=0x7fffffffdf40, _c=0x7fffffffdf60, _n=1,
_nc=1, _o=0x0,
_r=0x7fffffffdf38, val2str=0x7ffff6a39374 <db_mysql_val2str>,
submit_query=0x7ffff6a2825c <db_mysql_submit_query>,
store_result=0x7ffff6a2998c <db_mysql_store_result>, _l=0) at
db_query.c:137
* tmp = 32767*
off = 63
ret = 23
mysql -h localhost -P 3306 -u root -p
mysql> use kamailiodb; <Use your kamailio Db name here>
mysql>desc version;
mysql> select count(*) from version;
mysql> select * from version;
mysql> select count(*) from dispatcher;
This will help us to see how many entries in dispatcher table.
b) Can you provide dispatcher config for kamailio.cfg ?
c) Is the SQL db server local or in a remote server?
/G
Post by 张顺通
I install a rehl 5.7 by myself, kamailio 4.1.6 can run correctly. but it
can not run on out company's server which is also rehl 5.7. How to find the
problem.I have no idea.
anyone can help?
thks
Post by 张顺通
db_new_result->pkg_malloc(qm_malloc)->qm_find_free, func qm_find_free
return 0, can not find mem when i close memdbg.
Post by 张顺通
rhel5
$cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
rhel6
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
not Embedded device, normal server.
gdb
(gdb) f 2
#2 0x0000000000615b74 in qm_debug_frag (qm=0x7ffff6c55010,
f=0x7ffff6cdcf08) at mem/q_malloc.c:161
161 abort();
(gdb) p *f
$1 = {size = 7831720, u = {nxt_free = 0x7ffff6c893f8, is_free =
140737333728248}, file = 0x7ffff6a4c93d "db_mysql: km_my_con.c",
func = 0x758307 "fragm. from qm_malloc", line = 62, check =
4042322160}
Post by Daniel-Constantin Mierla
physical machine is the same? Is it standard OS installation, or
some customizations (e.g. custom kernel modules, etc.)? Embedded device?
What CPU?
Daniel
os is rhel.
rhel6 is ok, rhel5 can not start.
2014-10-20 18:11 GMT+08:00 Daniel-Constantin Mierla <
Post by Daniel-Constantin Mierla
What are the differences between the server that works and the one
that doesn't? I mean hardware and operating system details?
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.
Daniel
4.2 have the same problem.
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.
see ka_4_2_0.log
​
ka_4_2_0.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web>
​
Post by 张顺通
ka.log is genrate by kamailio 4.1.6.
2014-10-20 17:44 GMT+08:00 Daniel-Constantin Mierla <
Post by Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC,
Post by 张顺通
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
MAX_LISTEN 16,
Post by 张顺通
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Daniel-Constantin Mierla
2014-10-20 10:28:30 UTC
Permalink
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.

Can you send the output from gdb of:

frame 2
p *f

Daniel
Post by 张顺通
4.2.0 have a core
#0 0x00007ffff7488265 in raise () from /lib64/libc.so.6
No symbol table info available.
#1 0x00007ffff7489d10 in abort () from /lib64/libc.so.6
No symbol table info available.
#2 0x0000000000615b74 in qm_debug_frag (qm=0x7ffff6c55010,
f=0x7ffff6cdcf08) at mem/q_malloc.c:161
__FUNCTION__ = "qm_debug_frag"
#3 0x0000000000616d87 in qm_malloc (qm=0x7ffff6c55010, size=56,
file=0x7ffff5fedef8 "<core>: db_res.c", func=0x7ffff5fee288
"db_new_result", line=112)
at mem/q_malloc.c:388
f = 0x7ffff6cdcf08
hash = 2057
list_cntr = 1
__FUNCTION__ = "qm_malloc"
#4 0x00007ffff5fdaa2f in db_new_result () at db_res.c:112
r = 0x0
__FUNCTION__ = "db_new_result"
#5 0x00007ffff6a386d6 in db_mysql_new_result () at km_res.c:235
obj = 0x0
__FUNCTION__ = "db_mysql_new_result"
#6 0x00007ffff6a29c7a in db_mysql_store_result (_h=0x7ffff6cb4e78,
_r=0x7fffffffdf38) at km_dbase.c:227
code = -165731152
__FUNCTION__ = "db_mysql_store_result"
#7 0x00007ffff5fd3516 in db_do_query_internal (_h=0x7ffff6cb4e78,
_k=0x7fffffffdf70, _op=0x0, _v=0x7fffffffdf40, _c=0x7fffffffdf60,
_n=1, _nc=1, _o=0x0,
_r=0x7fffffffdf38, val2str=0x7ffff6a39374 <db_mysql_val2str>,
submit_query=0x7ffff6a2825c <db_mysql_submit_query>,
store_result=0x7ffff6a2998c <db_mysql_store_result>, _l=0) at
db_query.c:137
tmp = 32767
off = 63
ret = 23
__FUNCTION__ = "db_do_query_internal"
#8 0x00007ffff5fd3fbd in db_do_query (_h=0x7ffff6cb4e78,
_k=0x7fffffffdf70, _op=0x0, _v=0x7fffffffdf40, _c=0x7fffffffdf60,
_n=1, _nc=1, _o=0x0, _r=0x7fffffffdf38,
val2str=0x7ffff6a39374 <db_mysql_val2str>,
submit_query=0x7ffff6a2825c <db_mysql_submit_query>,
store_result=0x7ffff6a2998c <db_mysql_store_result>)
at db_query.c:156
No locals.
#9 0x00007ffff6a2b04e in db_mysql_query (_h=0x7ffff6cb4e78,
_k=0x7fffffffdf70, _op=0x0, _v=0x7fffffffdf40, _c=0x7fffffffdf60,
_n=1, _nc=1, _o=0x0, _r=0x7fffffffdf38)
at km_dbase.c:323
No locals.
#10 0x00007ffff5fcd6e9 in db_table_version (dbf=0x7ffff2d1e3c0,
connection=0x7ffff6cb4e78, table=0x7ffff2d1d990) at db.c:400
key = {0x7fffffffdf20}
col = {0x7fffffffdf10}
val = {{type = DB1_STR, nul = 0, free = -167987365, val =
{int_val = -223246127, ll_val = 140737265109201, double_val =
6.9533447780108125e-310,
time_val = 140737265109201, string_val = 0x7ffff2b188d1
"dispatcher", str_val = {s = 0x7ffff2b188d1 "dispatcher", len = 10},
blob_val = {s = 0x7ffff2b188d1 "dispatcher", len = 10}, bitmap_val =
4071721169}}}
res = 0x0
ver = 0x0
version = 0x9c7be0
tmp1 = {s = 0x7ffff5feb0e1 "table_name", len = 10}
tmp2 = {s = 0x7ffff5feb0ec "table_version", len = 13}
ret = 8
__FUNCTION__ = "db_table_version"
#11 0x00007ffff2aeab2f in init_ds_db () at dispatch.c:666
ret = 297
__FUNCTION__ = "init_ds_db"
#12 0x00007ffff2b04434 in mod_init () at dispatcher.c:317
avp_spec = {type = 48, getf = 0x7fffffffe190, setf =
0x7fffffffe0d0, pvp = {pvn = {type = 16, nfree = 0x3000000028, u =
{isname = {type = -7760, name = {
n = 7292328, s = {s = 0x6f45a8 "DEBUG", len =
7555677}, re = 0x6f45a8}}, dname = 0x3ffffe1b0}}, pvi = {type =
7555621, u = {ival = -223246127,
dval = 0x7ffff2b188d1}}}, trans = 0x0}
__FUNCTION__ = "mod_init"
#13 0x000000000058f59d in init_mod (m=0x7ffff6cb3740) at sr_module.c:966
__FUNCTION__ = "init_mod"
#14 0x000000000058f8a2 in init_modules () at sr_module.c:995
t = 0x7ffff77ac500
i = 1187628493
__FUNCTION__ = "init_modules"
#15 0x00000000004aa2b0 in main (argc=5, argv=0x7fffffffe528) at
main.c:2501
cfg_stream = 0xa94020
c = -1
r = 32767
tmp = 0x7ffff7ffd000 ""
tmp_len = 32767
port = -7008
proto = 32767
options = 0x7023e0
":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"
ret = -1
seed = 39348307
rfd = 8
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0xf0b2ff
p = 0xbf <Address 0xbf out of bounds>
__FUNCTION__ = "main"
What are the differences between the server that works and the one
that doesn't? I mean hardware and operating system details?
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.
Daniel
Post by 张顺通
4.2 have the same problem.
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.
see ka_4_2_0.log
​
ka_4_2_0.log
<https://docs.google.com/file/d/0B5x1TDtoeVvAckdMbDRmT3E3UjA/edit?usp=drive_web>
​
ka.log is genrate by kamailio 4.1.6.
2014-10-20 17:44 GMT+08:00 Daniel-Constantin Mierla
Are you using 4.1 or 4.2?
Because the subject mentioned 4.2 but the version of
kamailio is 4.1
Daniel
Post by 张顺通
-M 12 can not help. all config is same.
see ka.log in attachment, kamailio version is 4.1.6
version: kamailio 4.1.6 (x86_64/linux) 010d57
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS,
USE_RAW_SOCKS,
Post by 张顺通
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM,
SHM_MMAP, PKG_MALLOC,
Post by 张顺通
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE,
Post by 张顺通
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES
Post by 张顺通
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
MAX_LISTEN 16,
Post by 张顺通
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et,
sigio_rt, select.
Post by 张顺通
id: 010d57
compiled on 16:48:03 Oct 20 2014 with gcc 4.1.2
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda
<http://twitter.com/#%21/miconda> -
http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Loading...