Fixedjitterbuf fail assertion

Hello,

I’m Tommy from Italy.

My SO is Ubuntu 14.04.4 LTS.

The asterisk version is: Aterisk 13.3.2

In last 3 days Asterisk has crashed a lot of times.

In the console the message is allways:

asterisk: fixedjitterbuf.c:210: fixed_jb_put: Assertion `now >= 0’ failed

Can you help me?

Thank You

In the core debug (I’ll send last two):

Thread 1 (Thread 0x7f9314729700 (LWP 4889)):
#0 0x00007f939881ac37 in __GI_raise (sig=sig@entry=6) at …/nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007f939881e028 in __GI_abort () at abort.c:89
#2 0x00007f9398813bf6 in __assert_fail_base (fmt=0x7f93989643b8 “%s%s%s:%u: %s%sAssertion `%s’ failed.\n%n”, assertion=assertion@entry=0x613109 “now >= 0”, file=file@entry=0x6130ba “fixedjitterbuf.c”, line=line@entry=210, function=function@entry=0x613167 <PRETTY_FUNCTION.9113> “fixed_jb_put”) at assert.c:92
#3 0x00007f9398813ca2 in __GI___assert_fail (assertion=assertion@entry=0x613109 “now >= 0”, file=file@entry=0x6130ba “fixedjitterbuf.c”, line=line@entry=210, function=function@entry=0x613167 <PRETTY_FUNCTION.9113> “fixed_jb_put”) at assert.c:101
#4 0x000000000051109d in fixed_jb_put (jb=, data=0x7f92f0009380, ms=20, ts=526288157, now=) at fixedjitterbuf.c:210
#5 0x00000000004358f4 in jb_put_fixed (jb=, fin=, now=) at abstract_jb.c:652
#6 0x0000000000435c79 in hook_event_cb (chan=, frame=0x7f9338029dc8, event=, data=0x7f939000f050) at abstract_jb.c:925
#7 0x0000000000518d2b in framehook_list_push_event (framehooks=0x7f9390001440, frame=frame@entry=0x7f9338029dc8, event=event@entry=AST_FRAMEHOOK_EVENT_READ) at framehook.c:118
#8 0x00000000005194a7 in ast_framehook_list_read_event (framehooks=, frame=frame@entry=0x7f9338029dc8) at framehook.c:322
#9 0x00000000004bb0a8 in __ast_read (chan=0x7f933805efd8, dropaudio=dropaudio@entry=0) at channel.c:3881
#10 0x00000000004bcb67 in ast_read (chan=) at channel.c:4224
#11 0x000000000047f21c in bridge_handle_trip (bridge_channel=0x7f93900063c8) at bridge_channel.c:2272
#12 bridge_channel_wait (bridge_channel=0x7f93900063c8) at bridge_channel.c:2442
#13 bridge_channel_internal_join (bridge_channel=bridge_channel@entry=0x7f93900063c8) at bridge_channel.c:2587
#14 0x000000000046aa8e in ast_bridge_join (bridge=bridge@entry=0x7f9390018f98, chan=chan@entry=0x7f933805efd8, swap=swap@entry=0x0, features=features@entry=0x7f9314725980, tech_args=tech_args@entry=0x0, flags=flags@entry=(AST_BRIDGE_JOIN_PASS_REFERENCE | AST_BRIDGE_JOIN_INHIBIT_JOIN_COLP)) at bridge.c:1626
#15 0x000000000050384f in ast_bridge_call_with_flags (chan=chan@entry=0x7f933805efd8, peer=peer@entry=0x7f939000a3a8, config=config@entry=0x7f9314725cb0, flags=flags@entry=0) at features.c:687
#16 0x0000000000503957 in ast_bridge_call (chan=chan@entry=0x7f933805efd8, peer=peer@entry=0x7f939000a3a8, config=config@entry=0x7f9314725cb0) at features.c:726
#17 0x00007f93361dd326 in dial_exec_full (chan=0x7f933805efd8, data=, peerflags=peerflags@entry=0x7f93147266e0, continue_exec=continue_exec@entry=0x0) at app_dial.c:3081
#18 0x00007f93361de3a6 in dial_exec (chan=, data=) at app_dial.c:3133
#19 0x000000000056b219 in pbx_exec (c=c@entry=0x7f933805efd8, app=app@entry=0x112f4e0, data=data@entry=0x7f9314726c40 “SIP/0957780511@Wind”) at pbx.c:1658
#20 0x0000000000575e39 in pbx_extension_helper (c=c@entry=0x7f933805efd8, context=0x7f933805f990 “internal”, exten=exten@entry=0x7f933805f9e0 “00957780511”, priority=priority@entry=3, label=label@entry=0x0, callerid=callerid@entry=0x7f93380263b0 “71835”, action=action@entry=E_SPAWN, found=found@entry=0x7f9314728cd0, combined_find_spawn=combined_find_spawn@entry=1, con=0x0) at pbx.c:4930
#21 0x000000000057ce2a in ast_spawn_extension (combined_find_spawn=1, found=0x7f9314728cd0, callerid=0x7f93380263b0 “71835”, priority=3, exten=0x7f933805f9e0 “00957780511”, context=, c=0x7f933805efd8) at pbx.c:5963
#22 __ast_pbx_run (c=c@entry=0x7f933805efd8, args=args@entry=0x0) at pbx.c:6380
#23 0x000000000057e32b in pbx_thread (data=data@entry=0x7f933805efd8) at pbx.c:6700
#24 0x00000000005db28a in dummy_start (data=) at utils.c:1232
#25 0x00007f9399302184 in start_thread (arg=0x7f9314729700) at pthread_create.c:312
#26 0x00007f93988de37d in clone () at …/sysdeps/unix/sysv/linux/x86_64/clone.S:111

