<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>127513</bug_id>
          
          <creation_ts>2014-01-23 14:44:15 -0800</creation_ts>
          <short_desc>ASSERTION(m_operationInProgress == NoOperation) when inspecting JSContext</short_desc>
          <delta_ts>2022-02-12 20:01:00 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>127950</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>ggaren</cc>
    
    <cc>joepeck</cc>
    
    <cc>mhahnenberg</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>971346</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2014-01-23 14:44:15 -0800</bug_when>
    <thetext>I&apos;m seeing a JSC multithreading issue when inspecting a JSContext (code not yet checked in).

Hmm, I&apos;m still seeing a related issue:

ASSERTION FAILED: m_operationInProgress == NoOperation
/Volumes/Data/Code/safari/OpenSource/Source/JavaScriptCore/heap/Heap.cpp(759) : void JSC::Heap::collect(JSC::Heap::SweepToggle)
1   0x1006a33d0 WTFCrash
2   0x1003310a6 JSC::Heap::collect(JSC::Heap::SweepToggle)
3   0x100326310 JSC::DefaultGCActivityCallback::doWork()
4   0x100340172 JSC::HeapTimer::timerDidFire(__CFRunLoopTimer*, void*)
5   0x7fff88f5b724 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
6   0x7fff88f5b25f __CFRunLoopDoTimer
7   0x7fff88fcc76a __CFRunLoopDoTimers
8   0x7fff88f16aa5 __CFRunLoopRun
9   0x7fff88f16275 CFRunLoopRunSpecific
10  0x7fff942abf0d RunCurrentEventLoopInMode
11  0x7fff942abcb7 ReceiveNextEventCommon
12  0x7fff942ababc _BlockUntilNextEventMatchingListInModeWithFilter
13  0x7fff8db6f28e _DPSNextEvent
14  0x7fff8db6e8db -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
15  0x7fff8db629cc -[NSApplication run]
16  0x7fff8db4d803 NSApplicationMain
17  0x100002022 main
18  0x7fff89c225fd start
19  0x3


