Hello Nick,

I installed gdb, apk-tools-dbg and musl-dbg in the guacd 1.5.5 alpine 
container. As I have no experience in using gdb, I followed the instructions at 
https://stackoverflow.com/questions/5745215/getting-stacktrace-from-core-dump
Let me know if you need the output of any other command.

I will try to test the version 1.6.0 next week. If I do not manage by end of 
next week, I will only be able to do it during the second week of January.

FIRST core dump

/tmp # gdb /opt/guacamole/sbin/guacd core-guacd.12920.8a6bb6a83b86.1733497224
GNU gdb (GDB) 13.1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/guacamole/sbin/guacd...

warning: Can't open file /usr/lib/libexpat.so.1.9.2 during file-backed mapping 
note processing
[New LWP 12920]
Core was generated by `/opt/guacamole/sbin/guacd -b 0.0.0.0 -L debug -f'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  a_crash () at ./arch/x86_64/atomic_arch.h:108
108     ./arch/x86_64/atomic_arch.h: No such file or directory.
(gdb)
(gdb)
(gdb) bt full
#0  a_crash () at ./arch/x86_64/atomic_arch.h:108
No locals.
#1  get_meta (p=p@entry=0x38 <error: Cannot access memory at address 0x38>) at 
src/malloc/mallocng/meta.h:131
        offset = <optimized out>
        index = <optimized out>
        base = <optimized out>
        meta = <optimized out>
        area = <optimized out>
#2  0x00007f8b34a97a16 in __libc_free (p=0x38) at src/malloc/mallocng/free.c:105
        g = <optimized out>
        idx = <optimized out>
        stride = <optimized out>
        start = <optimized out>
        end = <optimized out>
        self = <optimized out>
        all = <optimized out>
        mi = <optimized out>
        base = <optimized out>
        len = <optimized out>
        e = <optimized out>
#3  0x00007f8b346eeeac in ERR_clear_error () from /lib/libcrypto.so.1.1
No symbol table info available.
#4  0x00007f8b34707177 in ?? () from /lib/libcrypto.so.1.1
No symbol table info available.
#5  0x00007f8b34ac8e8a in __pthread_once_full (init=0x7f8b34707171, 
control=0x7f8b3483b7cc) at src/thread/pthread_once.c:22
        __cb = {__f = 0x7f8b34ac8dff <undo>, __x = 0x7f8b3483b7cc, __next = 
0x7f8ae349cf48}
#6  __pthread_once_full (control=0x7f8b3483b7cc, init=0x7f8b34707171) at 
src/thread/pthread_once.c:11
        __cb = <optimized out>
#7  0x00007f8b347601bf in CRYPTO_THREAD_run_once () from /lib/libcrypto.so.1.1
No symbol table info available.
#8  0x00007f8b34707725 in OPENSSL_init_crypto () from /lib/libcrypto.so.1.1
No symbol table info available.
#9  0x00007f8b3468a86c in ?? () from /lib/libcrypto.so.1.1
No symbol table info available.
#10 0x00007f8b347071c3 in ?? () from /lib/libcrypto.so.1.1
No symbol table info available.
#11 0x00007f8b34ac8e8a in __pthread_once_full (init=0x7f8b347071b6, 
control=0x7f8b3483b7f0) at src/thread/pthread_once.c:22
        __cb = {__f = 0x7f8b34ac8dff <undo>, __x = 0x7f8b3483b7f0, __next = 0x0}
#12 __pthread_once_full (control=0x7f8b3483b7f0, init=0x7f8b347071b6) at 
src/thread/pthread_once.c:11
        __cb = <optimized out>
#13 0x00007f8b347601bf in CRYPTO_THREAD_run_once () from /lib/libcrypto.so.1.1
No symbol table info available.
#14 0x00007f8b34707698 in OPENSSL_init_crypto () from /lib/libcrypto.so.1.1
No symbol table info available.
#15 0x00007f8b349fa184 in OPENSSL_init_ssl () from /lib/libssl.so.1.1
No symbol table info available.
#16 0x00007f8b1e68572f in guac_common_ssh_init () from 
/opt/guacamole/lib/libguac-client-rdp.so
No symbol table info available.
#17 0x00007f8b1e66c9a0 in guac_client_init () from 
/opt/guacamole/lib/libguac-client-rdp.so
No symbol table info available.
#18 0x00007f8b34a54d8d in guac_client_load_plugin () from 
/opt/guacamole/lib/libguac.so.24
No symbol table info available.
#19 0x000056026a3da7e6 in guacd_exec_proc ()
No symbol table info available.
#20 0x000056026a3dac22 in guacd_create_proc ()
No symbol table info available.
#21 0x000056026a3d8ea1 in guacd_route_connection ()
No symbol table info available.
#22 0x000056026a3d90d2 in guacd_connection_thread ()
No symbol table info available.
#23 0x00007f8b34ac7bc2 in start (p=0x7f8ae349d388) at 
src/thread/pthread_create.c:207
        args = 0x7f8ae349d388
        state = <optimized out>
#24 0x00007f8b34ac9f30 in __clone () at src/thread/x86_64/clone.s:22
No locals.
Backtrace stopped: frame did not save the PC
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb) info threads
  Id   Target Id         Frame
* 1    LWP 12920         a_crash () at ./arch/x86_64/atomic_arch.h:108
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb) info threads
  Id   Target Id         Frame
* 1    LWP 12920         a_crash () at ./arch/x86_64/atomic_arch.h:108
(gdb) thread apply all bt

Thread 1 (LWP 12920):
#0  a_crash () at ./arch/x86_64/atomic_arch.h:108
#1  get_meta (p=p@entry=0x38 <error: Cannot access memory at address 0x38>) at 
src/malloc/mallocng/meta.h:131
#2  0x00007f8b34a97a16 in __libc_free (p=0x38) at src/malloc/mallocng/free.c:105
#3  0x00007f8b346eeeac in ERR_clear_error () from /lib/libcrypto.so.1.1
#4  0x00007f8b34707177 in ?? () from /lib/libcrypto.so.1.1
#5  0x00007f8b34ac8e8a in __pthread_once_full (init=0x7f8b34707171, 
control=0x7f8b3483b7cc) at src/thread/pthread_once.c:22
#6  __pthread_once_full (control=0x7f8b3483b7cc, init=0x7f8b34707171) at 
src/thread/pthread_once.c:11
#7  0x00007f8b347601bf in CRYPTO_THREAD_run_once () from /lib/libcrypto.so.1.1
#8  0x00007f8b34707725 in OPENSSL_init_crypto () from /lib/libcrypto.so.1.1
#9  0x00007f8b3468a86c in ?? () from /lib/libcrypto.so.1.1
#10 0x00007f8b347071c3 in ?? () from /lib/libcrypto.so.1.1
#11 0x00007f8b34ac8e8a in __pthread_once_full (init=0x7f8b347071b6, 
control=0x7f8b3483b7f0) at src/thread/pthread_once.c:22
#12 __pthread_once_full (control=0x7f8b3483b7f0, init=0x7f8b347071b6) at 
src/thread/pthread_once.c:11
#13 0x00007f8b347601bf in CRYPTO_THREAD_run_once () from /lib/libcrypto.so.1.1
#14 0x00007f8b34707698 in OPENSSL_init_crypto () from /lib/libcrypto.so.1.1
#15 0x00007f8b349fa184 in OPENSSL_init_ssl () from /lib/libssl.so.1.1
#16 0x00007f8b1e68572f in guac_common_ssh_init () from 
/opt/guacamole/lib/libguac-client-rdp.so
#17 0x00007f8b1e66c9a0 in guac_client_init () from 
/opt/guacamole/lib/libguac-client-rdp.so
#18 0x00007f8b34a54d8d in guac_client_load_plugin () from 
/opt/guacamole/lib/libguac.so.24
#19 0x000056026a3da7e6 in guacd_exec_proc ()
#20 0x000056026a3dac22 in guacd_create_proc ()
#21 0x000056026a3d8ea1 in guacd_route_connection ()
#22 0x000056026a3d90d2 in guacd_connection_thread ()
#23 0x00007f8b34ac7bc2 in start (p=0x7f8ae349d388) at 
src/thread/pthread_create.c:207
#24 0x00007f8b34ac9f30 in __clone () at src/thread/x86_64/clone.s:22
Backtrace stopped: frame did not save the PC

(gdb) thread apply all bt full

Thread 1 (LWP 12920):
#0  a_crash () at ./arch/x86_64/atomic_arch.h:108
No locals.
#1  get_meta (p=p@entry=0x38 <error: Cannot access memory at address 0x38>) at 
src/malloc/mallocng/meta.h:131
        offset = <optimized out>
        index = <optimized out>
        base = <optimized out>
        meta = <optimized out>
        area = <optimized out>
#2  0x00007f8b34a97a16 in __libc_free (p=0x38) at src/malloc/mallocng/free.c:105
        g = <optimized out>
        idx = <optimized out>
        stride = <optimized out>
        start = <optimized out>
        end = <optimized out>
        self = <optimized out>
        all = <optimized out>
        mi = <optimized out>
        base = <optimized out>
        len = <optimized out>
        e = <optimized out>
#3  0x00007f8b346eeeac in ERR_clear_error () from /lib/libcrypto.so.1.1
No symbol table info available.
#4  0x00007f8b34707177 in ?? () from /lib/libcrypto.so.1.1
No symbol table info available.
#5  0x00007f8b34ac8e8a in __pthread_once_full (init=0x7f8b34707171, 
control=0x7f8b3483b7cc) at src/thread/pthread_once.c:22
        __cb = {__f = 0x7f8b34ac8dff <undo>, __x = 0x7f8b3483b7cc, __next = 
0x7f8ae349cf48}
#6  __pthread_once_full (control=0x7f8b3483b7cc, init=0x7f8b34707171) at 
src/thread/pthread_once.c:11
        __cb = <optimized out>
#7  0x00007f8b347601bf in CRYPTO_THREAD_run_once () from /lib/libcrypto.so.1.1
No symbol table info available.
#8  0x00007f8b34707725 in OPENSSL_init_crypto () from /lib/libcrypto.so.1.1
No symbol table info available.
#9  0x00007f8b3468a86c in ?? () from /lib/libcrypto.so.1.1
No symbol table info available.
#10 0x00007f8b347071c3 in ?? () from /lib/libcrypto.so.1.1
No symbol table info available.
#11 0x00007f8b34ac8e8a in __pthread_once_full (init=0x7f8b347071b6, 
control=0x7f8b3483b7f0) at src/thread/pthread_once.c:22
        __cb = {__f = 0x7f8b34ac8dff <undo>, __x = 0x7f8b3483b7f0, __next = 0x0}
#12 __pthread_once_full (control=0x7f8b3483b7f0, init=0x7f8b347071b6) at 
src/thread/pthread_once.c:11
        __cb = <optimized out>
#13 0x00007f8b347601bf in CRYPTO_THREAD_run_once () from /lib/libcrypto.so.1.1
No symbol table info available.
#14 0x00007f8b34707698 in OPENSSL_init_crypto () from /lib/libcrypto.so.1.1
No symbol table info available.
#15 0x00007f8b349fa184 in OPENSSL_init_ssl () from /lib/libssl.so.1.1
No symbol table info available.
#16 0x00007f8b1e68572f in guac_common_ssh_init () from 
/opt/guacamole/lib/libguac-client-rdp.so
No symbol table info available.
#17 0x00007f8b1e66c9a0 in guac_client_init () from 
/opt/guacamole/lib/libguac-client-rdp.so
No symbol table info available.
#18 0x00007f8b34a54d8d in guac_client_load_plugin () from 
/opt/guacamole/lib/libguac.so.24
No symbol table info available.
#19 0x000056026a3da7e6 in guacd_exec_proc ()
No symbol table info available.
#20 0x000056026a3dac22 in guacd_create_proc ()
No symbol table info available.
#21 0x000056026a3d8ea1 in guacd_route_connection ()
No symbol table info available.
#22 0x000056026a3d90d2 in guacd_connection_thread ()
No symbol table info available.
#23 0x00007f8b34ac7bc2 in start (p=0x7f8ae349d388) at 
src/thread/pthread_create.c:207
        args = 0x7f8ae349d388
        state = <optimized out>
#24 0x00007f8b34ac9f30 in __clone () at src/thread/x86_64/clone.s:22
No locals.
Backtrace stopped: frame did not save the PC
(gdb)


SECOND core dump

/tmp # gdb /opt/guacamole/sbin/guacd core-guacd.12924.8a6bb6a83b86.1733499168
GNU gdb (GDB) 13.1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/guacamole/sbin/guacd...

warning: Can't open file /usr/lib/libexpat.so.1.9.2 during file-backed mapping 
note processing
[New LWP 12924]
Core was generated by `/opt/guacamole/sbin/guacd -b 0.0.0.0 -L debug -f'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  a_crash () at ./arch/x86_64/atomic_arch.h:108
108     ./arch/x86_64/atomic_arch.h: No such file or directory.
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb) bt
#0  a_crash () at ./arch/x86_64/atomic_arch.h:108
#1  get_nominal_size (end=0x7f8b2f84552c "", p=0x7f8b2f845520 "") at 
src/malloc/mallocng/meta.h:169
#2  __libc_free (p=0x7f8b2f845520) at src/malloc/mallocng/free.c:110
#3  0x00007f8b3470732c in OPENSSL_cleanup () from /lib/libcrypto.so.1.1
#4  0x00007f8b34a8e143 in __funcs_on_exit () at src/exit/atexit.c:34
#5  0x00007f8b34a8607d in exit (code=0) at src/exit/exit.c:29
#6  0x000056026a3daa3d in guacd_exec_proc ()
#7  0x000056026a3dac22 in guacd_create_proc ()
#8  0x000056026a3d8ea1 in guacd_route_connection ()
#9  0x000056026a3d90d2 in guacd_connection_thread ()
#10 0x00007f8b34ac7bc2 in start (p=0x7f8ae349d388) at 
src/thread/pthread_create.c:207
#11 0x00007f8b34ac9f30 in __clone () at src/thread/x86_64/clone.s:22
Backtrace stopped: frame did not save the PC
(gdb)
(gdb)
(gdb)
(gdb)
(gdb) bt full
#0  a_crash () at ./arch/x86_64/atomic_arch.h:108
No locals.
#1  get_nominal_size (end=0x7f8b2f84552c "", p=0x7f8b2f845520 "") at 
src/malloc/mallocng/meta.h:169
        reserved = 8