Another one:

Thread 1 (Thread 0x7f48f50d3700 (LWP 4308)):
#0 0x00007f4979201c37 in __GI_raise (sig=sig@entry=6) at …/nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007f4979205028 in __GI_abort () at abort.c:89
#2 0x00007f49791fabf6 in __assert_fail_base (fmt=0x7f497934b3b8 “%s%s%s:%u: %s%sAssertion `%s’ failed.\n%n”, assertion=assertion@entry=0x613109 “now >= 0”, file=file@entry=0x6130ba “fixedjitterbuf.c”, line=line@entry=296, function=function@entry=0x613140 <PRETTY_FUNCTION.9123> “fixed_jb_get”) at assert.c:92
#3 0x00007f49791faca2 in __GI___assert_fail (assertion=assertion@entry=0x613109 “now >= 0”, file=file@entry=0x6130ba “fixedjitterbuf.c”, line=line@entry=296, function=function@entry=0x613140 <PRETTY_FUNCTION.9123> “fixed_jb_get”) at assert.c:101
#4 0x00000000005117d8 in fixed_jb_get (jb=, frame=frame@entry=0x7f48f50cb8e0, now=, interpl=) at fixedjitterbuf.c:296
#5 0x00000000004358c1 in jb_get_fixed (jb=, fout=0x7f48f50cb928, now=, interpl=) at abstract_jb.c:664
#6 0x0000000000435c24 in hook_event_cb (chan=, frame=0x8840e0 <ast_null_frame>, event=, data=0x7f4974010920) at abstract_jb.c:963
#7 0x0000000000518d2b in framehook_list_push_event (framehooks=0x7f497400d3d0, frame=frame@entry=0x8840e0 <ast_null_frame>, event=event@entry=AST_FRAMEHOOK_EVENT_READ) at framehook.c:118
#8 0x00000000005194a7 in ast_framehook_list_read_event (framehooks=, frame=frame@entry=0x8840e0 <ast_null_frame>) at framehook.c:322
#9 0x00000000004bb0a8 in __ast_read (chan=0x7f491c07de28, dropaudio=dropaudio@entry=0) at channel.c:3881
#10 0x00000000004bcb67 in ast_read (chan=) at channel.c:4224
#11 0x000000000047f21c in bridge_handle_trip (bridge_channel=0x7f4974010638) at bridge_channel.c:2272
#12 bridge_channel_wait (bridge_channel=0x7f4974010638) at bridge_channel.c:2442
#13 bridge_channel_internal_join (bridge_channel=bridge_channel@entry=0x7f4974010638) at bridge_channel.c:2587
#14 0x000000000046aa8e in ast_bridge_join (bridge=bridge@entry=0x7f4974001c58, chan=chan@entry=0x7f491c07de28, swap=swap@entry=0x0, features=features@entry=0x7f48f50cbd70, tech_args=tech_args@entry=0x0, flags=flags@entry=(AST_BRIDGE_JOIN_PASS_REFERENCE | AST_BRIDGE_JOIN_INHIBIT_JOIN_COLP)) at bridge.c:1626
#15 0x000000000050384f in ast_bridge_call_with_flags (chan=0x7f491c07de28, peer=peer@entry=0x7f497400a5f8, config=config@entry=0x7f48f50cbf50, flags=flags@entry=56) at features.c:687
#16 0x00007f48feddea58 in try_calling (qe=qe@entry=0x7f48f50cc540, opts=…, opt_args=opt_args@entry=0x7f48f50cc4d0, announceoverride=, url=, tries=tries@entry=0x7f48f50cc4a0, noption=noption@entry=0x7f48f50cc4b0, agi=0x0, macro=0x0, gosub=0x0, ringing=ringing@entry=0) at app_queue.c:6822
#17 0x00007f48fede09a5 in queue_exec (chan=, data=) at app_queue.c:7894
#18 0x000000000056b219 in pbx_exec (c=c@entry=0x7f491c07de28, app=app@entry=0x2959340, data=data@entry=0x7f48f50cdc20 “Centralino,Rn”) at pbx.c:1658
#19 0x0000000000575e39 in pbx_extension_helper (c=c@entry=0x7f491c07de28, context=0x7f491c07e7e0 “macro-coda-centralino”, exten=exten@entry=0x7f491c07e830 “s”, priority=priority@entry=10, label=label@entry=0x0, callerid=callerid@entry=0x7f491c0051f0 “0957780511”, action=action@entry=E_SPAWN, found=0x7f48f50cfd90, combined_find_spawn=combined_find_spawn@entry=1, con=0x0) at pbx.c:4930
#20 0x00000000005764f3 in ast_spawn_extension (c=c@entry=0x7f491c07de28, context=, exten=exten@entry=0x7f491c07e830 “s”, priority=priority@entry=10, callerid=callerid@entry=0x7f491c0051f0 “0957780511”, found=, combined_find_spawn=combined_find_spawn@entry=1) at pbx.c:5963
#21 0x00007f490a19ad7f in _macro_exec (chan=, data=, exclusive=) at app_macro.c:417
#22 0x000000000056b219 in pbx_exec (c=c@entry=0x7f491c07de28, app=app@entry=0x24d3410, data=data@entry=0x7f48f50d0c40 “coda-centralino”) at pbx.c:1658
#23 0x0000000000575e39 in pbx_extension_helper (c=c@entry=0x7f491c07de28, context=0x7f491c07e7e0 “macro-coda-centralino”, exten=exten@entry=0x7f491c07e830 “s”, priority=priority@entry=1, label=label@entry=0x0, callerid=callerid@entry=0x7f491c0051f0 “0957780511”, action=action@entry=E_SPAWN, found=found@entry=0x7f48f50d2cd0, combined_find_spawn=combined_find_spawn@entry=1, con=0x0) at pbx.c:4930
#24 0x000000000057ce2a in ast_spawn_extension (combined_find_spawn=1, found=0x7f48f50d2cd0, callerid=0x7f491c0051f0 “0957780511”, priority=1, exten=0x7f491c07e830 “s”, context=, c=0x7f491c07de28) at pbx.c:5963
#25 __ast_pbx_run (c=c@entry=0x7f491c07de28, args=args@entry=0x0) at pbx.c:6380
#26 0x000000000057e32b in pbx_thread (data=data@entry=0x7f491c07de28) at pbx.c:6700
#27 0x00000000005db28a in dummy_start (data=) at utils.c:1232
#28 0x00007f4979ce9184 in start_thread (arg=0x7f48f50d3700) at pthread_create.c:312
#29 0x00007f49792c537d in clone () at …/sysdeps/unix/sysv/linux/x86_64/clone.S:111

I’d suggest filing an issue on the issue tracker[1] instead of here. Please provide (as attachments) the complete console log, information on the environment, and configuration details.

[1] https://issues.asterisk.org/jira

Thanks jcolp.

I Will try there.