google / google/magika

Terminating due to uncaught exception 0x5591874161a0 'mutex lock failed: Invalid argument' of type std::__1::system_error

Open
#1,429 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
18.6k
Forks
1.2k
Avg merge
3d 12h
Merged PRs (30d)
20

Description

This error is printed at the end of the process:

```
$ magika README
/usr/ports/README: Generic text document (text) [Low-confidence model best-guess: ReStructuredText document (text), score=0.465]
Terminating due to uncaught exception 0x5591874161a0 'mutex lock failed: Invalid argument' of type std::__1::system_error
Abort trap magika /usr/ports/README
```

In the debugger the crash looks like this:
```
[LWP 255731 of process 10831 exited]
[LWP 255734 of process 10831 exited]
[LWP 255747 of process 10831 exited]
[LWP 255724 of process 10831 exited]
[LWP 255723 of process 10831 exited]
[LWP 255718 of process 10831 exited]
[LWP 255742 of process 10831 exited]
[LWP 255738 of process 10831 exited]
[LWP 255735 of process 10831 exited]
[LWP 255733 of process 10831 exited]
[LWP 255721 of process 10831 exited]
[LWP 255736 of process 10831 exited]
[LWP 255722 of process 10831 exited]
[LWP 255744 of process 10831 exited]
[LWP 255719 of process 10831 exited]
[LWP 255728 of process 10831 exited]
[LWP 255740 of process 10831 exited]
[LWP 255743 of process 10831 exited]
[LWP 255725 of process 10831 exited]
[LWP 255741 of process 10831 exited]
[LWP 255749 of process 10831 exited]
Terminating due to uncaught exception 0x8030161a0 'mutex lock failed: Invalid argument' of type std::__1::system_error

Thread 1 received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 10831 and user 1001.
0x0000000801568cfa in thr_kill () from /lib/libsys.so.7
(gdb) bt
#0 0x0000000801568cfa in thr_kill () from /lib/libsys.so.7
#1 0x0000000802a94904 in raise () from /lib/libc.so.7
#2 0x0000000802b470e9 in abort () from /lib/libc.so.7
#3 0x000000080153e041 in ?? () from /lib/libcxxrt.so.1
#4 0x000000080153c179 in std::terminate() () from /lib/libcxxrt.so.1
#5 0x0000000801a04f0e in ?? () from /usr/local/lib/libonnxruntime.so.1
#6 0x0000000802708f01 in ?? () from /usr/local/lib/libonnxruntime.so.1
#7 0x0000000801aabfa7 in ?? () from /usr/local/lib/libonnxruntime.so.1
#8 0x0000000801ad8566 in ?? () from /usr/local/lib/libonnxruntime.so.1
#9 0x0000000801ad8aec in ?? () from /usr/local/lib/libonnxruntime.so.1
#10 0x0000000801a21029 in ?? () from /usr/local/lib/libonnxruntime.so.1
#11 0x00000000013e2ebd in ?? ()
#12 0x00000000013e2de0 in ?? ()
#13 0x000000080146cd28 in ?? ()
#14 0x000000080145d28a in ?? () from /libexec/ld-elf.so.1
#15 0x0000000802f1f580 in ?? ()
#16 0x0000000000000330 in ?? ()
#17 0x00000008014711f0 in ?? ()
#18 0x00007fffffffdeb0 in ?? ()
#19 0x0000000000000003 in ?? ()
#20 0x0000000000000064 in ?? ()
#21 0x00007fffffffe2b0 in ?? ()
#22 0x0000000802ba3bf7 in ?? () from /lib/libc.so.7
#23 0x00000008014553d9 in ?? () from /libexec/ld-elf.so.1
#24 0x00007fffffffe320 in ?? ()
#25 0x0000000800000002 in ?? ()
#26 0x00000000000c8093 in ?? ()
#27 0x00000008029d1900 in ?? () from /usr/local/lib/libonnxruntime.so.1
#28 0x6eb21b43a48e6640 in ?? ()
#29 0x00000008029d1900 in ?? () from /usr/local/lib/libonnxruntime.so.1
#30 0x00007fffffffe350 in ?? ()
#31 0x00000008014a7469 in ?? () from /lib/libthr.so.3
#32 0x0000000802b47554 in __cxa_finalize () from /lib/libc.so.7
#33 0x0000000802b47a5c in exit () from /lib/libc.so.7
#34 0x0000000802a69146 in __libc_start1 () from /lib/libc.so.7
```

Version: 1.1.0
FreeBSD 15.1

Contributor guide

Open the contributing guide

Research direction

The report names no source file or test. Reproduce `magika README` with version 1.1.0 on FreeBSD 15.1, then inspect the ONNX Runtime frames and process-exit path in the debugger. Done means the command exits without the uncaught mutex exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.