#2  __libc_free (p=0x7f8b2f845520) at src/malloc/mallocng/free.c:110
        g = 0x56026b8e0f40
        idx = 18
        stride = <optimized out>
        start = <optimized out>
        end = 0x7f8b2f84552c ""
        self = <optimized out>
        all = <optimized out>
        mi = <optimized out>
        base = <optimized out>
        len = <optimized out>
        e = <optimized out>
#3  0x00007f8b3470732c in OPENSSL_cleanup () from /lib/libcrypto.so.1.1
No symbol table info available.
#4  0x00007f8b34a8e143 in __funcs_on_exit () at src/exit/atexit.c:34
        func = 0x7f8b34a8e0ee <call>
        arg = 0x7f8b347072c5 <OPENSSL_cleanup>
#5  0x00007f8b34a8607d in exit (code=0) at src/exit/exit.c:29
No locals.
#6  0x000056026a3daa3d in guacd_exec_proc ()
No symbol table info available.
#7  0x000056026a3dac22 in guacd_create_proc ()
No symbol table info available.
#8  0x000056026a3d8ea1 in guacd_route_connection ()
No symbol table info available.
#9  0x000056026a3d90d2 in guacd_connection_thread ()
No symbol table info available.
#10 0x00007f8b34ac7bc2 in start (p=0x7f8ae349d388) at 
src/thread/pthread_create.c:207
        args = 0x7f8ae349d388
        state = <optimized out>
