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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 3 23:49:35 PST 2011


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



--- Comment #2 from Don <clugdbug at yahoo.com.au> 2011-03-03 23:46:40 PST ---
Some further detail: 0xF4, the HLT opcode, is a privileged instruction; it
doesn't actually get executed. Instead, a Privileged Instruction hardware
exception is raised. I would expect Linux to turn this into SIGILL. So I would
expect an exit code of 132, if nothing is done to process it. There is no way
it should give a SEGV.

On Windows, druntime checks the offending instruction, and if it is HLT, it is
identified as a runtime assert(0).

-- 
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