Thread overview
[Issue 21250] dirEntries on non-existent directory causes assert error
[Issue 21250] dirEntries on non-existant directory causes assert error
6 days ago
John Colvin
5 days ago
Stefan Koch
5 days ago
Stefan Koch
5 days ago
Atila Neves
5 days ago
John Colvin
6 days ago
https://issues.dlang.org/show_bug.cgi?id=21250

John Colvin <john.loughran.colvin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |industry
           Severity|enhancement                 |major

--
5 days ago
https://issues.dlang.org/show_bug.cgi?id=21250

Stefan Koch <uplink.coder@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |uplink.coder@gmail.com

--- Comment #1 from Stefan Koch <uplink.coder@gmail.com> ---
What happens here is a ctor dtor mismatch.

A temporary of a Refcounted is created inside a function where the file not
found exception is thrown.
The dtor is called on that temporary, which is basically a ref of the
refcounted since the refcounted has ref semantics on the count.
when the execption passes up a level the destructor of the actual refcouted
value is called. which tries to decrement the refcount again.

--
5 days ago
https://issues.dlang.org/show_bug.cgi?id=21250

--- Comment #2 from Stefan Koch <uplink.coder@gmail.com> ---
Related: https://issues.dlang.org/show_bug.cgi?id=21036

--
5 days ago
https://issues.dlang.org/show_bug.cgi?id=21250

Atila Neves <atila.neves@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |atila.neves@gmail.com
            Summary|dirEntries on non-existant  |dirEntries on non-existent
                   |directory causes assert     |directory causes assert
                   |error                       |error

--
5 days ago
https://issues.dlang.org/show_bug.cgi?id=21250

John Colvin <john.loughran.colvin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |regression

--