[Issue 1001] print stack trace (in debug mode) when program die

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 15 12:23:49 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=1001


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #76 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-02-15 12:23:39 PST ---
(In reply to comment #64)
> on Windows 64 bit a executable still crashes silently when a access violation
> occures. At least with 2.064.2
> 
> Code used to test:
> import core.stdc.stdio;
> 
> void test()
> {
>   int* i;
>   *i = 5;
> }
> 
> void main(string[] args)
> {
> test();
> printf("done\n");
> }

I can't reproduce this on Win7 x64 with 2.064. Here's the results for me:

$ dmd
> DMD32 D Compiler v2.064

$ dmd -run test.d
object.Error: Access Violation
----------------
0x00402012 in __xc_a
0x004022FF in __xi_a
0x00402217 in __xc_z
0x00402047 in __xc_a
0x75CC3677 in BaseThreadInitThunk
0x77859D72 in __RtlUserThreadStart
0x77859D45 in _RtlUserThreadStart
----------------

$ dmd -g -run test.d
object.Error: Access Violation
----------------
0x00402019 in void test.test() at C:\dev\code\d_code\test.d(6)
0x0040202C in _Dmain at C:\dev\code\d_code\test.d(12)
0x0040233C in void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll().void __lambda1()
0x0040230F in void rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).runAll()
0x00402227 in _d_run_main
0x00402054 in main
0x004140A9 in mainCRTStartup
0x75CC3677 in BaseThreadInitThunk
0x77859D72 in __RtlUserThreadStart
0x77859D45 in _RtlUserThreadStart
----------------

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list