this kind of crash has occurred a few times now with kamailio 4.0:
Program terminated with signal 11, Segmentation fault. #0 0xb56b41bd in wb_timer (_r=<optimized out>) at urecord.c:319 319 urecord.c: No such file or directory. (gdb) where #0 0xb56b41bd in wb_timer (_r=<optimized out>) at urecord.c:319 #1 0xb56a9602 in mem_timer_udomain (_d=0xa59574e8, istart=0, istep=1) at udomain.c:879 #2 0xb569ae3e in synchronize_all_udomains (istart=0, istep=1) at dlist.c:742 #3 0xb56b0fff in destroy () at ul_mod.c:489 #4 0x0811408c in destroy_modules () at sr_module.c:790 #5 0x0809c6ec in cleanup (show_status=1) at main.c:573 #6 0x0809d529 in shutdown_children (show_status=1, sig=<optimized out>) at main.c:715 #7 0x0809e800 in handle_sigs () at main.c:806 #8 0x0809fe18 in main_loop () at main.c:1767 #9 0x080a1bbe in main (argc=17, argv=0xbff02f74) at main.c:2566
would be nice to get it fixed.
-- juha
Hello,
can you give also the output for 'bt full'? Is it latest from branch 4.0 or what specific 4.0.x is?
Cheers, Daniel
On 11/18/13 10:20 AM, jh@tutpro.com wrote:
this kind of crash has occurred a few times now with kamailio 4.0:
Program terminated with signal 11, Segmentation fault. #0 0xb56b41bd in wb_timer (_r=<optimized out>) at urecord.c:319 319 urecord.c: No such file or directory. (gdb) where #0 0xb56b41bd in wb_timer (_r=<optimized out>) at urecord.c:319 #1 0xb56a9602 in mem_timer_udomain (_d=0xa59574e8, istart=0, istep=1) at udomain.c:879 #2 0xb569ae3e in synchronize_all_udomains (istart=0, istep=1) at dlist.c:742 #3 0xb56b0fff in destroy () at ul_mod.c:489 #4 0x0811408c in destroy_modules () at sr_module.c:790 #5 0x0809c6ec in cleanup (show_status=1) at main.c:573 #6 0x0809d529 in shutdown_children (show_status=1, sig=<optimized out>) at main.c:715 #7 0x0809e800 in handle_sigs () at main.c:806 #8 0x0809fe18 in main_loop () at main.c:1767 #9 0x080a1bbe in main (argc=17, argv=0xbff02f74) at main.c:2566
would be nice to get it fixed.
-- juha
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
One more thing, give also the output for:
p *ptr
in frame 0, if not printed by the bt full.
Cheers, Daniel On 11/18/13 10:33 AM, Daniel-Constantin Mierla wrote:
Hello,
can you give also the output for 'bt full'? Is it latest from branch 4.0 or what specific 4.0.x is?
Cheers, Daniel
On 11/18/13 10:20 AM, jh@tutpro.com wrote:
this kind of crash has occurred a few times now with kamailio 4.0:
Program terminated with signal 11, Segmentation fault. #0 0xb56b41bd in wb_timer (_r=<optimized out>) at urecord.c:319 319 urecord.c: No such file or directory. (gdb) where #0 0xb56b41bd in wb_timer (_r=<optimized out>) at urecord.c:319 #1 0xb56a9602 in mem_timer_udomain (_d=0xa59574e8, istart=0, istep=1) at udomain.c:879 #2 0xb569ae3e in synchronize_all_udomains (istart=0, istep=1) at dlist.c:742 #3 0xb56b0fff in destroy () at ul_mod.c:489 #4 0x0811408c in destroy_modules () at sr_module.c:790 #5 0x0809c6ec in cleanup (show_status=1) at main.c:573 #6 0x0809d529 in shutdown_children (show_status=1, sig=<optimized out>) at main.c:715 #7 0x0809e800 in handle_sigs () at main.c:806 #8 0x0809fe18 in main_loop () at main.c:1767 #9 0x080a1bbe in main (argc=17, argv=0xbff02f74) at main.c:2566
would be nice to get it fixed.
-- juha
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
So the pointer is invalid. That is probably one of the ->next fields in usrloc records list.
Can you go to frame 1 and print ptr there:
frame 1 p *ptr
The interesting file should be the ptr->next.
If it is not 0x696c2f36, then print *ptr->next, then *ptr->next->next until it gets the ->next value 0x696c2f36. I wonder if there are other invalid values on the ptr, or just ->next.
Cheers, Daniel
On 11/18/13 10:48 AM, jh@tutpro.com wrote:
One more thing, give also the output for:
p *ptr
in frame 0, if not printed by the bt full.
(gdb) frame 0 #0 0xb56b41bd in wb_timer (_r=<optimized out>) at urecord.c:319 319 in urecord.c (gdb) p *ptr Cannot access memory at address 0x696c2f36 (gdb)
-- juha
As this is happening at shut down, does usrloc have a lot of records? Is it taking long to shut down? There is a force killing interval for long shut downs.
Cheers, Daniel
On 11/18/13 10:53 AM, Daniel-Constantin Mierla wrote:
So the pointer is invalid. That is probably one of the ->next fields in usrloc records list.
Can you go to frame 1 and print ptr there:
frame 1 p *ptr
The interesting file should be the ptr->next.
If it is not 0x696c2f36, then print *ptr->next, then *ptr->next->next until it gets the ->next value 0x696c2f36. I wonder if there are other invalid values on the ptr, or just ->next.
Cheers, Daniel
On 11/18/13 10:48 AM, jh@tutpro.com wrote:
One more thing, give also the output for:
p *ptr
in frame 0, if not printed by the bt full.
(gdb) frame 0 #0 0xb56b41bd in wb_timer (_r=<optimized out>) at urecord.c:319 319 in urecord.c (gdb) p *ptr Cannot access memory at address 0x696c2f36 (gdb)
-- juha
can you give also the output for 'bt full'? Is it latest from branch 4.0 or what specific 4.0.x is?
below is bt full. version is 4.0 branch from git as it was at about oct 22.
-- juha
Program terminated with signal 11, Segmentation fault. #0 0xb56b41bd in wb_timer (_r=<optimized out>) at urecord.c:319 319 urecord.c: No such file or directory. (gdb) bt full #0 0xb56b41bd in wb_timer (_r=<optimized out>) at urecord.c:319 ptr = 0x696c2f36 old_state = <optimized out> op = 136469144 res = 136469144 __FUNCTION__ = "wb_timer" #1 0xb56a9602 in mem_timer_udomain (_d=0xa59574e8, istart=0, istep=1) at udomain.c:879 ptr = 0xa5ad0048 i = 425 #2 0xb569ae3e in synchronize_all_udomains (istart=0, istep=1) at dlist.c:742 res = <optimized out> ptr = 0xa59574a8 #3 0xb56b0fff in destroy () at ul_mod.c:489 __FUNCTION__ = "destroy" #4 0x0811408c in destroy_modules () at sr_module.c:790 t = <optimized out> foo = 0xb64106f8 #5 0x0809c6ec in cleanup (show_status=1) at main.c:573 memlog = <optimized out> __FUNCTION__ = "cleanup" #6 0x0809d529 in shutdown_children (show_status=1, sig=<optimized out>) at main.c:715 No locals. #7 0x0809e800 in handle_sigs () at main.c:806 chld = 0 chld_status = 139 memlog = <optimized out> __FUNCTION__ = "handle_sigs" #8 0x0809fe18 in main_loop () at main.c:1767 i = 8 pid = <optimized out> si = 0x0 si_desc = "udp receiver child=7 sock=85.134.34.186:5070\000\000\000\000\064/B\267\230\360|\266\n\000\000\000\060\361T\245\070.\360\277\210;}\266\004\000\000\000\033\000\000\000\066\360R\267\001\000\000\000\000\000\000\000\004\000\000\000<\242*\b\b\000\000\000(.\360\277\002\000\000\000d\242*\b\b\000\000\000\070.\360\277IJ\r\b" nrprocs = 8 __FUNCTION__ = "main_loop" #9 0x080a1bbe in main (argc=17, argv=0xbff02f74) at main.c:2566 cfg_stream = 0x8 c = <optimized out> r = 136469144 tmp = 0xbff03ec4 "" tmp_len = 136044608 port = <optimized out> proto = <optimized out> ret = <optimized out> seed = 3909206202 rfd = <optimized out> debug_save = 0 debug_flag = <optimized out> dont_fork_cnt = 8 n_lst = <optimized out> p = <optimized out> __FUNCTION__ = "main"