<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas",serif;}
span.EmailStyle22
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-AU link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Hi Liviu,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Thanks for your response. I’m still experiencing the segfault after upgrading to 3.2.2.<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>I’ve managed to output a stack trace from the core dump. I believe it shows the segfault occurring on MD5Update().<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>Reading symbols from /usr/sbin/opensips...<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>(No debugging symbols found in /usr/sbin/opensips)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>[New LWP 92955]<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>[Thread debugging using libthread_db enabled]<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>Core was generated by `/usr/sbin/opensips -P /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg'.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>Program terminated with signal SIGSEGV, Segmentation fault.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>--Type <RET> for more, q to quit, c to continue without paging--c<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#0 0x0000aaaaba47c7c8 in ?? ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>(gdb) bt full<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#0 0x0000aaaaba47c7c8 in ?? ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#1 <span style='background:yellow;mso-highlight:yellow'>0x0000aaaaba47d2cc in MD5Update ()</span><o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#2 0x0000ffffac85c8fc in ?? ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'> from /usr/lib/aarch64-linux-gnu/opensips/modules/auth.so<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#3 0x0000ffffac858678 in ?? ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'> from /usr/lib/aarch64-linux-gnu/opensips/modules/auth.so<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#4 0x0000ffffac5aec20 in ?? ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'> from /usr/lib/aarch64-linux-gnu/opensips/modules/auth_db.so<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#5 0x0000ffffac5afb28 in www_authorize ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'> from /usr/lib/aarch64-linux-gnu/opensips/modules/auth_db.so<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#6 0x0000aaaaba491d1c in do_action ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#7 0x0000aaaaba4944a8 in run_action_list ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#8 0x0000aaaaba4daf9c in ?? ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#9 0x0000aaaaba4da94c in eval_expr ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>--Type <RET> for more, q to quit, c to continue without paging--c<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#10 0x0000aaaaba4daa14 in eval_expr ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#11 0x0000aaaaba491c84 in do_action ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#12 0x0000aaaaba4944a8 in run_action_list ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#13 0x0000aaaaba493b28 in do_action ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#14 0x0000aaaaba4944a8 in run_action_list ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#15 0x0000aaaaba492fac in do_action ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#16 0x0000aaaaba4944a8 in run_action_list ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#17 0x0000aaaaba493b28 in do_action ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#18 0x0000aaaaba4944a8 in run_action_list ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#19 0x0000aaaaba494814 in run_top_route ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#20 0x0000aaaaba4a36ec in receive_msg ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#21 0x0000aaaaba61af20 in ?? ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#22 0x0000aaaaba5f2248 in ?? ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#23 0x0000aaaaba5f6e00 in udp_start_processes ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>#24 0x0000aaaaba472ae4 in main ()<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'>No symbol table info available.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Client is performing MD5 authentication using the following header (anonymised):<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Authorization: Digest username="username", realm="realm", nonce="+P1CdVJHGkKtXhTn4vsZUwM66e8TYcsFS0V0cIYYcrsA", uri="sip:ipaddress", response="32charhash", cnonce="32charhash", qop=auth, nc=00000001<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Any help would be appreciated.<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'>James<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> Liviu Chircu <liviu@opensips.org> <br><b>Sent:</b> Saturday, 25 September 2021 1:03 AM<br><b>To:</b> James Fox <jpfox156@yahoo.com.au>; OpenSIPS users mailling list <users@lists.opensips.org><br><b>Subject:</b> Re: [OpenSIPS-Users] opensips 3.2.2 Segfault on debian 11 bullseye<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On 24.09.2021 17:53, James Fox via Users wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Previously this script was working with Opensips 3.1.1. I’ve manually upgraded the subscriber database schema to include the new column: ha1_sha512t256. <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I’ll work on getting a crash dump. Any ideas in the meantime would be welcome. <o:p></o:p></p></blockquote><p><span style='font-family:"Courier New"'>Hi,</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>This bug was fixed ~2 months ago, and I'm pretty sure that both 3.2.0 or 3.1.1 minors date *before* the fix. So please update your repo, grab the latest minor release for each of them and the bug should go away.</span><o:p></o:p></p><p><span style='font-family:"Courier New"'>Best,</span><o:p></o:p></p><pre>-- <o:p></o:p></pre><pre>Liviu Chircu<o:p></o:p></pre><pre><a href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com">www.opensips-solutions.com</a><o:p></o:p></pre></div></body></html>