Thread overview
[Issue 3808] New: Assertion Failure : Assertion failure: 'classinfo->structsize == CLASSINFO_SIZE' on line 870 in file 'toobj.c'
Feb 16, 2010
Petit Vincent
Feb 16, 2010
Petit Vincent
Mar 11, 2010
Don
Mar 15, 2010
Don
Mar 28, 2010
Walter Bright
Apr 09, 2010
Don
February 16, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3808

           Summary: Assertion Failure : Assertion failure:
                    'classinfo->structsize == CLASSINFO_SIZE' on line 870
                    in file  'toobj.c'
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: petitv.isat@gmail.com


--- Comment #0 from Petit Vincent <petitv.isat@gmail.com> 2010-02-16 14:23:36 PST ---
Created an attachment (id=568)
sc.ini, makefile, binding, screen

Well, I found this bug when I was trying to make the win32lib from the binding available on Dsource.org.

I'll try to explain the environment with lot of details :

1. DMD Compiler : Version 1.033, 1.056 ; 2.040, dmd2beta have been "tested". Each one returned the bug. So, the version of the compiler don't play a role to have this bug.

2. Libraries :

- Standard Library : tango 0.98 and tango 0.99.9 kai have been tried too. Same result.

- Others : tried with and without these ones : tangobos (latest), DFL (latest),
INI (from dprogramming.com). Nothing changed the result.

3. Binding :

- Win32 from DSource - the latest one from trunk version (trunk-r337)


4. Attachement :

- The makefile for the binding (and the binding itself)
- A screen from my dmd\lib directory
- sc.ini file I'm using (there's lot of comments cause of tests I made for this
bug or other things ...)

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



--- Comment #1 from Petit Vincent <petitv.isat@gmail.com> 2010-02-16 14:25:18 PST ---
Well, I found this bug when I was trying to make the win32lib from the binding available on Dsource.org.

I'll try to explain the environment with lot of details :

1. DMD Compiler : Version 1.033, 1.056 ; 2.040, dmd2beta have been "tested". Each one returned the bug. So, the version of the compiler don't play a role to have this bug.

2. Libraries :

- Standard Library : tango 0.98 and tango 0.99.9 kai have been tried too. Same result.

- Others : tried with and without these ones : tangobos (latest), DFL (latest),
INI (from dprogramming.com). Nothing changed the result.

3. Binding :

- Win32 from DSource - the latest one from trunk version (trunk-r337)


4. Attachement :

- The makefile for the binding (and the binding itself)
- A screen from my dmd\lib directory
- sc.ini file I'm using (there's lot of comments cause of tests I made for this
bug or other things ...)

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
                 CC|                            |clugdbug@yahoo.com.au


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2010-03-11 08:18:50 PST ---
This is caused by an incorrectly installed DMD (wrong phobos.lib). However, the
compiler should say that, instead of failing with an assert).

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


--- Comment #3 from Don <clugdbug@yahoo.com.au> 2010-03-15 14:02:16 PDT ---
The error message should be improved. I suggest something like this:

toobj, line 995:

    if (vtblInterfaces->dim)
    {
-      if (classinfo)
-        assert(classinfo->structsize == CLASSINFO_SIZE);
+        if (classinfo && classinfo->structsize != CLASSINFO_SIZE)
+        error("Incorrect installation. D compiler and phobos' typeinfo are
mismatched");
    offset = CLASSINFO_SIZE;
    dtxoff(&dt, csym, offset, TYnptr);    // (*)

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


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2010-03-28 14:13:34 PDT ---
changeset 425

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


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

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


--- Comment #5 from Don <clugdbug@yahoo.com.au> 2010-04-09 13:41:54 PDT ---
Fixed DMD1.058 and 2.043.

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