www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3976] New: segfault on anonymous struct/union

reply d-bugmail puremagic.com writes:
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



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: -------
Mar 16 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3976




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: -------
Mar 16 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3976




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: -------
Aug 25 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3976


Don <clugdbug yahoo.com.au> changed:

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




 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: -------
Aug 26 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3976




14:25:04 PDT ---

 
 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: -------
Aug 26 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3976




21:12:59 PDT ---


 
 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: -------
Aug 28 2010