Thread overview
[Issue 1440] New: Compiler hang with some modules
Aug 26, 2007
d-bugmail
Aug 26, 2007
d-bugmail
Aug 26, 2007
d-bugmail
Aug 26, 2007
d-bugmail
Aug 29, 2007
d-bugmail
August 26, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1440

           Summary: Compiler hang with some modules
           Product: DGCC aka GDC
           Version: 0.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: glue layer
        AssignedTo: dvdfrdmn@users.sf.net
        ReportedBy: akaquinn@hotmail.com


Unfortunately, I haven't figured out a particularly minimal test case for this, and it happens in a Tango module, but GDC 0.24 hangs while trying to compile a certain module. This is a regression.

If I can figure out where, I'll upload the testcase with the rest of Tango cut out, but, if you check out the latest svn of Tango (http://svn.dsource.org/projects/tango/trunk/ ) and try to compile tango/io/compress/Zlib.d ( gdc -c tango/io/compress/Zlib.d ), the compiler will hang. I've caused this with GDC 0.24 against GCC 4.1.2 on GNU/Linux. Testing this does not require installing the Tango core.

$ gdc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/opt/gdc
Thread model: posix
gcc version 4.1.2 20070214 (  (gdc 0.24, using dmd 1.020))


-- 

August 26, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1440





------- Comment #1 from akaquinn@hotmail.com  2007-08-26 03:37 -------
Created an attachment (id=170)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=170&action=view)
Non-minimal test case

The files which can reproduce the test case, cut out of Tango.


-- 

August 26, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1440





------- Comment #2 from afb@algonet.se  2007-08-26 15:41 -------
Reproducable here, on gcc-5363 / Mac OS X 10.4

hangs at the end of:
parse     Zlib
semantic  Zlib
import    object        (object.di)
import    tango.io.compress.c.zlib      (tango/io/compress/c/zlib.d)
import    tango.stdc.stringz    (tango/stdc/stringz.d)
import    tango.core.Exception  (tango/core/Exception.di)
import    tango.io.Conduit      (tango/io/Conduit.d)
import    tango.io.model.IConduit       (tango/io/model/IConduit.d)
import    tango.io.model.IBuffer        (tango/io/model/IBuffer.d)
semantic2 Zlib
semantic3 Zlib
code      Zlib


-- 

August 26, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1440





------- Comment #3 from afb@algonet.se  2007-08-26 16:55 -------
Issue seems related to the CHUNKSIZE, as it applies to the arrays created.

private const CHUNKSIZE = 16 * 1024; seems to make the compiler survive...


-- 

August 29, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1440


dvdfrdmn@users.sf.net changed:

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




------- Comment #4 from dvdfrdmn@users.sf.net  2007-08-28 19:03 -------
Fixed in svn rev 147 / release 0.25.


--