Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 28 Oct 2021 22:21:39 +0200
From: Sebastian Kemper <sebastian_ml@....net>
To: musl@...ts.openwall.com
Cc: ericonr@...root.org
Subject: 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 √Č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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.