Stasis/control.c: FRACK!, Failed assertion bad magic number

I have asterisk 15.3 and it keeps crashing with this line
stasis/control.c: FRACK!, Failed assertion bad magic number

before this error i always see this message with a channel name

Channel IAX2/2_1-10099 has a PBX thread and cannot be imparted into bridge 3cdd7200-ed20-403d-a6d9-53c2db73ed2c

bt looks like this

#0 0x0000000000462c15 in __ao2_ref (user_data=0x8888888888888888, delta=1, tag=0x663549 “”, file=0x66430b “channel.c”, line=10502,
func=0x669f30 <PRETTY_FUNCTION.22900> “ast_channel_get_bridge_channel”) at astobj2.c:464
#1 0x00000000004dbf87 in ast_channel_get_bridge_channel (chan=0x91e95a <__ast_string_field_empty_buffer+2>) at channel.c:10502
#2 0x00007f0830d9c7dc in dial_bridge_after_cb (chan=0x91e95a <__ast_string_field_empty_buffer+2>, data=0x7f0710002548) at stasis/control.c:914
#3 0x00007f0830d9c9d0 in dial_bridge_after_cb_failed (reason=AST_BRIDGE_AFTER_CB_REASON_DESTROY, data=0x7f0710002548) at stasis/control.c:929
#4 0x000000000047fe9c in after_bridge_cb_failed (node=0x7f0710033db0) at bridge_after.c:70
#5 0x000000000047ff77 in after_bridge_cb_run_discard (after_bridge=0x7f0710002650, reason=AST_BRIDGE_AFTER_CB_REASON_DESTROY) at bridge_after.c:99
#6 0x000000000047ffb1 in after_bridge_cb_destroy (data=0x7f0710002650) at bridge_after.c:117
#7 0x000000000050950e in ast_datastore_free (datastore=0x7f0710002120) at datastore.c:68
#8 0x00000000004c239d in ast_channel_destructor (obj=0x7f070403e208) at channel.c:2254
#9 0x0000000000463216 in __ao2_ref (user_data=0x7f070403e208, delta=-1, tag=0x663549 “”, file=0x66430b “channel.c”, line=2656,
func=0x668fe8 <PRETTY_FUNCTION.20245> “ast_hangup”) at astobj2.c:576
#10 0x00000000004c3bef in ast_hangup (chan=0x7f070403e208) at channel.c:2656
#11 0x00000000005a149a in __ast_pbx_run (c=0x7f070403e208, args=0x0) at pbx.c:4561
#12 0x00000000005a1861 in pbx_thread (data=0x7f070403e208) at pbx.c:4653
#13 0x000000000063c0b0 in dummy_start (data=0x7f070400f390) at utils.c:1257
#14 0x00007f08365d06ba in start_thread (arg=0x7f05f64ef700) at pthread_create.c:333
#15 0x00007f083586541d in clone () at …/sysdeps/unix/sysv/linux/x86_64/clone.S:109

Any pointers to what the issue could be and how to debug ?

You also have an issue you created[1] so I’m not going to duplicate things in two places. That issue will be triaged in time.

[1] https://issues.asterisk.org/jira/browse/ASTERISK-27756