http://d.puremagic.com/issues/show_bug.cgi?id=5517

           Summary: SEGV: assert(false) in release mode
           Product: D
           Version: D1 & D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: ibuc...@ubuntu.com


--- Comment #0 from Iain Buclaw <ibuc...@ubuntu.com> 2011-02-02 02:53:53 PST ---
void main() {
    assert(0);
}


When compiled in release mode, the instructions outputted by DMD cause a
segfault and exit code 139 (on Linux). I expected an abort and exit code 134.


$ dmd abort.d -release
$ ./abort 
Segmentation fault (core dumped)
$ echo $?
139


Disassembly of section .text._Dmain:

00000000 <_Dmain>:
void main() {
   0:    55                       push   %ebp
   1:    8b ec                    mov    %esp,%ebp
   3:    f4                       hlt    


Regards

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

Reply via email to