[OpenSIPS-Users] opensips 3.2.2 Segfault on debian 11 bullseye

Rob Dyck rob.dyck at telus.net
Mon Sep 27 00:56:59 EST 2021


I am seeing the same. opensips-3.2.2 compiled from git source on Fedora.

From the coredump ---
Process 2686583 (opensips-3.2.2) of user 0 dumped core.#012#012Stack trace of 
thread 2686583:#012#0  
0x000000000045323b Decode (opensips-3.2.2 + 0x5323b)#012#1  
0x0000000000453e4a MD5Update (opensips-3.2.2 + 0x53e4a)#012#2  
0x00007ffff4a71752 digest_calc_HA1 (auth.so + 0xc752)#012#3  
0x00007ffff4a69b55 auth_calc_HA1 (auth.so + 0x4b55)#012#4  
0x00007ffff4bd245f get_ha1 (auth_db.so + 0x445f)#012#5  
0x00007ffff4bd3372 authorize (auth_db.so + 0x5372)#012#6  
0x000000000041e9aa do_action (opensips-3.2.2 + 0x1e9aa)#012#7  
0x0000000000420f30 run_action_list (opensips-3.2.2 + 0x20f30)#012#8  
0x00000000004a1235 eval_elem (opensips-3.2.2 + 0xa1235)#012#9  
0x00000000004a0c99 eval_expr (opensips-3.2.2 + 0xa0c99)#012#10 
0x000000000041e6c7 do_action (opensips-3.2.2 + 0x1e6c7)#012#11 
0x0000000000420f30 run_action_list (opensips-3.2.2 + 0x20f30)#012#12 
0x000000000042022a do_action (opensips-3.2.2 + 0x2022a)#012#13 
0x0000000000421231 run_action_list (opensips-3.2.2 + 0x21231)#012#14 
0x0000000000491026 receive_msg (opensips-3.2.2 + 0x91026)#012#15 
0x00000000005f1e6b udp_read_req (opensips-3.2.2 + 0x1f1e6b)#012#16 
0x00000000005e033a handle_io (opensips-3.2.2 + 0x1e033a)#012#17 
0x00000000005e4505 udp_start_processes (opensips-3.2.2 + 0x1e4505)#012#18 
0x000000000041b626 main_loop (opensips-3.2.2 + 0x1b626)#012#19 
0x00007ffff7dc2b75 __libc_start_main (libc.so.6 + 0x27b75)#012#20 
0x000000000041bf9e _start (opensips-3.2.2 + 0x1bf9e)

On Sunday, September 26, 2021 5:48:02 A.M. PDT James Fox via Users wrote:
> Hi Liviu,
> 
>  
> 
> Thanks for your response. I’m still experiencing the segfault after
> upgrading to 3.2.2.
 
>  
> 
> I’ve managed to output a stack trace from the core dump. I believe it shows
> the segfault occurring on MD5Update().
 
