<p>Using python-requests to generate a MESSAGE injected via jsonrpcs, Kamailio (built from the 5.0 branch @ <a href="https://github.com/kamailio/kamailio/commit/49bafac8c6f50a17e44ff3ef350b95d1a51efa8c" class="commit-link"><tt>49bafac</tt></a>) dumps core. This did not occur in 4.4.5. See attached gdb output.<br>
<a href="https://github.com/kamailio/kamailio/files/835428/kamailio-coredump-jsonrpcs-message.txt">kamailio-coredump-jsonrpcs-message.txt</a></p>
<pre><code>"""
Generate a SIP MESSAGE via Kamailio's jsonrpcs module
"""
headers = ("From: <{0}>\r\n"
"To: <{1}>\r\n"
"Max-Forwards: 1\r\n"
"X-Kamailio-Message: noreply\r\n"
"Content-Type: text/plain; "
"charset=utf-8\r\n").format(self.sender, self.recipient)
content = {
'id': 1,
'jsonrpc': '2.0',
'method': 'tm.t_uac_start',
'params': [
'MESSAGE',
self.recipient,
SIP_NEXTHOP,
'.',
headers,
self.body
]
}
# http://docs.python-requests.org/en/latest/user/quickstart/
try:
r = requests.post(KAMAILIO_RPC_URL, allow_redirects=False,
json=content, timeout=5)
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1030">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZbNah8pMMbLapAhWc6pJsJz5qXYGks5rkgMpgaJpZM4MaD0h">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZYR6iJB_E0MyNaE2bYcYDiXL3wDHks5rkgMpgaJpZM4MaD0h.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1030"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Kamailio 5 coredump 11 (SEGV) upcon receiving MESSAGE via jsonrpcs (#1030)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1030"}}}</script>