(lldb) thread backtrace all
* thread #1: tid = 0xd83a4a, 0x00000001006a33da JavaScriptCore`WTFCrash + 42 at Assertions.cpp:341, queue = &apos;com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0xbbadbeef)
    frame #0: 0x00000001006a33da JavaScriptCore`WTFCrash + 42 at Assertions.cpp:341
    frame #1: 0x00000001003310a6 JavaScriptCore`JSC::Heap::collect(this=0x0000000101859218, sweepToggle=DoNotSweep) + 502 at Heap.cpp:759
    frame #2: 0x0000000100326310 JavaScriptCore`JSC::DefaultGCActivityCallback::doWork(this=0x000060800012d200) + 208 at GCActivityCallback.cpp:98
    frame #3: 0x0000000100340172 JavaScriptCore`JSC::HeapTimer::timerDidFire(timer=0x000060800016b880, context=0x00006080000d62d0) + 338 at HeapTimer.cpp:97
    frame #4: 0x00007fff88f5b724 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
    frame #5: 0x00007fff88f5b25f CoreFoundation`__CFRunLoopDoTimer + 1151
    frame #6: 0x00007fff88fcc76a CoreFoundation`__CFRunLoopDoTimers + 298
    frame #7: 0x00007fff88f16aa5 CoreFoundation`__CFRunLoopRun + 1525
    frame #8: 0x00007fff88f16275 CoreFoundation`CFRunLoopRunSpecific + 309
    frame #9: 0x00007fff942abf0d HIToolbox`RunCurrentEventLoopInMode + 226
    frame #10: 0x00007fff942abcb7 HIToolbox`ReceiveNextEventCommon + 479
    frame #11: 0x00007fff942ababc HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 65
    frame #12: 0x00007fff8db6f28e AppKit`_DPSNextEvent + 1434
    frame #13: 0x00007fff8db6e8db AppKit`-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
    frame #14: 0x00007fff8db629cc AppKit`-[NSApplication run] + 553
    frame #15: 0x00007fff8db4d803 AppKit`NSApplicationMain + 940
    frame #16: 0x0000000100002022 JSContextTester`main(argc=3, argv=0x00007fff5fbffb50) + 34 at main.m:13
    frame #17: 0x00007fff89c225fd libdyld.dylib`start + 1

  thread #2: tid = 0xd83a8f, 0x00007fff8ee7ae6a libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #0: 0x00007fff8ee7ae6a libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff92325f08 libsystem_pthread.dylib`_pthread_wqthread + 330
    frame #2: 0x00007fff92328fb9 libsystem_pthread.dylib`start_wqthread + 13

  thread #3: tid = 0xd83a90, 0x00007fff8ee7b662 libsystem_kernel.dylib`kevent64 + 10, queue = &apos;com.apple.libdispatch-manager
    frame #0: 0x00007fff8ee7b662 libsystem_kernel.dylib`kevent64 + 10
    frame #1: 0x00007fff926e543d libdispatch.dylib`_dispatch_mgr_invoke + 239
    frame #2: 0x00007fff926e5152 libdispatch.dylib`_dispatch_mgr_thread + 52

  thread #4: tid = 0xd83a91, 0x00007fff8ee7a746 libsystem_kernel.dylib`__psynch_mutexwait + 10, queue = &apos;com.apple.JavaScriptCore.remote-inspector-xpc-connection
    frame #0: 0x00007fff8ee7a746 libsystem_kernel.dylib`__psynch_mutexwait + 10
    frame #1: 0x00007fff92327779 libsystem_pthread.dylib`_pthread_mutex_lock + 372
    frame #2: 0x00000001006f2095 JavaScriptCore`WTF::Mutex::lock(this=0x00006080000d62d8) + 21 at ThreadingPthreads.cpp:343
    frame #3: 0x0000000100400e8f JavaScriptCore`JSC::JSLock::lock(this=0x00006080000d62d0) + 191 at JSLock.cpp:117
    frame #4: 0x0000000100401387 JavaScriptCore`JSC::JSLock::grabAllLocks(this=0x00006080000d62d0, lockCount=2, spinLock=0x00006080000d62d4) + 55 at JSLock.cpp:277
    frame #5: 0x0000000100401706 JavaScriptCore`JSC::JSLock::DropAllLocks::~DropAllLocks(this=0x000000010227f9b0) + 150 at JSLock.cpp:323
    frame #6: 0x0000000100401665 JavaScriptCore`JSC::JSLock::DropAllLocks::~DropAllLocks(this=0x000000010227f9b0) + 21 at JSLock.cpp:316
    frame #7: 0x000000010033d06d JavaScriptCore`JSC::APICallbackShim::~APICallbackShim(this=0x000000010227f9b0) + 61 at APIShims.h:102
    frame #8: 0x000000010033cce5 JavaScriptCore`JSC::APICallbackShim::~APICallbackShim(this=0x000000010227f9b0) + 21 at APIShims.h:100
    frame #9: 0x000000010033cc55 JavaScriptCore`JSC::DelayedReleaseScope::~DelayedReleaseScope(this=0x000000010227fa40) + 149 at DelayedReleaseScope.h:52
    frame #10: 0x00000001003339e5 JavaScriptCore`JSC::DelayedReleaseScope::~DelayedReleaseScope(this=0x000000010227fa40) + 21 at DelayedReleaseScope.h:46
    frame #11: 0x00000001004d8623 JavaScriptCore`JSC::MarkedAllocator::tryAllocateHelper(this=0x000000010185fbe8, bytes=88) + 451 at MarkedAllocator.cpp:65
    frame #12: 0x00000001004d6f82 JavaScriptCore`JSC::MarkedAllocator::tryAllocate(this=0x000000010185fbe8, bytes=88) + 114 at MarkedAllocator.cpp:78
    frame #13: 0x00000001004d69f5 JavaScriptCore`JSC::MarkedAllocator::allocateSlowCase(this=0x000000010185fbe8, bytes=88) + 245 at MarkedAllocator.cpp:96
    frame #14: 0x000000010001931f JavaScriptCore`JSC::MarkedAllocator::allocate(this=0x000000010185fbe8, bytes=88) + 79 at MarkedAllocator.h:91
    frame #15: 0x00000001000191b9 JavaScriptCore`JSC::MarkedSpace::allocateWithoutDestructor(this=0x00000001018594c8, bytes=88) + 41 at MarkedSpace.h:219
    frame #16: 0x00000001000190c6 JavaScriptCore`JSC::Heap::allocateWithoutDestructor(this=0x0000000101859218, bytes=88) + 118 at Heap.h:443
    frame #17: 0x00000001000c5067 JavaScriptCore`void* JSC::allocateCell&lt;JSC::JSActivation&gt;(heap=0x0000000101859218, size=88) + 151 at JSCellInlines.h:97
    frame #18: 0x00000001000c4f75 JavaScriptCore`JSC::JSActivation::create(vm=0x0000000101859200, callFrame=0x000000010ae47e30, registers=0x000000010ae47e30, codeBlock=0x000000010250a610) + 133 at JSActivation.h:57
    frame #19: 0x00000001000add64 JavaScriptCore`JSC::JSActivation::create(vm=0x0000000101859200, callFrame=0x000000010ae47e30, codeBlock=0x000000010250a610) + 68 at JSActivation.h:66
    frame #20: 0x00000001004ad826 JavaScriptCore`llint_slow_path_create_activation(exec=0x000000010ae47e30, pc=0x000000010481b820) + 134 at LLIntSlowPaths.cpp:446
    frame #21: 0x00000001004b8055 JavaScriptCore`llint_op_create_activation + 32

  thread....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>971347</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-01-23 14:44:43 -0800</bug_when>
    <thetext>&lt;rdar://problem/15896408&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1840834</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-02-12 20:01:00 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 127950 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>