[Webkit-unassigned] [Bug 84970] New: Mutex failure when HashTable is memcpy'ed in debug build

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 26 09:17:50 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=84970

           Summary: Mutex failure when HashTable is memcpy'ed in debug
                    build
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P3
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: yong.li.webkit at gmail.com


In debug build, HashTable contains a mutex object. But Mutex isn't copyable on many platforms. However, JS Parser can potentially memcpy/memmove HashTable objects in its Vector<Scope>. When that happens, pthread_mutex_destroy can fail.

Probably we should change the way how Parser manages the scope vector (how about a linked list?).

For now, I'm going to make HashTable use OwnPtr<Mutex> for CHECK_HASHTABLE_ITERATORS, and assert the results of pthread_mutex_int() and pthread_mutex_destroy().

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



More information about the webkit-unassigned mailing list