#11 0x00007f8b34ac9f30 in __clone () at src/thread/x86_64/clone.s:22
No locals.
Backtrace stopped: frame did not save the PC
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb) info threads
  Id   Target Id         Frame
* 1    LWP 12924         a_crash () at ./arch/x86_64/atomic_arch.h:108
(gdb)
(gdb)
(gdb) thread apply all bt

Thread 1 (LWP 12924):
#0  a_crash () at ./arch/x86_64/atomic_arch.h:108
#1  get_nominal_size (end=0x7f8b2f84552c "", p=0x7f8b2f845520 "") at 
src/malloc/mallocng/meta.h:169
#2  __libc_free (p=0x7f8b2f845520) at src/malloc/mallocng/free.c:110
#3  0x00007f8b3470732c in OPENSSL_cleanup () from /lib/libcrypto.so.1.1
#4  0x00007f8b34a8e143 in __funcs_on_exit () at src/exit/atexit.c:34
#5  0x00007f8b34a8607d in exit (code=0) at src/exit/exit.c:29
#6  0x000056026a3daa3d in guacd_exec_proc ()
#7  0x000056026a3dac22 in guacd_create_proc ()
#8  0x000056026a3d8ea1 in guacd_route_connection ()
#9  0x000056026a3d90d2 in guacd_connection_thread ()
#10 0x00007f8b34ac7bc2 in start (p=0x7f8ae349d388) at 
src/thread/pthread_create.c:207
#11 0x00007f8b34ac9f30 in __clone () at src/thread/x86_64/clone.s:22
Backtrace stopped: frame did not save the PC
(gdb)
(gdb)
(gdb)
(gdb) thread apply all bt full

