mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Sebastian Kemper <sebastian_ml@gmx.net>
To: musl@lists.openwall.com
Cc: ericonr@disroot.org
Subject: [musl] Re: freeswitch and musl 1.2.x (time64 most likely)
Date: Thu, 28 Oct 2021 22:21:39 +0200	[thread overview]
Message-ID: <YXsGU32OHJsnlJS+@darth.lan> (raw)
In-Reply-To: <YXnP2OyicBdPLRKM@darth.lan>

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 Érico, 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-mips_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=0x76d28a88, fmt=0x77ee59aa "q'", ap=0x76d28c54, useExtended=0, func=0x77deeb45 <mout>) at src/switch_mprintf.c:689
689					for (i = n = 0; (ch = escarg[i]) != 0; i++) {
(gdb) bt
#0  0x77def751 in vxprintf (arg=0x76d28a88, fmt=0x77ee59aa "q'", ap=0x76d28c54, useExtended=0, func=0x77deeb45 <mout>) at src/switch_mprintf.c:689
#1  0x77def9eb in base_vprintf (xRealloc=0x77deeb21 <printf_realloc>, zInitBuf=<optimized out>, nInitBuf=<optimized out>, zFormat=<optimized out>,
    ap=0x76d28c4c, useInternal=0) at src/switch_mprintf.c:860
#2  0x77defaf1 in switch_mprintf (zFormat=<optimized out>) at src/switch_mprintf.c:903
#3  0x77e027d9 in switch_core_expire_registration (force=0) at src/switch_core_sqldb.c:3554
#4  switch_core_expire_registration (force=<optimized out>) at src/switch_core_sqldb.c:3539
#5  0x77e0285b in switch_core_sql_db_thread (thread=<optimized out>, obj=<optimized out>) at src/switch_core_sqldb.c:1538
#6  0x77ed01d7 in dummy_worker (opaque=0x770faf30) at threadproc/unix/thread.c:151
#7  0x77fc5014 in start (p=0x76d28d54) at src/thread/pthread_create.c:203
#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 great if you could take a look.

Thanks!

Kind regards,
Seb

  parent reply	other threads:[~2021-10-28 20:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-27 22:16 [musl] " Sebastian Kemper
2021-10-27 23:24 ` Érico Nogueira
2021-10-28 20:21 ` Sebastian Kemper [this message]
2021-10-28 21:34   ` [musl] " Sebastian Kemper
2021-10-29  3:10     ` Érico Nogueira
2021-10-29 14:40       ` Sebastian Kemper
2021-10-29 21:04         ` Szabolcs Nagy
2021-10-29 22:44           ` Sebastian Kemper
2021-10-30  1:00             ` Rich Felker
2021-10-30 10:57               ` Sebastian Kemper
2021-10-30 17:56                 ` Rich Felker
2021-10-30 19:07                   ` Sebastian Kemper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YXsGU32OHJsnlJS+@darth.lan \
    --to=sebastian_ml@gmx.net \
    --cc=ericonr@disroot.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).