Thread overview
[Issue 19133] core.exception.rangeerror@std/file.d(3812):
Dec 12, 2018
Eduard Staniloiu
Dec 14, 2018
Eduard Staniloiu
Dec 14, 2018
Eduard Staniloiu
Dec 14, 2018
Eduard Staniloiu
Dec 18, 2018
Eduard Staniloiu
Apr 06, 2019
Dlang Bot
December 12, 2018
https://issues.dlang.org/show_bug.cgi?id=19133

Eduard Staniloiu <edi33416@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |edi33416@gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #1 from Eduard Staniloiu <edi33416@gmail.com> ---
By the looks of it, this PR https://github.com/dlang/phobos/pull/5838 also solves this issue.

Closing

*** This issue has been marked as a duplicate of issue 17962 ***

--
December 12, 2018
https://issues.dlang.org/show_bug.cgi?id=19133

crayolist@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #2 from crayolist@gmail.com ---
This issue is not resolved.

Let me try to clarify the issue again;

This line;
https://github.com/dlang/phobos/blob/d262d06a14ca3e6fb659859999931f15c8e01b7c/std/file.d#L3864
will not correctly compute 'len' in the case of Solaris because 'dirent' is
defined like this;
https://github.com/dlang/druntime/blob/75eb3c6e307fbd2488452d0e100724e49c31f35d/src/core/sys/posix/dirent.d#L255

Notice that 'dirent.d_name' is a one character buffer. The line;
            immutable len = fd.d_name[].representation.countUntil(0);
cannot compute the correct length because the range has 1 element.

--
December 14, 2018
https://issues.dlang.org/show_bug.cgi?id=19133

Eduard Staniloiu <edi33416@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|nobody@puremagic.com        |edi33416@gmail.com

--
December 14, 2018
https://issues.dlang.org/show_bug.cgi?id=19133

--- Comment #3 from Eduard Staniloiu <edi33416@gmail.com> ---
You are right. Apologies for closing this eagerly.

I've assigned it to me.

--
December 14, 2018
https://issues.dlang.org/show_bug.cgi?id=19133

--- Comment #4 from Eduard Staniloiu <edi33416@gmail.com> ---
PR https://github.com/dlang/phobos/pull/6805

--
December 18, 2018
https://issues.dlang.org/show_bug.cgi?id=19133

Eduard Staniloiu <edi33416@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--
December 24, 2018
https://issues.dlang.org/show_bug.cgi?id=19133

--- Comment #5 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/cb1dd9fef69f25210d7fb43cb130fb3ab158776f Fix Issue 19133 - core.exception.rangeerror@std/file.d(3812)

https://github.com/dlang/phobos/commit/e7cfc5c1f2bce8f79bcf74f8daa26772afd052a2 Merge pull request #6805 from edi33416/issue_19133

Fix Issue 19133 - core.exception.rangeerror@std/file.d(3812)

--
April 06, 2019
https://issues.dlang.org/show_bug.cgi?id=19133

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #6947 "[dmd-cxx] Backport Solaris and DragonflyBSD ports" was merged into dmd-cxx:

- 8a832d917ffe1bdc30acb249fd7ad5b61b1470e0 by Eduard Staniloiu:
  Fix Issue 19133 - core.exception.rangeerror@std/file.d(3812)

https://github.com/dlang/phobos/pull/6947

--