Thread overview
[Issue 3283] New: glue.c assertion with no info
Sep 03, 2009
alvcastro@yahoo.es
Sep 03, 2009
Don
Sep 03, 2009
Alvaro
Sep 13, 2009
Don
September 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3283

           Summary: glue.c assertion with no info
           Product: D
           Version: 2.032
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: alvcastro@yahoo.es


I got this error when trying to port Hybrid library to D2:


 dmd2.bin: glue.c:626: virtual void FuncDeclaration::toObjFile(int): Assertion
`!vthis->csym' failed.


I got it with 2.031, and now also with 2.032.

Is virtually impossible to figure out which part of my code/the old library code is failing to assert, it could be anywhere. That is the only info output by the compiler.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3283


Lars T. Kyllingstad <bugzilla@kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@kyllingen.net




--- Comment #1 from Lars T. Kyllingstad <bugzilla@kyllingen.net>  2009-09-03 03:27:57 PDT ---
I had a very similar problem porting some of my old code from D1 to D2. You should check out bug 2962. It's probably related, if not the same. Perhaps some of the comments in there will help you narrow it down.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3283


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug@yahoo.com.au




--- Comment #2 from Don <clugdbug@yahoo.com.au>  2009-09-03 04:04:09 PDT ---
Compile with -v, to get an idea of where it is happening.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3283





--- Comment #3 from Alvaro <alvcastro@yahoo.es>  2009-09-03 04:49:16 PDT ---
Ok thanks for your tips! The task doesn't seem obvious, as I get a huge list of functions, but at least I get something to work with.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 13, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3283


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

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


--- Comment #4 from Don <clugdbug@yahoo.com.au> 2009-09-13 03:39:51 PDT ---
Closing this as a duplicate of bug 2962, since it has no test case and otherwise appears to be the same. Reopen if you are able to establish that it is different. (BTW, the patch in 2962 will help in tracking down the bug).

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

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