Bug 164919 - [GTK] Crash in WebCore::TextureMapperShaderProgram in secondary thread while _mesa_destroy_shader_compiler is running in exit handler
Summary: [GTK] Crash in WebCore::TextureMapperShaderProgram in secondary thread while ...
Status: RESOLVED DUPLICATE of bug 161800
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-18 05:33 PST by Michael Catanzaro
Modified: 2016-11-30 06:09 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2016-11-18 05:33:53 PST
Crash in WebCore::TextureMapperShaderProgram in secondary thread while _mesa_destroy_shader_compiler is running in exit handler. I have no truncated backtrace for this, just check the full backtrace in the downstream bug, threads 1 and 2. I guess either WebCore::TextureMapperShaderProgram is doing something that is not threadsafe, or maybe it needs to install its own exit handler.
Comment 1 Carlos Garcia Campos 2016-11-30 05:34:33 PST
I remember this, I think it was that we were allocating an AtomicString in a thread and releasing it in a different thread. I think Zan fixed this.

#0  0x00007fcaae1e2cba in WTF::HashTable<WTF::AtomicString, WTF::KeyValuePair<WTF::AtomicString, unsigned int>, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<WTF::AtomicString, unsigned int> >, WTF::AtomicStringHash, WTF::HashMap<WTF::AtomicString, unsigned int>::KeyValuePairTraits, WTF::HashTraits<WTF::AtomicString> >::add<WTF::HashMapEnsureTranslator<WTF::HashMap<WTF::AtomicString, unsigned int>::KeyValuePairTraits, WTF::AtomicStringHash>, const WTF::AtomicString&, const WebCore::TextureMapperShaderProgram::getLocation(const WTF::AtomicString&, WebCore::TextureMapperShaderProgram::VariableType)::<lambda()>&> (extra=..., key=..., this=0x7fca97d90428) at /usr/src/debug/webkitgtk-2.14.0/Source/WTF/wtf/HashTable.h:877
877	        unsigned sizeMask = m_tableSizeMask;
Comment 2 Michael Catanzaro 2016-11-30 06:09:22 PST
Looks like Zan told me how to fix this... so kinda right!

*** This bug has been marked as a duplicate of bug 161800 ***