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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 26 13:47:57 PDT 2012


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





--- Comment #9 from Yong Li <yong.li.webkit at gmail.com>  2012-04-26 13:47:53 PST ---
(In reply to comment #5)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > I notice that Mutex has WTF_MAKE_NONCOPYABLE, which is bypassed by memcpy/memmove.  Is there any way to assert in Vector<Scope> when a noncopyable object is added?  Preferably at compile time?
> > 
> > HashTable has copy ctor and operator= implemented, so it is copyable (mutex is not copied though)
> 
> Yeah, that would make it much harder to detect.  Have you looked for other classes which may have this problem?

Not yet. The wild thing is JSC::Parser can memcpy HashSet, which is not very usual. The assert added for pthread_mutex_destroy could help detect similar issues.

-- 
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