www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Issue 1440] New: Compiler hang with some modules

reply d-bugmail puremagic.com writes:
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))


-- 
Aug 26 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1440






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.


-- 
Aug 26 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1440






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


-- 
Aug 26 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1440






Issue seems related to the CHUNKSIZE, as it applies to the arrays created.

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


-- 
Aug 26 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1440


dvdfrdmn users.sf.net changed:

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





Fixed in svn rev 147 / release 0.25.


-- 
Aug 28 2007