Looking at the Asterisk 13 code, the max is set to 1024 * 1024 which is greater than 65536:
The pool is created using:
The latest crash shows:
How do I raise a ticket regarding this?
Regards,
Ross
From: pjsip <pjsip-bounces@xxxxxxxxxxxxxxx> on behalf of Ross Beer <ross.beer@xxxxxxxxxxx>
Sent: 05 July 2016 20:21 To: pjsip list Subject: Re: Segfault in chan cpool_release_pool Hi Anik,
Thank you for your reply, one quick question. Where should pj_caching_pool_init max_capacity be defined, is there a parameter to set in config_site.h?
Regards,
Ross From: pjsip <pjsip-bounces@xxxxxxxxxxxxxxx> on behalf of Anik Dasgupta <anikdg123@xxxxxxxxx>
Sent: 05 July 2016 16:35 To: pjsip list Subject: Re: Segfault in chan cpool_release_pool Hi ,
I have worked a bit with pjnath and faced this segfault.
My trace was like this ..
#0 0x00000032cb632625 in raise () from /lib64/libc.so.6
No symbol table info available.
#1 0x00000032cb633e05 in abort () from /lib64/libc.so.6
No symbol table info available.
#2 0x00000032cb670537 in __libc_message () from /lib64/libc.so.6
No symbol table info available.
#3 0x00000032cb675f4e in malloc_printerr () from /lib64/libc.so.6
No symbol table info available.
#4 0x00000032cb678cf0 in _int_free () from /lib64/libc.so.6
No symbol table info available.
#5 0x0000000000462fa6 in cpool_release_pool ()
No symbol table info available.
#6 0x000000000043664a in destroy_tdata ()
No symbol table info available.
#7 0x000000000046672d in pj_timer_heap_poll ()
No symbol table info available.
#8 0x000000000040b4e4 in handle_events (max_msec=500, p_count=0x0, thread_index=0x6d3560) at ice.cpp:87
timeout = {sec = 0, msec = 0}
count = 0
c = 0
__PRETTY_FUNCTION__ = "pj_status_t handle_events(unsigned int, unsigned int*, void*)"
max_timeout = {sec = 0, msec = 500}
net_event_count = 0
index = 7
#9 0x000000000040b7d7 in icedemo_worker_thread (unused=0x6d3560) at ice.cpp:168
thread_check = 7
thread_id = 140737198937856
my_set = {__bits = {16, 0 <repeats 15 times>}}
#10 0x000000000045befa in thread_main ()
No symbol table info available.
#11 0x00000032cba07aa1 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#12 0x00000032cb6e893d in clone () from /lib64/libc.so.6
No symbol table info available.
(gdb)
0 0x00000032cb632625 in raise () from /lib64/libc.so.6
#1 0x00000032cb633e05 in abort () from /lib64/libc.so.6
#2 0x00000032cb670537 in __libc_message () from /lib64/libc.so.6
#3 0x00000032cb675f4e in malloc_printerr () from /lib64/libc.so.6
#4 0x00000032cb678cf0 in _int_free () from /lib64/libc.so.6
#5 0x0000000000462fa6 in cpool_release_pool ()
#6 0x000000000043664a in destroy_tdata ()
#7 0x000000000046672d in pj_timer_heap_poll ()
#8 0x000000000040b4e4 in handle_events (max_msec=500, p_count=0x0, thread_index=0x6d3560) at ice.cpp:87
#9 0x000000000040b7d7 in icedemo_worker_thread (unused=0x6d3560) at ice.cpp:168
#10 0x000000000045befa in thread_main ()
#11 0x00000032cba07aa1 in start_thread () from /lib64/libpthread.so.0
#12 0x00000032cb6e893d in clone () from /lib64/libc.so.6
I have set the pj_caching_pool_init max_capacity parameter to 65536. Since that I haven't got segfault in this .
I am not sure whether this is the correct solution. But most probably it worked for me, since I haven't encountered it again.
On Tue, Jul 5, 2016 at 8:32 PM, Ross Beer
<ross.beer@xxxxxxxxxxx> wrote:
|
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org