Starting program: /home/jonas/htop
warning: File "/usr/lib/x86_64-linux-gnu/libthread_db.so.1" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path /usr/lib/x86_64-linux-gnu/libthread_db.so.1
line to your configuration file "/home/jonas/.config/gdb/gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/home/jonas/.config/gdb/gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
Program received signal SIGFPE, Arithmetic exception.
0x00007ffff7a8b16b in __nptl_tls_static_size_for_stack () at ../nptl/nptl-stack.h:61
warning: 61 ../nptl/nptl-stack.h: Datei oder Verzeichnis nicht gefunden
#0 0x00007ffff7a8b16b in __nptl_tls_static_size_for_stack () at ../nptl/nptl-stack.h:61
No locals.
#1 __pthread_early_init () at ../sysdeps/nptl/pthread_early_init.h:46
limit = {rlim_cur = 8388608, rlim_max = 18446744073709551615}
pagesz = 4096
minstack =
limit =
pagesz =
minstack =
#2 __libc_early_init (initial=false) at ./elf/libc_early_init.c:44
No locals.
#3 0x0000000000500fc0 in dl_open_worker_begin ()
No symbol table info available.
#4 0x00000000004cb3ca in _dl_catch_exception ()
No symbol table info available.
#5 0x00000000005001d5 in dl_open_worker ()
No symbol table info available.
#6 0x00000000004cb3ca in _dl_catch_exception ()
No symbol table info available.
#7 0x0000000000500557 in _dl_open ()
No symbol table info available.
#8 0x00000000004cb4f2 in do_dlopen ()
No symbol table info available.
#9 0x00000000004cb3ca in _dl_catch_exception ()
No symbol table info available.
#10 0x00000000004cb47f in _dl_catch_error ()
No symbol table info available.
#11 0x00000000004cb700 in __libc_dlopen_mode ()
No symbol table info available.
#12 0x00000000004c27cf in module_load ()
No symbol table info available.
#13 0x00000000004c2ba5 in __nss_module_get_function ()
No symbol table info available.
#14 0x00000000004c2508 in __nss_next2 ()
No symbol table info available.
#15 0x00000000004bae38 in getpwuid_r ()
No symbol table info available.
#16 0x00000000004ba94f in getpwuid ()
No symbol table info available.
#17 0x000000000041f7a7 in UsersTable_getRef (this=0x58ada0, uid=100032) at UsersTable.c:35
userData =
name =
#18 0x0000000000428cb7 in LinuxProcessTable_updateUser (mainTask=0x0, procFd=6, process=0x9f5d10, host=0x58b0a0) at linux/LinuxProcessTable.c:532
sb = {st_dev = 22, st_ino = 377692661, st_nlink = 9, st_mode = 16749, st_uid = 100032, st_gid = 100032, __pad0 = 0, st_rdev = 0, st_size = 0, st_blksize = 1024, st_blocks = 0, st_atim = {tv_sec = 1723817858, tv_nsec = 243709567}, st_mtim = {tv_sec = 1723817858, tv_nsec = 243709567}, st_ctim = {tv_sec = 1723817858, tv_nsec = 243709567}, __glibc_reserved = {0, 0, 0}}
statok =
sb =
statok =
#19 LinuxProcessTable_recurseProcTree (this=0x58b4b0, parentFd=, lhost=0x58b0a0, dirname=, mainTask=0x0) at linux/LinuxProcessTable.c:1599
pid =
procFd = 6
proc =
statCommand = "nginx\000\000\000\000ort\000\000n\000ockd\000recover\000\000\000\000\360\227X\000\000\000\000\000\000\331\377\377\377\177\000\000\230xR", '\000' <repeats 13 times>, "\377\377\377\377\377\177\000\000\002", '\000' <repeats 15 times>, "0 0 0 0 \002\000\000\000\001\000\000\000\260\247X\000\000\000\000\000\000\000\000\000\001\000\000\000\200\326W\000\000\000\000\000"
lasttimes = 0
lp =
name =
preExisting = false
scanMainThread =
last_tty_nr =
pt = 0x58b4b0
host = 0x58b0a0
settings = 0x58d000
ss = 0x58f490
entry =
dirFd = 5
dir =
hideKernelThreads = true
hideUserlandThreads = true
hideRunningInContainer = false
PRETTY_FUNCTION = "LinuxProcessTable_recurseProcTree"
#20 0x000000000040d84b in Machine_scanTables (this=this@entry=0x58b0a0) at Machine.c:122
table = 0x58b4b0
i = 0
firstScanDone = true
PRETTY_FUNCTION = "Machine_scanTables"
#21 0x000000000040677e in CommandLine_run (argc=, argv=) at CommandLine.c:399
lc_ctype =
status = STATUS_OK
flags = {pidMatchList = 0x0, commFilter = 0x0, userId = 4294967295, sortKey = 0, delay = -1, iterationsRemaining = -1, useColors = true, enableMouse = true, treeView = false, allowUnicode = true, highlightChanges = false, highlightDelaySecs = -1, readonly = false}
ut = 0x58ada0
dm = 0x0
dc = 0x58af30
ds = 0x0
host = 0x58b0a0
pt = 0x58b4b0
settings = 0x58d000
header = 0x58e170
panel = 0x7a6a30
state = {host = 0x58b0a0, mainPanel = 0x7a6a30, header = 0x58e170, pauseUpdate = false, hideSelection = false, hideMeters = false}
scr = 0x58f2a0
#22 0x000000000045fd04 in __libc_start_call_main ()
No symbol table info available.
#23 0x0000000000461400 in __libc_start_main_impl ()
No symbol table info available.
#24 0x0000000000401921 in _start ()
No symbol table info available.
quit
I built the statically linked binary inside a podman container and copied it to the host.
Running it crashes immediately with
A signal 8 (Floating point exception) was received.Compiled on commit
2503239d9fb453b5d67d3b33690c5a8e914bc58c(currentmain).Crash Output
GDB full stacktrace
htop.objdump
gdb stacktrace as text file