Hi,
I'm using ArchLinux and the recent DMD from the Arch repositories
and my backtraces show no line numbers. I now that is an old
issue, but I'm back to D after a long pause and I thought that
this used to work out of the box.
My backtraces look likes this:
??:? pure @safe void
std.exception.bailOut!(Exception).bailOut(immutable(char)[],
ulong, const(char[])) [0xab5c9566]
??:? pure @safe bool std.exception.enforce!(Exception,
bool).enforce(bool, lazy const(char)[], immutable(char)[],
ulong) [0xab5c94e2]
I've found this StackOverflow Question from 2011 [1] and if I
remember correctly this could be fixed by adding
-L--export-dynamic which already is part of my dmd.conf
cat /etc/dmd.conf
[Environment32]
DFLAGS=-I/usr/include/dlang/dmd -L-L/usr/lib32
-L--export-dynamic -fPIC
[Environment64]
DFLAGS=-I/usr/include/dlang/dmd -L-L/usr/lib -L--export-dynamic
-fPIC
which is in fact read by dmd:
% dmd -v
DMD64 D Compiler v2.076.1
Copyright (c) 1999-2017 by Digital Mars written by Walter Bright
Documentation: http://dlang.org/
Config file: /etc/dmd.conf
How do I get useful back traces back?
Thanks,
Tobias
[1]
https://stackoverflow.com/questions/8209494/how-to-show-line-numbers-in-d-backtraces