[Webkit-unassigned] [Bug 25438] New: tcmalloc/Windows bug can cause random GetLastError() failures.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 27 17:08:49 PDT 2009


           Summary: tcmalloc/Windows bug can cause random GetLastError()
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mike at belshe.com

The latest release of tcmalloc for windows picks up an easy bug fix which can
effect windows builds:

TlsGetValue() will call SetLastError(0).  If you have code which looks like:

   if (GetLastError()) { ... }

if foo() returns something which needs to be destructed, that can call into
tcmalloc, which will use thread-local-storage, which will SetLastError(0).

Fix:  When calling TlsGetValue, do this:
    err = GetLastError()

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list