www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22360] New: Troubles with File("some.file", "rb") if file


          Issue ID: 22360
           Summary: Troubles with File("some.file", "rb") if file bigger
                    then 1 Gb
           Product: D
           Version: D2
          Hardware: Other
               URL: http://dlang.org/
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: tempdas yandex.ru


I faced with strange issue on MacOS, when I tried to open file more then 1 Gb:
It've got an error:
std.exception.ErrnoException std/stdio.d(545): Cannot open file `DTM.NDS' in
mode `rb' (No such file or directory)
??:? _D3std9exception__T7bailOutHTCQBcQBb14ErrnoExceptionZQBiFNfAyamMAxaZNn
??:?  safe shared(core.stdc.stdio.__sFILE)*
lazy const(char)[], immutable(char)[], ulong) [0x108f32798]
??:? ref  safe std.stdio.File std.stdio.File.__ctor(immutable(char)[], scope
const(char)[]) [0x108f3b034]
??:? _Dmain [0x108eb525c]

This troubles are present in many versions of DMD: 2.067-2.098.

I've tried to open this file via another languages (C++/Kotlin Native) using
the same C runtime (File operations) and everything worked perfect.

I was surprised that this simple methods didn't work properly, this means we
can't use DMD for serious project cause as I see current status of it is

The same situation with Socket, it doesn't accept connection (all versions  
after 2018), e.g. 2.066 working with socket well, but it has the same issue
with opening big files...

Oct 05 2021