Thread overview
[Issue 8720] New: Assertion failure: '!vthis->csym' on line 727 in file 'glue.c'
Sep 24, 2012
Felix Hufnagel
[Issue 8720] ICE: Assertion failure: '!vthis->csym' on line 727 in file 'glue.c'
Nov 02, 2012
tmn
[Issue 8720] ICE(glue.c, !vthis->csym)
Nov 13, 2012
Don
Nov 16, 2012
tmn
Oct 07, 2013
Walter Bright
September 24, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8720

           Summary: Assertion failure: '!vthis->csym' on line 727 in file
                    'glue.c'
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: puremagic@zoadian.de


--- Comment #0 from Felix Hufnagel <puremagic@zoadian.de> 2012-09-24 11:56:15 PDT ---
C:\ResourceCompiler\RC.Exe /fo "C:\Users\suicide\Desktop\Flowd\Flowd\Flowd\obj\Debug\Win32Manifest.res" "C:\Users\suicide\Desktop\Flowd\Flowd\Flowd\Resources\Win32Manifest.rc"

Current dictionary: C:\Users\suicide\Desktop\Flowd\Flowd\Flowd

C:\D\dmd2\windows\bin\dmd.exe -gc -debug "main.d" "obj\Debug\Win32Manifest.res" "flowd.d"  "kernel32.lib" "gdi32.lib"  -I"C:\D\dmd2\src\druntime\import" -I"C:\D\dmd2\src\phobos"  -odobj\Debug -of"C:\Users\suicide\Desktop\Flowd\Flowd\Flowd\bin\Debug\Flowd.exe" -L/su:windows -L/exet:nt

Assertion failure: '!vthis->csym' on line 727 in file 'glue.c'

Exit code 1

Erzeugung abgeschlossen -- 1 Fehler, 0 Warnungen

----------------------------------------------------------------
Code dpaste or attachment:
Part 1:
http://dpaste.dzfl.pl/63ccc16c
Part 2:
http://dpaste.dzfl.pl/66116248

----------------------------------------------------------------
probably caused by this line:
auto filtered = this._flowConnections.filter!( (a)=>(a.inputSlot !=
inputSlot))();

using dmd 2.60

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8720


tmn <tmn.dbugs@mailinator.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |tmn.dbugs@mailinator.com
            Summary|Assertion failure:          |ICE: Assertion failure:
                   |'!vthis->csym' on line 727  |'!vthis->csym' on line 727
                   |in file 'glue.c'            |in file 'glue.c'


--- Comment #1 from tmn <tmn.dbugs@mailinator.com> 2012-11-02 04:27:00 PDT ---
I get this with the following test case:

----------------
module b;
void call(alias fun)() {
    fun(0);
}
----------------
module a;
import b;
class A {
    void foo(int c) {
        call!(a => c);
    }
}
----------------

> dmd b.d a.d
dmd: glue.c:727: virtual void FuncDeclaration::toObjFile(int): Assertion
`!vthis->csym' failed.


In addition, if I remove the class around the function foo, then I get the ICE described in issue 2962:

----------------
module b;
void call(alias fun)() {
    fun(0);
}
----------------
module a;
import b;
void foo(int c) {
    call!(a => c);
}
----------------

> dmd b.d a.d
a.d(5): Error: function a.foo compiler error, parameter 'c', bugzilla 2962?
dmd: glue.c:758: virtual void FuncDeclaration::toObjFile(int): Assertion `0'
failed.


(Using DMD64 D Compiler v2.060 on Linux)

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE: Assertion failure:     |ICE(glue.c, !vthis->csym)
                   |'!vthis->csym' on line 727  |
                   |in file 'glue.c'            |


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2012-11-13 11:34:27 PST ---
Probably a duplicate of bug 7827, bug 4129, or bug 4481.

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



--- Comment #3 from tmn <tmn.dbugs@mailinator.com> 2012-11-16 00:34:54 PST ---
This is definitely same as issue 8071, which is marked as a duplicate of issue 4481. However, I am not sure if this actually is the same as issue 4481. At least the original code given in 4481 compiles fine for me. On the other hand, the second example given by Ola Østtveit again triggers the same error.

In fact, I hit this too when trying to use std.algorithm as in 8071. In many cases the bug makes usage of std.algorithm impossible.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8720


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |WORKSFORME


--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2013-10-06 23:47:28 PDT ---
(In reply to comment #1)
> I get this with the following test case:
> 
> ----------------
> module b;
> void call(alias fun)() {
>     fun(0);
> }
> ----------------
> module a;
> import b;
> class A {
>     void foo(int c) {
>         call!(a => c);
>     }
> }
> ----------------

No error with 2.064 head.


> > dmd b.d a.d
> dmd: glue.c:727: virtual void FuncDeclaration::toObjFile(int): Assertion
> `!vthis->csym' failed.
> 
> 
> In addition, if I remove the class around the function foo, then I get the ICE described in issue 2962:
> 
> ----------------
> module b;
> void call(alias fun)() {
>     fun(0);
> }
> ----------------
> module a;
> import b;
> void foo(int c) {
>     call!(a => c);
> }
> ----------------
> 
> > dmd b.d a.d
> a.d(5): Error: function a.foo compiler error, parameter 'c', bugzilla 2962?
> dmd: glue.c:758: virtual void FuncDeclaration::toObjFile(int): Assertion `0'
> failed.

No error with 2.064 head.

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