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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 16057 invoked from network); 29 Oct 2021 03:14:21 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 29 Oct 2021 03:14:21 -0000 Received: (qmail 15534 invoked by uid 550); 29 Oct 2021 03:14:19 -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 15502 invoked from network); 29 Oct 2021 03:14:19 -0000 X-Virus-Scanned: Debian amavisd-new at disroot.org Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1635477246; bh=icXKMkEz19llM9R6HhY0uiJglRG+/soNUl9oWTup1sQ=; h=Cc:Subject:From:To:Date:In-Reply-To; b=YnjNteVTUFa2zBQzvmGjCVztqy5mz1EXQvucrGAdfEZXk8XB7mufu2mwsSb0f65di eJAiGBxMoT/0MLfH9g/ljnEmxc9EUa/r+FuFdbi/wW8iBOdwAuwTsk4p8cyTnTjjg3 aOrQPM9HWo9qRNUOuAMLVnbPWuVZz9y1Rc9IAVph+A1nh8fihBveG5zNKsqPSNPUA0 WilMnbm0U4WjrGR030KPM8P/WbsE9t+AZm/KmFe7L891nV5iK828tmtOjGYKmmAFMK RfU2ERfQFMfZnYx+TKWSQiqW9URjykF8eNphlsazSx62u7WXq8zMX+gzoTLLQc8f6g dcFJnSSk1gm9g== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Cc: From: =?utf-8?q?=C3=89rico_Nogueira?= To: Date: Fri, 29 Oct 2021 00:10:05 -0300 Message-Id: In-Reply-To: Subject: Re: [musl] Re: freeswitch and musl 1.2.x (time64 most likely) On Thu Oct 28, 2021 at 6:34 PM -03, Sebastian Kemper wrote: > Am Thu, Oct 28, 2021 at 10:21:39PM +0200 schrieb Sebastian Kemper: > > > > I hope the "optimized out" items aren't too much of an issue. Would be > > great if you could take a look. > > Recompiled with "-O0", now it looks better: > > 0x77f55320 in _dlstart () from > /home/sk/tmp/openwrt/scripts/../staging_dir/target-mips_24kc_musl/root-at= h79/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 12781 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 12781.12810] > [New Thread 12781.12782] > [New Thread 12781.12783] > [New Thread 12781.12785] > [New Thread 12781.12796] > [New Thread 12781.12809] > > Thread 2 "freeswitch" received signal SIGSEGV, Segmentation fault. > [Switching to Thread 12781.12810] > 0x77d7093f in vxprintf (func=3D0x77d70c71 , arg=3D0x76c98a70, > useExtended=3D0, fmt=3D0x77ee2b8e "q'", ap=3D0x76c98c4c) at > src/switch_mprintf.c:689 > 689 for (i =3D n =3D 0; (ch =3D escarg[i]) !=3D 0; i++) { > (gdb) bt > #0 0x77d7093f in vxprintf (func=3D0x77d70c71 , arg=3D0x76c98a70, > useExtended=3D0, fmt=3D0x77ee2b8e "q'", ap=3D0x76c98c4c) at > src/switch_mprintf.c:689 > #1 0x77d70df7 in base_vprintf (xRealloc=3D0x77d70e6d , > useInternal=3D0, > zInitBuf=3D0x76c98acc "delete from registrations where expires > 0 and > expires <=3D 2012362356 and hostname=3D'", nInitBuf=3D350, > zFormat=3D0x77ee2b40 "delete from registrations where expires > 0 and > expires <=3D %ld and hostname=3D'%q'", ap=3D0x76c98c44) at > src/switch_mprintf.c:860 > #2 0x77d70f81 in switch_mprintf (zFormat=3D0x77ee2b40 "delete from > registrations where expires > 0 and expires <=3D %ld and hostname=3D'%q'"= ) > at src/switch_mprintf.c:903 > #3 0x77d8d395 in switch_core_expire_registration (force=3D0) at > src/switch_core_sqldb.c:3554 Line 3554 is: sql =3D switch_mprintf("delete from registrations where expires > 0 and e= xpires <=3D %ld and hostname=3D'%q'", now, switch_core_get_switchname()); It's using '%ld' for 'now', which is time_t. Will add a commit to fix it in my PR. Replace with '%lld' if you want to do a quick fix to see if you catch any other errors. > #4 0x77d85975 in switch_core_sql_db_thread (thread=3D0x770b9ee0, obj=3D0x= 0) > at src/switch_core_sqldb.c:1538 > #5 0x77ec5f19 in dummy_worker (opaque=3D0x770b9ee0) at > threadproc/unix/thread.c:151 > #6 0x77fc5014 in start (p=3D0x76c98d54) at src/thread/pthread_create.c:20= 3 > #7 0x77f5523c in __clone () at src/thread/mips/clone.s:33 > Backtrace stopped: frame did not save the PC > (gdb)