Thread overview
[Issue 1296] New: ICE when object.d is missing things
Jun 28, 2007
d-bugmail
Aug 07, 2010
Iain Buclaw
Aug 08, 2010
Leandro Lucarella
June 28, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1296

           Summary: ICE when object.d is missing things
           Product: DGCC aka GDC
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn@users.sf.net
        ReportedBy: madou@madou.org


cc1d segfaults when trying to compile an object.d source file that's missing certain things, instead of giving a an error message. An object.d file containing only an empty Object class is the simplest test case that reproduces the error.


--------- object.d ---------

class Object
{
}

----------------------------


Program received signal SIGSEGV, Segmentation fault.
0x000000000047c682 in ClassDeclaration::toSymbol (this=0xd44710) at
../../gcc/d/d-decls.cc:677
677             decl = build_decl( VAR_DECL, get_identifier( csym->Sident ),


This is the stack trace:

#0  0x000000000047c682 in ClassDeclaration::toSymbol (this=0xd44710) at
../../gcc/d/d-decls.cc:677
#1  0x0000000000475a15 in ClassDeclaration::toObjFile (this=0xd44710) at
../../gcc/d/dmd/toobj.c:376
#2  0x0000000000485c85 in Module::genobjfile (this=0xd44470) at
../../gcc/d/d-glue.cc:2614
#3  0x000000000047a74f in d_parse_file () at ../../gcc/d/d-lang.cc:941
#4  0x00000000006f0128 in toplev_main (argc=<value optimized out>, argv=0x8) at
../../gcc/toplev.c:991
#5  0x0000000000837345 in __libc_start_main ()
#6  0x00000000004001b9 in _start ()


-- 

August 07, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1296


Iain Buclaw <ibuclaw@ubuntu.com> changed:

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


--- Comment #1 from Iain Buclaw <ibuclaw@ubuntu.com> 2010-08-07 16:52:56 PDT ---
Fixed in hg commit 172 / release 0.25

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 08, 2010
d-bugmail@puremagic.com, el  7 de agosto a las 23:52 me escribiste:
> http://d.puremagic.com/issues/show_bug.cgi?id=1296
> 
> 
> Iain Buclaw <ibuclaw@ubuntu.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|NEW                         |RESOLVED
>          Resolution|                            |FIXED
> 
> 
> --- Comment #1 from Iain Buclaw <ibuclaw@ubuntu.com> 2010-08-07 16:52:56 PDT ---
> Fixed in hg commit 172 / release 0.25

Hey, thanks a lot for giving gdc some love lately!

Keep up the good work! :)

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Hey, it's George. I got nothing to say.
	-- George Constanza, dejando un mensaje en la contestadora de Jerry