-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swift test
failing locally due to (FB12061292)
#60
Comments
Yeah… unfortunately this seems to be a problem with the macOS proprietary version of xctest - I’ve reported it to Apple with a feedback which was subsequently closed as they thought it was a problem with jemalloc. I’ve the had help investigating this with the jemalloc engineers which seems to point out xctest as passing a pointer to free that was not originally allocated by jemalloc… I’ve commented on the original Apple feedback but got no reply after that. The open source xctest version works fine on Linux though (so we currently live on the CI Ubuntu runner or local multipass/Ubuntu testing at the moment) and that would be the current recommended way to run the test suite (still hoping to get someone at Apple to take a second look at it, as it’d be much better to be able to run it on macOS too…). |
If anyone files a feedback on this, please reference FB12061292. |
swift test
failing locallyswift test
failing locally due to (FB12061292)
Fixing this in #127 - to run test suite on macOS:
I haven't found a way to pick up environment variables properly in Xcode (hints appreciated) so it works, but if running the benchmark package in Xcode and simply setting the variable properly in Package.swift, the test suite can be run within Xcode too. |
🎉 This issue has been resolved in version 1.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Thanks @hassila |
For posterity, I found a workaround how to get it working in Xcode: $ killall Xcode
$ BENCHMARK_DISABLE_JEMALLOC=1 open Package.swift |
Likely a question more than a bug report. I checked out the repo (
main
branch), installed jemalloc per the prerequisites (brew install jemalloc
). After thatswift build
worked fine, butswift test
in the repository failed for me locally:When I run the tests from within Xcode (currently using the 14.3 beta), the tests trap on jemalloc -
je_free_default
in the stack trace.Is there something additional I should be doing re: jemalloc?
I'm not familiar with using custom allocators and what the requirements are around that, so I suspect I'm missing something in my setup to support running
swift test
without issue.The text was updated successfully, but these errors were encountered: