Closed herrhotzenplotz closed 10 months ago
Thanks for reporting.
Background_Thread_Pipe_Writer::run_flushing_thread has the same bug (src/quick-lint-js/io/pipe-writer.cpp line 87). (However, that code only runs on Windows right now, and Windows has a huge thread name limit.)
I'll make a more robust solution.
Fixed in Git commit 4a6f1fc6bbc6caedff37507f63c56c8c5a997f5b (in the master branch).
This is on FreeBSD 14.0-RELEASE-p4:
Obviously the bug is that the constexpr if checks for a different length than the one of the actual string being passed to
set_current_thread_name
.The following patch fixes the issue: