Thread overview
[Issue 8694] New: std.zlib.(Un)Compress can cause an _onInvalidMemoryOperationError
Sep 19, 2012
Sönke Ludwig
Sep 19, 2012
Sönke Ludwig
Jan 02, 2013
yebblies
Jan 02, 2013
Sönke Ludwig
September 19, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8694

           Summary: std.zlib.(Un)Compress can cause an
                    _onInvalidMemoryOperationError
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: sludwig@outerproduct.org


--- Comment #0 from Sönke Ludwig <sludwig@outerproduct.org> 2012-09-19 02:53:20 PDT ---
The finalizers are calling error() inside ~this() if deflateEnd() returns an
error. error() in turn tries to 'new' an exception, which then causes the
invalid memory operation error.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 19, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8694



--- Comment #1 from Sönke Ludwig <sludwig@outerproduct.org> 2012-09-19 03:16:12 PDT ---
https://github.com/D-Programming-Language/phobos/pull/806

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8694



--- Comment #2 from github-bugzilla@puremagic.com 2012-09-28 06:41:13 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/a84271845b8ac247be1a462c3020e8a974ff78c3 fix Issue 8694 - (Un)Compress may cause an InvalidMemoryOperationError

The calls to error() are removed from the finalizers to avoid memory allocations there. The result does not matter at this point anyway since nothing can be done about it.

https://github.com/D-Programming-Language/phobos/commit/b05b81859610e31b679de6e8cc2001fc14fe5af5 Merge pull request #806 from s-ludwig/patch-1

Fix for issue 8694, (Un)Compress may cause an InvalidMemoryOperationError

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 02, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8694


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies@gmail.com


--- Comment #3 from yebblies <yebblies@gmail.com> 2013-01-02 19:39:24 EST ---
Has this been fixed sufficiently?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 02, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8694


Sönke Ludwig <sludwig@outerproduct.org> changed:

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


--- Comment #4 from Sönke Ludwig <sludwig@outerproduct.org> 2013-01-02 00:41:16 PST ---
Yes, sorry. Fogot to close the issue.

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