Comments (5)
@athrun22 can you provide call stack/core file or something to be able to track it down, please?
from ut.
Does this stack trace of the segfault from LLDB work?
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
* frame #0: 0x00007fff65e0bc92 libsystem_platform.dylib`_platform_strlen + 18
frame #1: 0x00007fff62d33a87 libc++.1.dylib`std::runtime_error::runtime_error(char const*) + 39
frame #2: 0x00000001000017a9 runner`main::$_0::operator(this=0x00007ffeefbff410)() const::'lambda'()::operator()() const at runner.cpp:39:30
frame #3: 0x0000000100001738 runner`boost::ut::v1_1_5::detail::throws_<main::$_0::operator()() const::'lambda'(), void>::throws_(this=0x00007ffeefbff318)() const::'lambda'() const&)::'lambda'()::operator()() const at ut.hpp:802:13
frame #4: 0x0000000100001709 runner`boost::ut::v1_1_5::detail::throws_<main::$_0::operator()() const::'lambda'(), void>::throws_(this=0x00007ffeefbff368, expr=0x00007ffeefbff410)() const::'lambda'() const&) at ut.hpp:800:16
frame #5: 0x00000001000016cd runner`boost::ut::v1_1_5::detail::throws_<main::$_0::operator()() const::'lambda'(), void>::throws_(this=0x00007ffeefbff368, expr=0x00007ffeefbff410)() const::'lambda'() const&) at ut.hpp:807:14
frame #6: 0x0000000100001449 runner`auto boost::ut::v1_1_5::throws<main::$_0::operator()() const::'lambda'()>(expr=0x00007ffeefbff410)() const::'lambda'() const&) at ut.hpp:1900:10
frame #7: 0x00000001000012a8 runner`main::$_0::operator(this=0x0000000100001280)() const at runner.cpp:39:12
frame #8: 0x0000000100001289 runner`main::$_0::__invoke() at runner.cpp:38:30
frame #9: 0x0000000100001d93 runner`boost::ut::v1_1_5::events::test<void (*)(), boost::ut::v1_1_5::none>::run_impl(test=(runner`main::$_0::__invoke() at runner.cpp:38), (null)=0x00007ffeefbff4e0)(), boost::ut::v1_1_5::none const&) at ut.hpp:878:60
frame #10: 0x0000000100001d72 runner`boost::ut::v1_1_5::events::test<void (*)(), boost::ut::v1_1_5::none>::operator(this=0x00007ffeefbff4b0)() at ut.hpp:874:33
frame #11: 0x0000000100001d48 runner`auto cfg::runner::on<void (*)(), boost::ut::v1_1_5::none>(this=0x0000000100003120, test=test<void (*)(), boost::ut::v1_1_5::none> @ 0x00007ffeefbff4b0)(), boost::ut::v1_1_5::none>) at runner.cpp:17:5
frame #12: 0x0000000100001d25 runner`decltype(event=0x00007ffeefbff558) boost::ut::v1_1_5::detail::on<boost::ut::v1_1_5::events::test<void (*)(), boost::ut::v1_1_5::none> >(boost::ut::v1_1_5::events::test<void (*)(), boost::ut::v1_1_5::none>&&) at ut.hpp:1485:73
frame #13: 0x00000001000011b5 runner`auto boost::ut::v1_1_5::detail::test::operator=<>(this=0x00007ffeefbff5d0, test=test_location<void (*)()> @ 0x00007ffeefbff5b0)()>) at ut.hpp:1507:5
frame #14: 0x0000000100001088 runner`main at runner.cpp:38:28
frame #15: 0x00007fff65c157fd libdyld.dylib`start + 1```
from ut.
Thanks @athrun22, can you please check whether the following fix works for you 🤔 -> #272
from ut.
@krzysztof-jusiak, the runner example no longer segfaults. Again, thank you for the speedy response! 🏎
from ut.
Perfect, thank you @athrun22, I'll try to add mac/clang to the CI matrix to be able to track these issues.
from ut.
Related Issues (20)
- running clang-format on ut.hpp in master produces changes?
- 7 tests fail
- Would be nice if the _i operator accepted hex constants HOT 1
- Boost review process
- `using namespace boost::ut;` breaks piping views that are copied to local variable.
- Test crashes in aarch64 built with clang++ HOT 1
- clang-scan-deps fails on ut.hpp
- Tests fail due to global instances destroyed HOT 1
- Leak when a source file starts with an A
- std::cout blocked from printing, is there an option to set?
- Version 2.0.1 segfaults when using std::format and std::cout on multiple threads HOT 24
- aborts support on Windows?
- Tests are always skipped when ut is #included into a module
- Number of asserts is reported wrongly HOT 1
- Fatal expression with custom message compile error HOT 2
- Custom message for fatal expressions not shown
- Add the option to display a diff when comparing strings
- Unnecessary CPM.cmake to Get PackageProject.cmake
- Disable Install Targets If It Is a Subproject HOT 1
- SEGV when using Clang [12, 16] HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ut.