Skip to content

[Build] libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument #25038

Closed
@phial3

Description

@phial3

Describe the issue

env: macOS 15.5 M2 Pro
version: onnxruntime-osx-arm64-1.22.0
error: runtime error, this is debug with lldb

libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
Process 67904 stopped
* thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x0000000199bd9388 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`__pthread_kill:
->  0x199bd9388 <+8>:  b.lo   0x199bd93a8    ; <+40>
    0x199bd938c <+12>: pacibsp 
    0x199bd9390 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x199bd9394 <+20>: mov    x29, sp
Target 0: (yolo) stopped.
(lldb) bt
* thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = signal SIGABRT
  * frame #0: 0x0000000199bd9388 libsystem_kernel.dylib`__pthread_kill + 8
    frame #1: 0x0000000199c1288c libsystem_pthread.dylib`pthread_kill + 296
    frame #2: 0x0000000199b1bc60 libsystem_c.dylib`abort + 124
    frame #3: 0x0000000199bc839c libc++abi.dylib`abort_message + 132
    frame #4: 0x0000000199bb6cf0 libc++abi.dylib`demangling_terminate_handler() + 316
    frame #5: 0x000000019983cde4 libobjc.A.dylib`_objc_terminate() + 172
    frame #6: 0x0000000199bc76b0 libc++abi.dylib`std::__terminate(void (*)()) + 16
    frame #7: 0x0000000199bc7654 libc++abi.dylib`std::terminate() + 108
    frame #8: 0x000000010f302f34 libonnxruntime.1.22.0.dylib`__clang_call_terminate + 12
    frame #9: 0x000000010e68b054 libonnxruntime.1.22.0.dylib`std::__1::unique_ptr<OrtEnv, std::__1::default_delete<OrtEnv>>::~unique_ptr[abi:ue170006]() + 84
    frame #10: 0x0000000199aca944 libsystem_c.dylib`__cxa_finalize_ranges + 480
    frame #11: 0x0000000199aca704 libsystem_c.dylib`exit + 44
    frame #12: 0x0000000199c1cdc8 libdyld.dylib`dyld4::LibSystemHelpers::exit(int) const + 20
    frame #13: 0x0000000199872cac dyld`dyld4::LibSystemHelpersWrapper::exit(int) const + 172
    frame #14: 0x0000000199872bc8 dyld`start + 6124
(lldb) 

Urgency

No response

Target platform

macOS 15.5 M2 Pro

Build script

no

Error / output

libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument

Visual Studio Version

No response

GCC / Compiler Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using template

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions