www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5320] New: gcstub/gc.d: SEGV because of missing returns

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5320

           Summary: gcstub/gc.d: SEGV because of missing returns
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: druntime
        AssignedTo: sean invisibleduck.org
        ReportedBy: ibuclaw ubuntu.com


--- Comment #0 from Iain Buclaw <ibuclaw ubuntu.com> 2010-12-04 14:05:13 PST ---
Patch:

--- druntime-trunk~/src/gcstub/gc.d    2010-07-22 22:53:04.000000000 +0100
+++ druntime-trunk/src/gcstub/gc.d    2010-12-04 21:42:17.513486612 +0000
   -292,7 +292,7   
             onOutOfMemoryError();
         r[nroots++] = p;
         roots = r;
-
+        return;
     }
     return proxy.gc_addRoot( p );
 }
   -309,6 +309,7   
         r[nranges].len = sz;
         ranges = r;
         ++nranges;
+        return;
     }
     return proxy.gc_addRange( p, sz );
 }

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 04 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5320


Walter Bright <bugzilla digitalmars.com> changed:

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


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2011-01-16
21:53:18 PST ---
http://www.dsource.org/projects/druntime/changeset/516

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