Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

test: node hangs on mac OSX #25264

Closed
saquibkhan opened this issue May 7, 2015 · 0 comments
Closed

test: node hangs on mac OSX #25264

saquibkhan opened this issue May 7, 2015 · 0 comments

Comments

@saquibkhan
Copy link

Hi,
I changed the test script (./test/simple/test-child-process-fork-getconnections.js) a little and ran the script in loop (around 50 times). At one point node hanged. (tested on v0.10)

In the old script (./test/simple/test-child-process-fork-getconnections.js) I changed sockets[m.id].destroy(); to sockets[m.id].end();

I saw this issue while fixing for Issue #16805

Test Script

Please find the backtrace below:

thread backtrace all
* thread #1: tid = 0x1baaec, 0x00007fff81a7021a libsystem_kernel.dylib`kevent + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff81a7021a libsystem_kernel.dylib`kevent + 10
    frame #1: 0x000000010038afaf node`uv__io_poll + 629
    frame #2: 0x000000010037ed91 node`uv_run + 239
    frame #3: 0x0000000100339676 node`node::Start(int, char**) + 365
    frame #4: 0x0000000100002bb4 node`start + 52

  thread #2: tid = 0x1baaed, 0x00007fff81a6a4de libsystem_kernel.dylib`mach_msg_trap + 10
    frame #0: 0x00007fff81a6a4de libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007fff81a6964f libsystem_kernel.dylib`mach_msg + 55
    frame #2: 0x00007fff84653b34 CoreFoundation`__CFRunLoopServiceMachPort + 212
    frame #3: 0x00007fff84652ffb CoreFoundation`__CFRunLoopRun + 1371
    frame #4: 0x00007fff84652858 CoreFoundation`CFRunLoopRunSpecific + 296
    frame #5: 0x00007fff84708ef1 CoreFoundation`CFRunLoopRun + 97
    frame #6: 0x0000000100389e13 node`uv__cf_loop_runner + 67
    frame #7: 0x000000010037e452 node`uv__thread_start + 25
    frame #8: 0x00007fff8718b268 libsystem_pthread.dylib`_pthread_body + 131
    frame #9: 0x00007fff8718b1e5 libsystem_pthread.dylib`_pthread_start + 176
    frame #10: 0x00007fff8718941d libsystem_pthread.dylib`thread_start + 13

  thread #3: tid = 0x1baaee, 0x00007fff81a70232 libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager'
    frame #0: 0x00007fff81a70232 libsystem_kernel.dylib`kevent64 + 10
    frame #1: 0x00007fff817afd91 libdispatch.dylib`_dispatch_mgr_invoke + 247
    frame #2: 0x00007fff817afa6a libdispatch.dylib`_dispatch_mgr_thread + 52

  thread #4: tid = 0x1baaef, 0x00007fff81a6a51a libsystem_kernel.dylib`semaphore_wait_trap + 10, name = 'SamplerThread'
    frame #0: 0x00007fff81a6a51a libsystem_kernel.dylib`semaphore_wait_trap + 10
    frame #1: 0x000000010032f989 node`v8::internal::MacOSSemaphore::Wait() + 17
    frame #2: 0x000000010026b0c4 node`v8::internal::RuntimeProfiler::WaitForSomeIsolateToEnterJS() + 84
    frame #3: 0x000000010026b1e2 node`v8::internal::RuntimeProfilerRateLimiter::SuspendIfNecessary() + 22
    frame #4: 0x000000010032fa42 node`v8::internal::SamplerThread::Run() + 78
    frame #5: 0x000000010032f41e node`v8::internal::ThreadEntry(void*) + 60
    frame #6: 0x00007fff8718b268 libsystem_pthread.dylib`_pthread_body + 131
    frame #7: 0x00007fff8718b1e5 libsystem_pthread.dylib`_pthread_start + 176
    frame #8: 0x00007fff8718941d libsystem_pthread.dylib`thread_start + 13
(lldb) 
@Trott Trott closed this as completed Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants