-
Notifications
You must be signed in to change notification settings - Fork 27
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
clang_delta segfault #153
Comments
Another reduction, this time can be compiled https://godbolt.org/z/WKqG3xY69 class a;
namespace std {
template<typename...>
struct coroutine_traits;
template<typename = void>
struct coroutine_handle {
static coroutine_handle from_address(void*);
operator coroutine_handle<>();
};
} // namespace std
struct b {
bool await_ready() noexcept;
void await_suspend(std::coroutine_handle<>) noexcept;
void await_resume() noexcept;
};
template<typename, typename>
class c;
template<typename dg, typename d>
class awaitable {
public:
bool await_ready();
template<class e>
void await_suspend(std::coroutine_handle<c<e, d>>);
dg await_resume();
};
template<typename>
class f {
public:
auto initial_suspend() {
return b();
}
auto final_suspend() noexcept {
return b{};
}
void unhandled_exception();
};
template<typename dg, typename d>
class c : public f<d> {
public:
awaitable<dg, d> get_return_object();
};
namespace std {
template<typename dg, typename d, typename... g>
struct coroutine_traits<awaitable<dg, d>, g...> {
using promise_type = c<dg, d>;
};
} // namespace std
awaitable<int, a> h() {
co_await h();
} #!/bin/bash
clang++-19 -c common_cvise.cpp -o /dev/null -std=c++23 || exit 1
/usr/lib/cvise/clang_delta --query-instances=simple-inliner --std=c++2b common_cvise.cpp
exit $(($?-139)) |
Hey, thanks for the report. Unfortunatelly, the project is seeking for a maintainer and I won't be able to make any further development of the project. Thanks for understanding. You might be lucky and get a feedback from the original C-Reduce project which shared the clang_delta core. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm using cvise from Ubuntu 24.10 repos. Tried to reduce a GCC ICE, all ClangDelta passes reported segfaults, all Clang passes reported "non-fatal errors", so here is a reduced test which crashes clang_delta:
note that the code does not crash Clang 19.1
Found this info in cvise_bug folder
and my interestingness test
The text was updated successfully, but these errors were encountered: