RESOLVED FIXED 184814
[GLIB] Test /jsc/prototypes crashes in debug
https://bugs.webkit.org/show_bug.cgi?id=184814
Summary [GLIB] Test /jsc/prototypes crashes in debug
Carlos Garcia Campos
Reported 2018-04-20 05:43:58 PDT
#0 0x000055f27d67fd35 in std::__atomic_base<unsigned char>::compare_exchange_weak (__m2=std::memory_order_acquire, __m1=std::memory_order_acquire, __i2=1 '\001', __i1=@0x7ffea0aac95b: 0 '\000', this=0x0) at /usr/include/c++/6/bits/atomic_base.h:434 #1 std::__atomic_base<unsigned char>::compare_exchange_weak (__m=std::memory_order_acquire, __i2=1 '\001', __i1=<optimized out>, this=0x0) at /usr/include/c++/6/bits/atomic_base.h:456 #2 WTF::Atomic<unsigned char>::compareExchangeWeak (this=0x0, expected=0 '\000', desired=1 '\001', order=std::memory_order_acquire) at DerivedSources/ForwardingHeaders/wtf/Atomics.h:87 #3 0x000055f27d67e534 in WTF::LockAlgorithm<unsigned char, 1u, 2u, WTF::EmptyLockHooks<unsigned char> >::lockFastAssumingZero (lock=...) at DerivedSources/ForwardingHeaders/wtf/LockAlgorithm.h:54 #4 0x000055f27d67d986 in WTF::Lock::lock (this=0x0) at DerivedSources/ForwardingHeaders/wtf/Lock.h:59 #5 0x000055f27d681878 in std::lock_guard<WTF::Lock>::lock_guard (this=0x7ffea0aaca18, __m=...) at /usr/include/c++/6/bits/std_mutex.h:162 #6 0x000055f27d680e69 in WTF::addIterator<WTF::CString, WTF::KeyValuePair<WTF::CString, int>, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<WTF::CString, int> >, WTF::CStringHash, WTF::HashMap<WTF::CString, int>::KeyValuePairTraits, WTF::HashTraits<WTF::CString> > (table=0x55f27e3e5bb8, it=0x7ffea0aacb10) at DerivedSources/ForwardingHeaders/wtf/HashTable.h:1412 #7 0x000055f27d685bcc in WTF::HashTableConstIterator<WTF::CString, WTF::KeyValuePair<WTF::CString, int>, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<WTF::CString, int> >, WTF::CStringHash, WTF::HashMap<WTF::CString, int>::KeyValuePairTraits, WTF::HashTraits<WTF::CString> >::HashTableConstIterator (this=0x7ffea0aacb10, table=0x55f27e3e5bb8, position=0x0, endPosition=0x0) at DerivedSources/ForwardingHeaders/wtf/HashTable.h:134 #8 0x000055f27d684a4e in WTF::HashTableIterator<WTF::CString, WTF::KeyValuePair<WTF::CString, int>, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<WTF::CString, int> >, WTF::CStringHash, WTF::HashMap<WTF::CString, int>::KeyValuePairTraits, WTF::HashTraits<WTF::CString> >::HashTableIterator (this=0x7ffea0aacb10, table=0x55f27e3e5bb8, pos=0x0, end=0x0, tag=WTF::HashItemKnownGood) at DerivedSources/ForwardingHeaders/wtf/HashTable.h:254 #9 0x000055f27d6838a6 in WTF::HashTable<WTF::CString, WTF::KeyValuePair<WTF::CString, int>, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<WTF::CString, int> >, WTF::CStringHash, WTF::HashMap<WTF::CString, int>::KeyValuePairTraits, WTF::HashTraits<WTF::CString> >::makeKnownGoodIterator (this=0x55f27e3e5bb8, pos=0x0) at DerivedSources/ForwardingHeaders/wtf/HashTable.h:468 #10 0x000055f27d682796 in WTF::HashTable<WTF::CString, WTF::KeyValuePair<WTF::CString, int>, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<WTF::CString, int> >, WTF::CStringHash, WTF::HashMap<WTF::CString, int>::KeyValuePairTraits, WTF::HashTraits<WTF::CString> >::end (this=0x55f27e3e5bb8) at DerivedSources/ForwardingHeaders/wtf/HashTable.h:378 #11 0x000055f27d681195 in WTF::HashMap<WTF::CString, int, WTF::CStringHash, WTF::HashTraits<WTF::CString>, WTF::HashTraits<int> >::end (this=0x55f27e3e5bb8) at DerivedSources/ForwardingHeaders/wtf/HashMap.h:254 #12 0x000055f27d67f64a in WTF::HashMap<WTF::CString, int, WTF::CStringHash, WTF::HashTraits<WTF::CString>, WTF::HashTraits<int> >::keys (this=0x55f27e3e5bb8) at DerivedSources/ForwardingHeaders/wtf/HashMap.h:102 #13 0x000055f27d66c1ec in <lambda(JSCClass*, JSCContext*, gpointer)>::operator()(JSCClass *, JSCContext *, gpointer) const (__closure=0x0, jscClass=0x55f27e3e85e0, context=0x55f27e3e38d0, instance=0x55f27e3e5bb0) at /home/igalia/cgarcia/WebKit/Tools/TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:1130 #14 0x000055f27d66c38e in <lambda(JSCClass*, JSCContext*, gpointer)>::_FUN(JSCClass *, JSCContext *, gpointer) () at /home/igalia/cgarcia/WebKit/Tools/TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:1141 #15 0x00007f9fb3a17862 in getPropertyNames (callerContext=0x7f9f6bc84048, object=0x7f9f6bc540c0, propertyNames=0x7ffea0aad1f0) at /home/igalia/cgarcia/WebKit/Source/JavaScriptCore/API/glib/JSCClass.cpp:244 #16 0x00007f9fb3a07ee1 in JSC::JSCallbackObject<JSC::JSAPIWrapperObject>::getOwnNonIndexPropertyNames (object=0x7f9f6bc540c0, exec=0x7f9f6bc84048, propertyNames=..., mode=...) at ../../Source/JavaScriptCore/API/JSCallbackObjectFunctions.h:549 #17 0x00007f9fb48e03b8 in JSC::JSObject::getOwnPropertyNames (object=0x7f9f6bc540c0, exec=0x7f9f6bc84048, propertyNames=..., mode=...) at ../../Source/JavaScriptCore/runtime/JSObject.cpp:2238 #18 0x00007f9fb48dfcea in JSC::JSObject::getPropertyNames (object=0x7f9f6bc540c0, exec=0x7f9f6bc84048, propertyNames=..., mode=...) at ../../Source/JavaScriptCore/runtime/JSObject.cpp:2139 #19 0x00007f9fb3a56a1e in JSObjectCopyPropertyNames (ctx=0x7f9f6bc84048, object=0x7f9f6bc540c0) at ../../Source/JavaScriptCore/API/JSObjectRef.cpp:696 #20 0x00007f9fb3a2600f in jsc_value_object_enumerate_properties (value=0x55f27e3e6160) at /home/igalia/cgarcia/WebKit/Source/JavaScriptCore/API/glib/JSCValue.cpp:811 #21 0x000055f27d676191 in testJSCPrototypes () at /home/igalia/cgarcia/WebKit/Tools/TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:1935 #22 0x00007f9fb5da88e2 in test_case_run () at /home/igalia/cgarcia/WebKit/WebKitBuild/DependenciesGTK/Source/glib-2.54.2/glib/gtestutils.c:2157 #23 g_test_run_suite_internal () at /home/igalia/cgarcia/WebKit/WebKitBuild/DependenciesGTK/Source/glib-2.54.2/glib/gtestutils.c:2241 #24 0x00007f9fb5da87af in g_test_run_suite_internal () at /home/igalia/cgarcia/WebKit/WebKitBuild/DependenciesGTK/Source/glib-2.54.2/glib/gtestutils.c:2253 #25 0x00007f9fb5da8a6e in g_test_run_suite () at /home/igalia/cgarcia/WebKit/WebKitBuild/DependenciesGTK/Source/glib-2.54.2/glib/gtestutils.c:2329 #26 0x00007f9fb5da8a91 in g_test_run () at /home/igalia/cgarcia/WebKit/WebKitBuild/DependenciesGTK/Source/glib-2.54.2/glib/gtestutils.c:1594 #27 0x000055f27d67ca10 in main (argc=1, argv=0x7ffea0aad848) at /home/igalia/cgarcia/WebKit/Tools/TestWebKitAPI/Tests/JavaScriptCore/glib/TestJSC.cpp:2603
Attachments
Patch (1.24 KB, patch)
2018-04-20 05:45 PDT, Carlos Garcia Campos
mcatanzaro: review+
Carlos Garcia Campos
Comment 1 2018-04-20 05:45:48 PDT
Michael Catanzaro
Comment 2 2018-04-20 09:21:16 PDT
Comment on attachment 338413 [details] Patch See, debug builds are good....
Carlos Garcia Campos
Comment 3 2018-04-20 23:39:00 PDT
(In reply to Michael Catanzaro from comment #2) > Comment on attachment 338413 [details] > Patch > > See, debug builds are good.... Debug bot is great! and you that reminds me to pay attention to it :-)
Carlos Garcia Campos
Comment 4 2018-04-20 23:41:04 PDT
Radar WebKit Bug Importer
Comment 5 2018-04-20 23:42:14 PDT
Note You need to log in before you can comment on or make changes to this bug.