Thread 1 (LWP 12924):
#0  a_crash () at ./arch/x86_64/atomic_arch.h:108
No locals.
#1  get_nominal_size (end=0x7f8b2f84552c "", p=0x7f8b2f845520 "") at 
src/malloc/mallocng/meta.h:169
        reserved = 8
#2  __libc_free (p=0x7f8b2f845520) at src/malloc/mallocng/free.c:110
        g = 0x56026b8e0f40
        idx = 18
        stride = <optimized out>
        start = <optimized out>
        end = 0x7f8b2f84552c ""
        self = <optimized out>
        all = <optimized out>
        mi = <optimized out>
        base = <optimized out>
        len = <optimized out>
        e = <optimized out>
#3  0x00007f8b3470732c in OPENSSL_cleanup () from /lib/libcrypto.so.1.1
No symbol table info available.
#4  0x00007f8b34a8e143 in __funcs_on_exit () at src/exit/atexit.c:34
        func = 0x7f8b34a8e0ee <call>
        arg = 0x7f8b347072c5 <OPENSSL_cleanup>
#5  0x00007f8b34a8607d in exit (code=0) at src/exit/exit.c:29
No locals.
#6  0x000056026a3daa3d in guacd_exec_proc ()
No symbol table info available.
#7  0x000056026a3dac22 in guacd_create_proc ()
No symbol table info available.
#8  0x000056026a3d8ea1 in guacd_route_connection ()
No symbol table info available.
#9  0x000056026a3d90d2 in guacd_connection_thread ()
No symbol table info available.
#10 0x00007f8b34ac7bc2 in start (p=0x7f8ae349d388) at 
src/thread/pthread_create.c:207
        args = 0x7f8ae349d388
        state = <optimized out>
#11 0x00007f8b34ac9f30 in __clone () at src/thread/x86_64/clone.s:22
No locals.
Backtrace stopped: frame did not save the PC


Best regards,
Paul

Reply via email to