Discussion:
[SR-Users] Kamailio 4.1.6 htable issue
José Seabra
2014-10-13 14:03:54 UTC
Permalink
Hello there,
I upgraded my kamailio version from 4.0.6 to 4.1.6 and now when i try start
kamailio it breaks down on htable module initialization, as you can see on
logs bellow:

0(1273) DEBUG: <core> [sr_module.c:966]: init_mod(): DEBUG: init_mod:
presence_profile
0(1273) DEBUG: <core> [sr_module.c:701]: find_mod_export_record():
find_export_record: found <bind_presence> in module presence
[/usr/local/lib64/kamailio/modules/presence.so]
0(1273) DEBUG: presence [event_list.c:351]: search_event(): start event=
[ua-profile/7]
0(1273) DEBUG: presence [event_list.c:351]: search_event(): start event=
[ua-profile.winfo/0]
0(1273) DEBUG: presence [event_list.c:259]: add_event(): successfully
added event: ua-profile - len= 10
0(1273) DEBUG: <core> [sr_module.c:966]: init_mod(): DEBUG: init_mod:
htable
0(1273) ERROR: htable [ht_api.c:282]: ht_init_tables(): no more shm for
[dlg]
0(1273) ERROR: <core> [sr_module.c:970]: init_mod(): init_mod(): Error
while initializing module htable
(/usr/local/lib64/kamailio/modules/htable.so)
ERROR: error while initializing modules
0(1273) : <core> [mem/q_malloc.c:468]: qm_free(): BUG: qm_free: freeing
already freed pointer (0x7fae605547c0), called from htable: ht_api.c:
ht_destroy(343), first free htable: ht_api.c: ht_destroy(343) - aborting
0(1271) ERROR: <core> [daemonize.c:307]: daemonize(): Main process exited
before writing to pipe

The shared memory allocated for kamailio is 256MB and is the same that i
had for version 4.0.1, can this be a bug?

Thank you for your support
--
Cumprimentos
José Seabra
Daniel-Constantin Mierla
2014-10-13 15:46:48 UTC
Permalink
Hello,

what is the definition of htable dlg? It seems that you define it with a
lot of slots -- in older versions there was a limit of 2^14 which was
set if a higher value was given. Now that was removed, as people wanted
larger hash tables, but it can be easy to occupy the memory if the
parameter is not appropriate value.

Cheers,
Daniel
Post by José Seabra
Hello there,
I upgraded my kamailio version from 4.0.6 to 4.1.6 and now when i try
start kamailio it breaks down on htable module initialization, as you
presence_profile
find_export_record: found <bind_presence> in module presence
[/usr/local/lib64/kamailio/modules/presence.so]
0(1273) DEBUG: presence [event_list.c:351]: search_event(): start
event= [ua-profile/7]
0(1273) DEBUG: presence [event_list.c:351]: search_event(): start
event= [ua-profile.winfo/0]
0(1273) DEBUG: presence [event_list.c:259]: add_event(): successfully
added event: ua-profile - len= 10
htable
0(1273) ERROR: htable [ht_api.c:282]: ht_init_tables(): no more shm
for [dlg]
Error while initializing module htable
(/usr/local/lib64/kamailio/modules/htable.so)
ERROR: error while initializing modules
ht_destroy(343) - aborting
0(1271) ERROR: <core> [daemonize.c:307]: daemonize(): Main process
exited before writing to pipe
The shared memory allocated for kamailio is 256MB and is the same that
i had for version 4.0.1, can this be a bug?
Thank you for your support
--
Cumprimentos
José Seabra
_______________________________________________
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
José Seabra
2014-10-14 08:59:59 UTC
Permalink
Hi Daniel,
Thank you for your reply,
The size of my hashtable "dlg" was too high, I reduced the size of this
hashtable and now kamailio is starting correctly.

BR
José
Post by Daniel-Constantin Mierla
Hello,
what is the definition of htable dlg? It seems that you define it with a
lot of slots -- in older versions there was a limit of 2^14 which was set
if a higher value was given. Now that was removed, as people wanted larger
hash tables, but it can be easy to occupy the memory if the parameter is
not appropriate value.
Cheers,
Daniel
Hello there,
I upgraded my kamailio version from 4.0.6 to 4.1.6 and now when i try
start kamailio it breaks down on htable module initialization, as you can
presence_profile
find_export_record: found <bind_presence> in module presence
[/usr/local/lib64/kamailio/modules/presence.so]
0(1273) DEBUG: presence [event_list.c:351]: search_event(): start event=
[ua-profile/7]
0(1273) DEBUG: presence [event_list.c:351]: search_event(): start event=
[ua-profile.winfo/0]
0(1273) DEBUG: presence [event_list.c:259]: add_event(): successfully
added event: ua-profile - len= 10
htable
0(1273) ERROR: htable [ht_api.c:282]: ht_init_tables(): no more shm for
[dlg]
0(1273) ERROR: <core> [sr_module.c:970]: init_mod(): init_mod(): Error
while initializing module htable
(/usr/local/lib64/kamailio/modules/htable.so)
ERROR: error while initializing modules
0(1273) : <core> [mem/q_malloc.c:468]: qm_free(): BUG: qm_free: freeing
ht_destroy(343), first free htable: ht_api.c: ht_destroy(343) - aborting
0(1271) ERROR: <core> [daemonize.c:307]: daemonize(): Main process exited
before writing to pipe
The shared memory allocated for kamailio is 256MB and is the same that i
had for version 4.0.1, can this be a bug?
Thank you for your support
--
Cumprimentos
José Seabra
_______________________________________________
--
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
--
Cumprimentos
José Seabra
Daniel-Constantin Mierla
2014-10-14 13:41:49 UTC
Permalink
Hello,

thanks for reporting back to clarify what was the issue -- good to hear
is works!

Cheers,
Daniel
Post by José Seabra
Hi Daniel,
Thank you for your reply,
The size of my hashtable "dlg" was too high, I reduced the size of
this hashtable and now kamailio is starting correctly.
BR
José
Hello,
what is the definition of htable dlg? It seems that you define it
with a lot of slots -- in older versions there was a limit of 2^14
which was set if a higher value was given. Now that was removed,
as people wanted larger hash tables, but it can be easy to occupy
the memory if the parameter is not appropriate value.
Cheers,
Daniel
Post by José Seabra
Hello there,
I upgraded my kamailio version from 4.0.6 to 4.1.6 and now when i
try start kamailio it breaks down on htable module
init_mod: presence_profile
find_mod_export_record(): find_export_record: found
<bind_presence> in module presence
[/usr/local/lib64/kamailio/modules/presence.so]
start event= [ua-profile/7]
start event= [ua-profile.winfo/0]
successfully added event: ua-profile - len= 10
init_mod: htable
0(1273) ERROR: htable [ht_api.c:282]: ht_init_tables(): no more
shm for [dlg]
Error while initializing module htable
(/usr/local/lib64/kamailio/modules/htable.so)
ERROR: error while initializing modules
freeing already freed pointer (0x7fae605547c0), called from
ht_destroy(343) - aborting
0(1271) ERROR: <core> [daemonize.c:307]: daemonize(): Main
process exited before writing to pipe
The shared memory allocated for kamailio is 256MB and is the same
that i had for version 4.0.1, can this be a bug?
Thank you for your support
--
Cumprimentos
José Seabra
_______________________________________________
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://twitter.com/#%21/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
--
Cumprimentos
José Seabra
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Loading...