Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 23 Jun 2020 13:43:12 +0200
From: Michal Nowak <>
Subject: Better backtrace from core dump


in GitLab we have jobs which run BIND system tests on different 
operating system, mostly in Docker on Debian 10 but too in KVM virtual 
machines for non-Linux operating systems. If the test produces core 
dump, we generate backtrace out of it while still in the CI.

For all C libraries but for musl we get reasonable backtraces, e.g., but for Alpine 
Linux 3.11 (musl 1.1.24-r2 & GCC 9.2.0-r4) we get something like this 

warning: Can't read pathname for load map: No error information.
Core was generated by 
`/builds/isc-projects/bind9/bin/named/.libs/lt-named -D statistics-ns3 
-X named.'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007fb708ec39ee in setjmp () from /lib/
[Current thread is 1 (LWP 1274)]
#0  0x00007fb708ec39ee in setjmp () from /lib/
#1  0x00007fb708ec3b49 in raise () from /lib/
#2  0x804ad6685d596f46 in ?? ()
#3  0x00007fb708bd1030 in ns_modules () from 
#4  0x00007fb708e59edf in ?? () from 
#5  0x0000000042756621 in ?? ()
#6  0x00007fb7069c9db0 in ?? ()
#7  0x0000001800000018 in ?? ()
#8  0x00007fb708f0e873 in ?? () from /lib/
#9  0x0000000000000008 in ?? ()
#10 0x00007fb7069ca0e8 in ?? ()
#11 0x00007fb7069ca0d0 in ?? ()
#12 0x00007fb708e32d12 in isc_hash_function (data=0x459, length=0, 
case_sensitive=<optimized out>) at hash.c:117

This is how we generate the backtrace:

   "${top_builddir}/libtool" --mode=execute gdb --batch 
--command=run.gdb --core="$coredump" -- "$binary"

The GDB command can be either 'bt' or 'thread apply all bt full' (for 
more on the GDB invocation, see

CFLAGS used:

   -fno-omit-frame-pointer -fno-optimize-sibling-calls -O1 -g -Wall -Wextra

This is what we install on top of the stock Alpine Linux 3.11 Docker 
Are there other packages, we should get into the image to get better 

Should we use something else than GDB?

Should we add some compiler flags?


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.