[asterisk-bugs] [JIRA] (ASTERISK-29731) FRACK!, Failed assertion bad magic number 0x0 for object

Luke Escude (JIRA) noreply at issues.asterisk.org
Wed Nov 10 15:11:49 CST 2021


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luke Escude updated ASTERISK-29731:
-----------------------------------

    Description: 
Hello, playing around with outbound PUBLISH capabilities and ran into a bug.

When changing an outbound-publish context in pjsip.conf a core reload will throw the following errors:

[Nov 10 21:03:59] WARNING[8849]: res_pjsip_exten_state.c:658 exten_state_publisher_cb: PUBLISH client 'send-blfs-1' has no from_uri or server_uri defined.
[Nov 10 21:03:59] ERROR[8849]: res_pjsip_outbound_publish.c:561 sip_outbound_publish_client_get_publisher: FRACK!, Failed assertion bad magic number 0x0 for object 0x20a1d20 (0)
[Nov 10 21:03:59] ERROR[8849]:   Got 12 backtrace records
# 0: asterisk() [0x45da16]
# 1: asterisk() [0x460b63]
# 2: asterisk(__ao2_find+0x2e) [0x460d6e]
# 3: /usr/lib64/asterisk/modules/res_pjsip_outbound_publish.so(ast_sip_publish_client_get_user_from_uri+0x6e) [0x7f246cab022e]
# 4: /usr/lib64/asterisk/modules/res_pjsip_exten_state.so(+0x2f0a) [0x7f2465c92f0a]
# 5: asterisk(ast_taskprocessor_execute+0xbe) [0x5982ae]
# 6: asterisk() [0x59f380]
# 7: asterisk(ast_taskprocessor_execute+0xbe) [0x5982ae]
# 8: asterisk() [0x59ff90]
# 9: asterisk() [0x5a79c9]
#10: /lib64/libpthread.so.0(+0x7ea5) [0x7f24d34caea5]
#11: /lib64/libc.so.6(clone+0x6d) [0x7f24d2568b0d]


Even though from_uri and server_uri haven't changed.

To fix, an asterisk restart is required.

Here is the outbound publish context in question:

[send-blfs-1]
type=outbound-publish
transport=transport-tcp
server_uri=sip:SIPPROXY;transport=tcp
from_uri=sip:USER at SIPPROXY
event=dialog
multi_user=yes
@body=application/dialog-info+xml
@context=from-internal

  was:
Hello, playing around with outbound PUBLISH capabilities and ran into a bug.

When changing an outbound-publish context in pjsip.conf a core reload will through the following errors:

[Nov 10 21:03:59] WARNING[8849]: res_pjsip_exten_state.c:658 exten_state_publisher_cb: PUBLISH client 'send-blfs-1' has no from_uri or server_uri defined.
[Nov 10 21:03:59] ERROR[8849]: res_pjsip_outbound_publish.c:561 sip_outbound_publish_client_get_publisher: FRACK!, Failed assertion bad magic number 0x0 for object 0x20a1d20 (0)
[Nov 10 21:03:59] ERROR[8849]:   Got 12 backtrace records
# 0: asterisk() [0x45da16]
# 1: asterisk() [0x460b63]
# 2: asterisk(__ao2_find+0x2e) [0x460d6e]
# 3: /usr/lib64/asterisk/modules/res_pjsip_outbound_publish.so(ast_sip_publish_client_get_user_from_uri+0x6e) [0x7f246cab022e]
# 4: /usr/lib64/asterisk/modules/res_pjsip_exten_state.so(+0x2f0a) [0x7f2465c92f0a]
# 5: asterisk(ast_taskprocessor_execute+0xbe) [0x5982ae]
# 6: asterisk() [0x59f380]
# 7: asterisk(ast_taskprocessor_execute+0xbe) [0x5982ae]
# 8: asterisk() [0x59ff90]
# 9: asterisk() [0x5a79c9]
#10: /lib64/libpthread.so.0(+0x7ea5) [0x7f24d34caea5]
#11: /lib64/libc.so.6(clone+0x6d) [0x7f24d2568b0d]


Even though from_uri and server_uri haven't changed.

To fix, an asterisk restart is required.

Here is the outbound publish context in question:

[send-blfs-1]
type=outbound-publish
transport=transport-tcp
server_uri=sip:SIPPROXY;transport=tcp
from_uri=sip:USER at SIPPROXY
event=dialog
multi_user=yes
@body=application/dialog-info+xml
@context=from-internal


> FRACK!, Failed assertion bad magic number 0x0 for object
> --------------------------------------------------------
>
>                 Key: ASTERISK-29731
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29731
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_pubsub
>    Affects Versions: 16.22.0
>            Reporter: Luke Escude
>
> Hello, playing around with outbound PUBLISH capabilities and ran into a bug.
> When changing an outbound-publish context in pjsip.conf a core reload will throw the following errors:
> [Nov 10 21:03:59] WARNING[8849]: res_pjsip_exten_state.c:658 exten_state_publisher_cb: PUBLISH client 'send-blfs-1' has no from_uri or server_uri defined.
> [Nov 10 21:03:59] ERROR[8849]: res_pjsip_outbound_publish.c:561 sip_outbound_publish_client_get_publisher: FRACK!, Failed assertion bad magic number 0x0 for object 0x20a1d20 (0)
> [Nov 10 21:03:59] ERROR[8849]:   Got 12 backtrace records
> # 0: asterisk() [0x45da16]
> # 1: asterisk() [0x460b63]
> # 2: asterisk(__ao2_find+0x2e) [0x460d6e]
> # 3: /usr/lib64/asterisk/modules/res_pjsip_outbound_publish.so(ast_sip_publish_client_get_user_from_uri+0x6e) [0x7f246cab022e]
> # 4: /usr/lib64/asterisk/modules/res_pjsip_exten_state.so(+0x2f0a) [0x7f2465c92f0a]
> # 5: asterisk(ast_taskprocessor_execute+0xbe) [0x5982ae]
> # 6: asterisk() [0x59f380]
> # 7: asterisk(ast_taskprocessor_execute+0xbe) [0x5982ae]
> # 8: asterisk() [0x59ff90]
> # 9: asterisk() [0x5a79c9]
> #10: /lib64/libpthread.so.0(+0x7ea5) [0x7f24d34caea5]
> #11: /lib64/libc.so.6(clone+0x6d) [0x7f24d2568b0d]
> Even though from_uri and server_uri haven't changed.
> To fix, an asterisk restart is required.
> Here is the outbound publish context in question:
> [send-blfs-1]
> type=outbound-publish
> transport=transport-tcp
> server_uri=sip:SIPPROXY;transport=tcp
> from_uri=sip:USER at SIPPROXY
> event=dialog
> multi_user=yes
> @body=application/dialog-info+xml
> @context=from-internal



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list