dmd 2.064 beta 4 badly broken: dirEntries segfaults + other regressions

Maxim Fomin maxim at maxim-fomin.ru
Thu Oct 31 02:51:52 PDT 2013


On Thursday, 31 October 2013 at 08:42:49 UTC, monarch_dodra wrote:
> On Thursday, 31 October 2013 at 01:19:59 UTC, Timothee Cour 
> wrote:
>> see my recent regressions I posted on bugzilla.
>
> Adding a link always helps:
> http://d.puremagic.com/issues/show_bug.cgi?id=11392
>
> Do you have any idea if this worked in beta 1-3 ? It would help 
> locate the regression. I *pray* it's not in emplace :/

 From what I know, direntries/ByLine bugs may be related to 
temporary structs dtor bugs in cases of exception. In some cases 
dmd incorrectly generates code, so if you have within function 
scope struct dtor invocation and call to some function which 
throws exception, there are may be segfaults. These bugs are 
sensitive to g and O switches and typically involve memory 
corruption in Refcounted struct dtor.

Probably related

http://d.puremagic.com/issues/show_bug.cgi?id=10723

http://d.puremagic.com/issues/show_bug.cgi?id=9438

I haven't debugged new issues so don't take this for sure.

What is more important that there is issue in bugzilla which 
likely is root of these dtor/RefCounted/dirEntries/ByLine 
problems which I was debugging and which is not still fixed, but 
I cannot find it right now.


More information about the Digitalmars-d mailing list