Asterisk segfault

Using FreePBX: 14.0.5.25
Asterisk: 13.22.0
without virtualization

Sometimes for a month, or maybe several times a day Asterisk segfault.

asterisk[15547]: segfault at 98 ip 000000000051a9f9 sp 00007f24e03a7190 error 4 in asterisk[400000+38d000]

In dump i see:

[2020-04-19 10:04:05] ERROR[15547][C-00003b92] astobj2.c: Excessive refcount 100000 reached on ao2 object 0x2f6de68
[2020-04-19 10:04:05] ERROR[15547][C-00003b92] astobj2.c: FRACK!, Failed assertion Excessive refcount 100000 reached on ao2 object 0x2f6de68 (0)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: Got 32 backtrace records
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #0: [0x5fcc55] asterisk __ast_assert_failed() (0x5fcbd1+84)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #1: [0x45d4bd] asterisk ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #2: [0x45d816] asterisk __ao2_ref() (0x45d7e8+2E)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #3: [0x52169c] asterisk ast_frdup() (0x521430+26C)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #4: [0x48211f] asterisk ast_bridge_channel_queue_frame() (0x4820aa+75)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #5: [0x482411] asterisk ast_bridge_queue_everyone_else() (0x4823b7+5A)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #6: [0x7f4741da7a18] bridge_simple.so ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #7: [0x4816a8] asterisk ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #8: [0x485fc7] asterisk ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #9: [0x4863b9] asterisk ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #10: [0x486ab7] asterisk bridge_channel_internal_join() (0x48656f+548)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #11: [0x46d1c1] asterisk ast_bridge_join() (0x46cf59+268)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #12: [0x50b07d] asterisk ast_bridge_call_with_flags() (0x50aed6+1A7)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #13: [0x50b14f] asterisk ast_bridge_call() (0x50b122+2D)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #14: [0x7f474116d667] app_dial.so ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #15: [0x7f474116d9fe] app_dial.so ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #16: [0x582ef6] asterisk pbx_exec() (0x582dda+11C)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #17: [0x570787] asterisk ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #18: [0x573c6a] asterisk ast_spawn_extension() (0x573c06+64)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #19: [0x7f473cf362d4] app_macro.so ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #20: [0x7f473cf37552] app_macro.so ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #21: [0x582ef6] asterisk pbx_exec() (0x582dda+11C)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #22: [0x570787] asterisk ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #23: [0x573c6a] asterisk ast_spawn_extension() (0x573c06+64)
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #24: [0x7f473cf362d4] app_macro.so ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #25: [0x7f473cf37552] app_macro.so ()
[2020-04-19 10:04:05] VERBOSE[15547][C-00003b92] logger.c: #26: [0x582ef6] asterisk pbx_exec() (0x582dda+11C)

Can anyone help?

Asterisk 13.22.0 is quite old now, and there have been fixes in those areas. I would suggest upgrading. If the problem still occurs then an Asterisk issue would likely need to be filed.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.