Some further information from gdb

root@web-server:/etc/lighttpd# gdb --args lighttpd -D -f 
/etc/lighttpd/lighttpd.conf

GNU gdb (Debian 16.3-1) 16.3
Copyright (C) 2024 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-linux-gnu".
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 lighttpd...
(No debugging symbols found in lighttpd)
(gdb) run
Starting program: /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt full
#0  0x0000000000000000 in ?? ()
No symbol table info available.
#1  0x00007fc5eb12a455 in ?? () from /lib/x86_64-linux-gnu/libmbedcrypto.so.16
No symbol table info available.
#2  0x00007fc5eb12a85c in mbedtls_ctr_drbg_random_with_add () from 
/lib/x86_64-linux-gnu/libmbedcrypto.so.16
No symbol table info available.
#3  0x00007fc5eb12aaa3 in mbedtls_ctr_drbg_random () from 
/lib/x86_64-linux-gnu/libmbedcrypto.so.16
No symbol table info available.
#4  0x00007fc5eb12288d in mbedtls_mpi_core_fill_random () from 
/lib/x86_64-linux-gnu/libmbedcrypto.so.16
No symbol table info available.
#5  0x00007fc5eb12298f in mbedtls_mpi_core_random () from 
/lib/x86_64-linux-gnu/libmbedcrypto.so.16
No symbol table info available.
#6  0x00007fc5eb1323a5 in ?? () from /lib/x86_64-linux-gnu/libmbedcrypto.so.16
No symbol table info available.
#7  0x00007fc5eb132965 in ?? () from /lib/x86_64-linux-gnu/libmbedcrypto.so.16
No symbol table info available.
#8  0x00007fc5eb1341ef in mbedtls_ecp_mul () from 
/lib/x86_64-linux-gnu/libmbedcrypto.so.16
No symbol table info available.
#9  0x00007fc5eb134a97 in mbedtls_ecp_check_pub_priv () from 
/lib/x86_64-linux-gnu/libmbedcrypto.so.16
No symbol table info available.
#10 0x00007fc5eb1fdf16 in ?? () from /usr/lib/lighttpd/mod_mbedtls.so
No symbol table info available.
#11 0x00007fc5eb1ff898 in ?? () from /usr/lib/lighttpd/mod_mbedtls.so
No symbol table info available.
#12 0x000055ff64f12f39 in plugins_call_init ()
No symbol table info available.
#13 0x000055ff64eff2a1 in ?? ()
No symbol table info available.
#14 0x000055ff64f0028a in main ()
No symbol table info available.
(gdb) info registers

rax            0x0                 0
rbx            0x55ff96f68920      94556237760800
rcx            0x0                 0
rdx            0x0                 0
rsi            0x7fff17234080      140733581574272
rdi            0x0                 0
rbp            0x7fff17234080      0x7fff17234080
rsp            0x7fff17234078      0x7fff17234078
r8             0x0                 0
r9             0x0                 0
r10            0x55ff96f51010      94556237664272
r11            0x7fc5eb71dac0      140488035392192
r12            0x0                 0
r13            0x0                 0
r14            0x0                 0
r15            0x20                32
rip            0x0                 0x0
eflags         0x10202             [ IF RF ]
cs             0x33                51
ss             0x2b                43
ds             0x0                 0
es             0x0                 0
fs             0x0                 0
gs             0x0                 0
fs_base        0x7fc5eb5370c0      140488033398976
gs_base        0x0                 0
(gdb) x/i $pc

=> 0x0: Cannot access memory at address 0x0

(gdb) frame 2
#2  0x00007fc5eb12a85c in mbedtls_ctr_drbg_random_with_add () from 
/lib/x86_64-linux-gnu/libmbedcrypto.so.16
(gdb) info registers

rax            0x0                 0
rbx            0x0                 0
rcx            0x0                 0
rdx            0x0                 0
rsi            0x7fff17234080      140733581574272
rdi            0x0                 0
rbp            0x7fff17234260      0x7fff17234260
rsp            0x7fff17234250      0x7fff17234250
r8             0x0                 0
r9             0x0                 0
r10            0x55ff96f51010      94556237664272
r11            0x7fc5eb71dac0      140488035392192
r12            0x55ff96f68920      94556237760800
r13            0x20                32
r14            0x55ff96f69420      94556237763616
r15            0x20                32
rip            0x7fc5eb12a85c      0x7fc5eb12a85c 
<mbedtls_ctr_drbg_random_with_add+124>
eflags         0x10202             [ IF RF ]
cs             0x33                51
ss             0x2b                43
ds             0x0                 0
es             0x0                 0
fs             0x0                 0
gs             0x0                 0
fs_base        0x7fc5eb5370c0      140488033398976
gs_base        0x0                 0
(gdb) frame 2
#2  0x00007fc5eb12a85c in mbedtls_ctr_drbg_random_with_add () from 
/lib/x86_64-linux-gnu/libmbedcrypto.so.16
(gdb) info locals

No symbol table info available.

-- 
Legacy <[email protected]>

Reply via email to