https://sourceware.org/bugzilla/show_bug.cgi?id=35027
Bug ID: 35027
Summary: addr2line from binutils is around 60 times slower than
llvm-addr2line-19
Product: binutils
Version: 2.47
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: christian at madez dot de
Target Milestone: ---
I noticed that binutils addr2line is 60x slower than addr2line from llvm-19
during a recent debugging of the open source game CDDA [0].
I was working on the experimental release
cdda-linux-with-graphics-and-sounds-x64-2026-11-18-1252 [1]
I built the latest release of binutils:
~/cdda-linux-with-graphics-and-sounds-x64-2026-11-18-1252/cataclysmdda-0.J$
ADDRTOLINE=~/binutils/binutils-build/binutils/addr2line; $ADDRTOLINE --version
&& cd
~/cdda-linux-with-graphics-and-sounds-x64-2026-11-18-1252/cataclysmdda-0.J &&
time printf "000000000229de72\n" | $ADDRTOLINE -e cataclysm-tiles -a -i -f
GNU addr2line (GNU Binutils) 2.47.50.20261122
Copyright (C) 2026 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
0x000000000229de72
_ZN10ui_adaptor18redraw_invalidatedEv
/usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/std_function.h:591
redraw_invalidated
/home/runner/work/Cataclysm-DDA/Cataclysm-DDA/src/ui_manager.cpp:502
real 0m4,201s
user 0m3,429s
sys 0m0,772s
It's much slower than addr2line from LLVM-19 from Debian GNU/Linux 13 (trixie):
~/cdda-linux-with-graphics-and-sounds-x64-2026-11-18-1252/cataclysmdda-0.J$
ADDRTOLINE=/usr/bin/llvm-addr2line-19; $ADDRTOLINE --version && cd
~/cdda-linux-with-graphics-and-sounds-x64-2026-11-18-1252/cataclysmdda-0.J &&
time printf "000000000229de72\n" | $ADDRTOLINE -e cataclysm-tiles -a -i -f
llvm-addr2line
Debian LLVM version 19.1.7
Optimized build.
0x229de72
operator()
/usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/std_function.h:591
_ZN10ui_adaptor18redraw_invalidatedEv
/home/runner/work/Cataclysm-DDA/Cataclysm-DDA/src/ui_manager.cpp:502
[0] https://cataclysmdda.org/
[1]
https://github.com/CleverRaven/Cataclysm-DDA/releases/download/cdda-experimental-2026-11-18-1252/cdda-linux-with-graphics-and-sounds-x64-2026-11-18-1252.tar.gz
--
You are receiving this mail because:
You are on the CC list for the bug.