D is crap
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jul 8 08:31:53 PDT 2016
On Friday, 8 July 2016 at 15:17:33 UTC, Luís Marques wrote:
> On Sunday, 3 July 2016 at 06:23:05 UTC, Walter Bright wrote:
>> If the program is compiled with -g and it crashes (seg faults)
>> you'll usually at least get a stack trace. Running it under a
>> debugger will get you much more information.
>
> Only on Windows, and that's a common source of frustration for
> me :(
=== z00.d ===
void func () {
assert(0, "BOOM!");
}
void main () {
func();
}
# dmd -g z00.d
# ./z00.d
core.exception.AssertError at z00.d(2): BOOM!
----------------
??:? _d_assert_msg [0xb7534687]
z00.d:2 void z00.func() [0x80489f2]
z00.d:6 _Dmain [0x80489ff]
??:? rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll().__lambda1() [0xb7566326]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) [0xb75661a0]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll() [0xb75662d3]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) [0xb75661a0]
??:? _d_run_main [0xb75660ff]
??:? main [0x8048a83]
??:? __libc_start_main [0xb6f3f696]
what am i doing wrong? O_O
More information about the Digitalmars-d
mailing list