Thread overview
DMD Callstacks
Oct 23, 2017
Márcio Martins
Oct 23, 2017
Nicholas Wilson
Oct 23, 2017
Márcio Martins
Oct 24, 2017
abad
Oct 25, 2017
user1234
October 23, 2017
What is everyone doing to get proper file name and line number info for callstacks with DMD?

addr2line just gives me ??:0

October 23, 2017
On Monday, 23 October 2017 at 12:41:09 UTC, Márcio Martins wrote:
> What is everyone doing to get proper file name and line number info for callstacks with DMD?
>
> addr2line just gives me ??:0

What OS, etc?
October 23, 2017
On Monday, 23 October 2017 at 12:54:33 UTC, Nicholas Wilson wrote:
> On Monday, 23 October 2017 at 12:41:09 UTC, Márcio Martins wrote:
>> What is everyone doing to get proper file name and line number info for callstacks with DMD?
>>
>> addr2line just gives me ??:0
>
> What OS, etc?

Linux 64-bit (Ubuntu 16)
DMD64 2.076.1

October 24, 2017
On Monday, 23 October 2017 at 12:41:09 UTC, Márcio Martins wrote:
> What is everyone doing to get proper file name and line number info for callstacks with DMD?
>
> addr2line just gives me ??:0

You could try compiling with the -debug-switch. Of course if this turns out to be the fix, it doesn't help with std code.
October 25, 2017
On Tuesday, 24 October 2017 at 06:49:37 UTC, abad wrote:
> On Monday, 23 October 2017 at 12:41:09 UTC, Márcio Martins wrote:
>> What is everyone doing to get proper file name and line number info for callstacks with DMD?
>>
>> addr2line just gives me ??:0
>
> You could try compiling with the -debug-switch. Of course if this turns out to be the fix, it doesn't help with std code.

"-debug" activates the debug condition. To get file and line it's "-g" (generate debug infos), although this won't have any effect for phobos since the static library is already compiled.