Strange bug when doing a custom build of druntime

Temtaime via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 29 04:21:03 PDT 2016


Hi !
I'm trying to figure out what happens.

http://pastebin.com/e6HPvjJ4
There's a full command line.

It builds OK and works too.
But there's some strange bug with bounds check.

The code of _d_arraybounds is just:

.text:0000000140014210 _d_arraybounds proc near                ; 
CODE XREF: j__d_arrayboundsj
.text:0000000140014210 push    rbp
.text:0000000140014211 mov     rbp, rsp
.text:0000000140014214 pop     rbp
.text:0000000140014215 retn

I don't know why dmd ommits _d_arraybounds body. So if app built 
with that druntime tries to access out of bounds element it just 
crashes instead of throwing oob error.
If i remove -release from command line when building druntime all 
seems to be OK.
But i had seen that in win64.mak there's a release switch.

Where can be a problem?
Thanks for a help.


More information about the Digitalmars-d mailing list