call traceback is indecipherable garbage

deadalnix deadalnix at gmail.com
Thu Jan 27 10:53:28 UTC 2022


On Wednesday, 26 January 2022 at 02:20:17 UTC, forkit wrote:
> has anyone ever considered getting rid of the indecipherable 
> garbage after ----
> (or having some compile time option to not output it?)
>
> I don't want to see it.
>
> I sure don't want my end-users to see it either.
>
>
> / --
>
> module test;
> import std;
> void main()
> {
>     File f = File("nosuchfile");
> }
>
> // --
>
> Exit code is: 1
>
> std.exception.ErrnoException at std\stdio.d(545): Cannot open file 
> `nosuchfile' in mode `rb' (No such file or directory)
> ----------------
> 0x000000013FB5F836
> 0x000000013FB53423
> 0x000000013FB51269
> 0x000000013FB51057
> 0x000000013FB5ECB3
> 0x000000013FB5EB2F
> 0x000000013FB5EC1B
> 0x000000013FB5EB2F
> 0x000000013FB5EA56
> 0x000000013FB53171
> 0x000000013FB51094
> 0x000000013FBD2F68
> 0x0000000076F9556D in BaseThreadInitThunk
> 0x00000000771F372D in RtlUserThreadStart

You might want to share how you are compiling this. The detail 
will change how much the runtime can tell you.

Make sure you compile in the debug mode. If you don't use the 
compiler itself to link, make sure you pass the `-export-dynamic` 
flag to the linker.


More information about the Digitalmars-d mailing list