[Issue 5517] New: SEGV: assert(false) in release mode

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 2 02:56:09 PST 2011


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: nobody at puremagic.com
        ReportedBy: ibuclaw at ubuntu.com


--- Comment #0 from Iain Buclaw <ibuclaw at 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: -------


More information about the Digitalmars-d-bugs mailing list