[Issue 22360] New: Troubles with File("some.file", "rb") if file bigger then 1 Gb
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 6 04:19:15 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22360
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 at puremagic.com
Reporter: tempdas at yandex.ru
Hello,
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 at std/stdio.d(545): Cannot open file `DTM.NDS' in
mode `rb' (No such file or directory)
----------------
??:? _D3std9exception__T7bailOutHTCQBcQBb14ErrnoExceptionZQBiFNfAyamMAxaZNn
[0x108eb8719]
??:? @safe shared(core.stdc.stdio.__sFILE)*
std.exception.enforce!(std.exception.ErrnoException).enforce!(shared(core.stdc.stdio.__sFILE)*).enforce(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
semi-working.
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...
--
More information about the Digitalmars-d-bugs
mailing list