From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3091 invoked from network); 28 Oct 2021 20:21:56 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 28 Oct 2021 20:21:56 -0000 Received: (qmail 16129 invoked by uid 550); 28 Oct 2021 20:21:53 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 16095 invoked from network); 28 Oct 2021 20:21:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635452501; bh=VwHVtiF3Pyl6A4+iSvPtFJOQ/ucb6UF0rN6qi8LlVqQ=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=a8exxjkQJELfFzW9cwOoRwlOU30d+vKmmt1xc+9aDq4md12Mio7qZLEfA37zurVYI hXCJzXlf8NkSuPQnZftB4qPCozSW5wzmszbBbBP3TE7zKvSMJKZMCa0WlqbYeWPOMe RR7b5wqzccq50dBlmWCur6ejhxeFkJThkv4gXwJI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Date: Thu, 28 Oct 2021 22:21:39 +0200 From: Sebastian Kemper To: musl@lists.openwall.com Cc: ericonr@disroot.org Message-ID: Mail-Followup-To: musl@lists.openwall.com, ericonr@disroot.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Prov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5ITpqykGp4ezpf 6o0V+NCr/uMdjInm317yYfUNyu5EaTBF+aTA2mcPwhRF+oh18WhXh99nUGB5eEMM4od1Cdpx6 sMK2mQKGih32zJRwXEVq9WqLSn6gf0q3eZqkGTDWcj4Q4VN2nl3i11Q9jRHjPVE2BHwNu8al5 /ElukbY6FenzJGMaMB43K9S5J4s2kQkurSCviPlXMtmDfZJON8fx0TNsthYav1Nzf7R4pnrOc lwfF62FSz6nRVPhgb/5CY+xT74odeC55GrEcTcF5OlXfeGec7lu63TqSKCD3yIKKaWnf2tt42 1DEdJ0O/ZX1N2c= Subject: [musl] Re: freeswitch and musl 1.2.x (time64 most likely) Am Thu, Oct 28, 2021 at 12:16:59AM +0200 schrieb Sebastian Kemper: > I'm not a programmer, so looking at the code is a bit of a hurdle :D I > think that the time basics are set up in src/switch_time.c ([1]) and > src/include/switch_apr.h ([2]). I'm wondering if anybody could maybe > give these files a look and check if you see something obvious? * > (pretty please) * Or maybe give me a hint how to narrow it down? I guess > I should do a backtrace? Hi =C9rico, all, Replying to my own mail as I wasn't subscribed to this list and missed your mail. I am subscribed now. Thanks for your reply! I applied your patch and compiled freeswitch with "-g3". Then I got this in the backtrace: "0x7ffeb39abac0s": not in executable format: file format not recognized Reading symbols from /home/sk/tmp/openwrt/scripts/../staging_dir/target-mi= ps_24kc_musl/root-ath79/usr/bin/freeswitch... 0x77f55320 in _dlstart () from /home/sk/tmp/openwrt/scripts/../staging_dir= /target-mips_24kc_musl/root-ath79/lib/ld-musl-mips-sf.so.1 (gdb) c Continuing. warning: Could not load shared library symbols for /usr/lib/libwolfssl.so.= 4.8.1.d8795272. Do you need "set solib-search-path" or "set sysroot"? process 12090 is executing new program: /usr/bin/freeswitch warning: Could not load shared library symbols for /usr/lib/libwolfssl.so.= 4.8.1.d8795272. Do you need "set solib-search-path" or "set sysroot"? [New Thread 12090.12100] [New Thread 12090.12091] [New Thread 12090.12092] [New Thread 12090.12094] [New Thread 12090.12097] [New Thread 12090.12099] Thread 2 "freeswitch" received signal SIGSEGV, Segmentation fault. [Switching to Thread 12090.12100] 0x77def751 in vxprintf (arg=3D0x76d28a88, fmt=3D0x77ee59aa "q'", ap=3D0x76= d28c54, useExtended=3D0, func=3D0x77deeb45 ) at src/switch_mprintf.c= :689 689 for (i =3D n =3D 0; (ch =3D escarg[i]) !=3D 0; i++) { (gdb) bt #0 0x77def751 in vxprintf (arg=3D0x76d28a88, fmt=3D0x77ee59aa "q'", ap=3D= 0x76d28c54, useExtended=3D0, func=3D0x77deeb45 ) at src/switch_mprin= tf.c:689 #1 0x77def9eb in base_vprintf (xRealloc=3D0x77deeb21 , zI= nitBuf=3D, nInitBuf=3D, zFormat=3D, ap=3D0x76d28c4c, useInternal=3D0) at src/switch_mprintf.c:860 #2 0x77defaf1 in switch_mprintf (zFormat=3D) at src/switch= _mprintf.c:903 #3 0x77e027d9 in switch_core_expire_registration (force=3D0) at src/switc= h_core_sqldb.c:3554 #4 switch_core_expire_registration (force=3D) at src/switc= h_core_sqldb.c:3539 #5 0x77e0285b in switch_core_sql_db_thread (thread=3D, obj= =3D) at src/switch_core_sqldb.c:1538 #6 0x77ed01d7 in dummy_worker (opaque=3D0x770faf30) at threadproc/unix/th= read.c:151 #7 0x77fc5014 in start (p=3D0x76d28d54) at src/thread/pthread_create.c:20= 3 #8 0x77f5523c in __clone () at src/thread/mips/clone.s:33 Backtrace stopped: frame did not save the PC (gdb) I hope the "optimized out" items aren't too much of an issue. Would be gre= at if you could take a look. Thanks! Kind regards, Seb