Thread overview
[Issue 3976] New: segfault on anonymous struct/union
Mar 16, 2010
Ellery Newcomer
Mar 17, 2010
Ellery Newcomer
Aug 25, 2010
Don
Aug 26, 2010
Don
Aug 26, 2010
Ellery Newcomer
Aug 29, 2010
Ellery Newcomer
March 16, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3976

           Summary: segfault on anonymous struct/union
           Product: D
           Version: 1.057
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: ellery-newcomer@utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2010-03-16 12:24:31 PDT ---
struct A{
    struct{
        B b;
        C c;
    }
}
struct B{
    int i;
}
struct C{
    int j;
}

and DMD bombs out. Seems to be a forward referencing problem, as the AnonDeclaration's scope never gets set.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 17, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3976



--- Comment #1 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2010-03-16 17:35:57 PDT ---
Okay, for some reason my test case doesn't seem to be working. I'm sure it was earlier, but I deleted the file, etc.

I can still get the segfault with my original (humongous) code, as well as a few others if the structs are rearranged a little. But I'm not whittling it down again.

Here it is if anyone cares:

http://personal.utulsa.edu/~ellery-newcomer/dxl.zip

unzip it and run dmd @kmd.

the problem file is src/dxl/read/biff/FilePassRecord.d

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 25, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3976



--- Comment #2 from Don <clugdbug@yahoo.com.au> 2010-08-25 12:41:29 PDT ---
This is probably the same as bug 4543, which has a reduced test case.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 26, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3976


Don <clugdbug@yahoo.com.au> changed:

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


--- Comment #3 from Don <clugdbug@yahoo.com.au> 2010-08-26 07:40:22 PDT ---
(In reply to comment #1)
> Okay, for some reason my test case doesn't seem to be working. I'm sure it was earlier, but I deleted the file, etc.
> 
> Here it is if anyone cares:
> 
> http://personal.utulsa.edu/~ellery-newcomer/dxl.zip
> 
> unzip it and run dmd @kmd.

There is no kmd file. Also this code seems to use Tango (dunno which version!). So it's not a usable test case. But I'm pretty sure this is the same as 4543. Reopen if you think it is not the same, and have some kind of usable test case.

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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 26, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3976



--- Comment #4 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2010-08-26 14:25:04 PDT ---
(In reply to comment #3)
> 
> There is no kmd file. Also this code seems to use Tango (dunno which version!). So it's not a usable test case. But I'm pretty sure this is the same as 4543. Reopen if you think it is not the same, and have some kind of usable test case.
> 
> *** This issue has been marked as a duplicate of issue 4543 ***

I have little to no recollection of filing this isssue (and I agree it's pretty bad), but I don't think issue 4543 sounds like what this one was. I'll try digging things up this weekend. Sorry to waste your time, Don.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 29, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3976



--- Comment #5 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2010-08-28 21:12:59 PDT ---
(In reply to comment #4)
> (In reply to comment #3)
> > 
> > There is no kmd file. Also this code seems to use Tango (dunno which version!). So it's not a usable test case. But I'm pretty sure this is the same as 4543. Reopen if you think it is not the same, and have some kind of usable test case.
> > 
> > *** This issue has been marked as a duplicate of issue 4543 ***
> 
> I have little to no recollection of filing this isssue (and I agree it's pretty bad), but I don't think issue 4543 sounds like what this one was. I'll try digging things up this weekend. Sorry to waste your time, Don.

Rats. It looks like dxl.zip has been overwritten since I reported this. I guess we'll never know..

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------