[M3devel] Fwd: [CM3] #1147: Runaway recursion in m3cc.

Olaf Wagner wagner at elegosoft.com
Tue Aug 3 09:05:17 CEST 2010


FYI

----- Forwarded message from bugs at elego.de -----
     Date: Mon, 02 Aug 2010 22:59:36 -0000
     From: CM3 <bugs at elego.de>
Reply-To: CM3 <bugs at elego.de>
  Subject: [CM3] #1147: Runaway recursion in m3cc.
       To: rodney.m.bates at acm.org, wagner at elego.de

#1147: Runaway recursion in m3cc.
-------------------------------------+--------------------------------------
   Reporter:  rodney.m.bates@…        |            Owner:  wagner
       Type:  sw-bug                  |           Status:  new
   Priority:  medium                  |        Milestone:  CM3 Release 5.9
  Component:  sys                     |          Version:  5.8-RC3
   Severity:  serious                 |         Keywords:  m3cc, recursion
    Relnote:                          |     Confidential:  no
        Org:                          |   Estimatedhours:  0
      Hours:  0                       |         Billable:  0
Totalhours:  0                       |         Internal:  0
-------------------------------------+--------------------------------------
Htr:
run command:
/usr/local/cm3//bin/cm3cg -gstabs+ -m64 -fPIC -mno-align-double  
-funwind-tables -quiet -fno-reorder-blocks Test.mc -o Test.ms
with file Test.ms present.  This file to be supplied.


Fix:



Env:
m3cc from branch cm3-5-8-release, up to date as of 2010-8-1, except for
using dbxout.c 1.8, instead of 1.9, which is almost certainly irrelevant

-------------------------------------+--------------------------------------
  m3cc crashes after runaway recursion in gcc's garbage collector,
  collecting nodes apparently created in parse.c.  There is a
  linear list of 261924 nodes of kind TS_FIELD_DECL, linked on
  the 'chain' field.  This is rooted in field 'chain' of a
  TS_FUNCTION_DECL node.  These are node types created from
  parse.c.

-- 
Ticket URL: <http://projects.elego.de/cm3/ticket/1147>
CM3 <http://projects.elego.de/cm3>
Critical Mass Modula3 Compiler


----- End forwarded message -----


-- 
Olaf Wagner -- elego Software Solutions GmbH
                Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
    http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194




More information about the M3devel mailing list