[asterisk-bugs] [JIRA] (ASTERISK-26664) pj_thread_register() assertion
Bernhard Schmidt (JIRA)
noreply at issues.asterisk.org
Sun Dec 18 15:47:09 CST 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bernhard Schmidt updated ASTERISK-26664:
----------------------------------------
Attachment: paste_903006
GDB Backtrace
> pj_thread_register() assertion
> ------------------------------
>
> Key: ASTERISK-26664
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26664
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_pjsip
> Affects Versions: 13.13.0, 13.13.1
> Environment: Linux, Debian unstable
> Reporter: Bernhard Schmidt
> Attachments: paste_903006
>
>
> When a system pjproject library is used with assertions enabled (NDEBUG=0) answering an incoming call leads to the following assertion:
> {noformat}
> asterisk: ../src/pj/os_core_unix.c:692: pj_thread_this: Assertion `!"Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() " "before calling any pjlib functions."' failed.
> Aborted
> {noformat}
> This is caused by this commit: https://github.com/asterisk/asterisk/commit/2b9ad3a5f736b6a4081e172f2a6d35dcd20b51e4
> A production build / embedded pjproject build does not fail since assertions are disabled there. But this still points to a programming error in chan_pjsip (as the assertion says, calling pjlib functions from an unregistered thread).
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list