>  
> 
> Reading symbols from /usr/sbin/opensips...
> 
> (No debugging symbols found in /usr/sbin/opensips)
> 
> [New LWP 92955]
> 
> [Thread debugging using libthread_db enabled]
> 
> Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
> 
> Core was generated by `/usr/sbin/opensips -P /run/opensips/opensips.pid -f
> /etc/opensips/opensips.cfg'.
 
> Program terminated with signal SIGSEGV, Segmentation fault.
> 
> --Type <RET> for more, q to quit, c to continue without paging--c
> 
> #0  0x0000aaaaba47c7c8 in ?? ()
> 
> (gdb) bt full
> 
> #0  0x0000aaaaba47c7c8 in ?? ()
> 
> No symbol table info available.
> 
> #1  0x0000aaaaba47d2cc in MD5Update ()
> 
> No symbol table info available.
> 
> #2  0x0000ffffac85c8fc in ?? ()
> 
>    from /usr/lib/aarch64-linux-gnu/opensips/modules/auth.so
> 
> No symbol table info available.
> 
> #3  0x0000ffffac858678 in ?? ()
> 
>    from /usr/lib/aarch64-linux-gnu/opensips/modules/auth.so
> 
> No symbol table info available.
> 
> #4  0x0000ffffac5aec20 in ?? ()
> 
>    from /usr/lib/aarch64-linux-gnu/opensips/modules/auth_db.so
> 
> No symbol table info available.
> 
> #5  0x0000ffffac5afb28 in www_authorize ()
> 
>    from /usr/lib/aarch64-linux-gnu/opensips/modules/auth_db.so
> 
> No symbol table info available.
> 
> #6  0x0000aaaaba491d1c in do_action ()
> 
> No symbol table info available.
> 
> #7  0x0000aaaaba4944a8 in run_action_list ()
> 
> No symbol table info available.
> 
> #8  0x0000aaaaba4daf9c in ?? ()
> 
> No symbol table info available.
> 
> #9  0x0000aaaaba4da94c in eval_expr ()
> 
> --Type <RET> for more, q to quit, c to continue without paging--c
> 
> No symbol table info available.
> 
> #10 0x0000aaaaba4daa14 in eval_expr ()
> 
> No symbol table info available.
> 
> #11 0x0000aaaaba491c84 in do_action ()
> 
> No symbol table info available.
> 
> #12 0x0000aaaaba4944a8 in run_action_list ()
> 
> No symbol table info available.
> 
> #13 0x0000aaaaba493b28 in do_action ()
> 
> No symbol table info available.
> 
> #14 0x0000aaaaba4944a8 in run_action_list ()
> 
> No symbol table info available.
> 
> #15 0x0000aaaaba492fac in do_action ()
> 
> No symbol table info available.
> 
> #16 0x0000aaaaba4944a8 in run_action_list ()
> 
> No symbol table info available.
> 
> #17 0x0000aaaaba493b28 in do_action ()
> 
> No symbol table info available.
> 
> #18 0x0000aaaaba4944a8 in run_action_list ()
> 
> No symbol table info available.
> 
> #19 0x0000aaaaba494814 in run_top_route ()
> 
> No symbol table info available.
> 
> #20 0x0000aaaaba4a36ec in receive_msg ()
> 
> No symbol table info available.
> 
> #21 0x0000aaaaba61af20 in ?? ()
> 
> No symbol table info available.
> 
> #22 0x0000aaaaba5f2248 in ?? ()
> 
> No symbol table info available.
> 
> #23 0x0000aaaaba5f6e00 in udp_start_processes ()
> 
> No symbol table info available.
> 
> #24 0x0000aaaaba472ae4 in main ()
> 
> No symbol table info available.
> 
>  
> 
>  
> 
> Client is performing MD5 authentication using the following header
> (anonymised):
 
> Authorization: Digest username="username", realm="realm",
> nonce="+P1CdVJHGkKtXhTn4vsZUwM66e8TYcsFS0V0cIYYcrsA", uri="sip:ipaddress",
> response="32charhash", cnonce="32charhash", qop=auth, nc=00000001
 
>  
> 
> Any help would be appreciated.
> 
>  
> 
> Regards,
> 
>  
> 
> James
> 
>  
> 
> From: Liviu Chircu <liviu at opensips.org> 
> Sent: Saturday, 25 September 2021 1:03 AM
> To: James Fox <jpfox156 at yahoo.com.au>; OpenSIPS users mailling list
> <users at lists.opensips.org>
 Subject: Re: [OpenSIPS-Users] opensips 3.2.2
> Segfault on debian 11 bullseye 
>  
> 
> On 24.09.2021 17:53, James Fox via Users wrote:
> 
> 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. 
 
> I’ll work on getting a crash dump. Any ideas in the meantime would be
> welcome. 
 
> Hi,
> 
> 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.
 
> Best,
> 
> -- 
> Liviu Chircu
> www.twitter.com/liviuchircu <http://www.twitter.com/liviuchircu>  |
> www.opensips-solutions.com <http://www.opensips-solutions.com> 
 







More information about the Users mailing list