-
Notifications
You must be signed in to change notification settings - Fork 744
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
SIGSEGV
in clang_getCursorPrettyPrinted()
(or StmtPrinter::Visit(clang::Stmt*)
)
#1442
Comments
Please try again with the snapshots: http://bytedeco.org/builds/ |
@saudet, the same is true with snapshot versions, too. What I managed to find out is that Particularly, the following function declaration (from void *__kmalloc(size_t size, gfp_t flags) __attribute__((__assume_aligned__(__alignof__(unsigned long long)))) __attribute__((__malloc__)); To be more specific, a function should return a void *f() __attribute__((__assume_aligned__(__alignof__(unsigned long long)))); |
So, as I mentioned in the previous issue (#1437), I was calling
clang_visitChildren(CXCursor, CXCursorVisitor, CXClientData)
, now in a single-threaded mode.We managed to successfully parse the code base of CMake, GNU Make, and OpenSSL.
When parsing the source code of Linux (5.18, if it matters), while in the middle of
clang_getCursorPrettyPrinted()
, we received a steadily reproducibleSIGSEGV
atStmtPrinter::Visit(clang::Stmt*)
is a C++ call invoked internally byclang_getCursorPrettyPrinted()
.The issue does not depend on the JVM vendor or version (versions 11 and 17 were tested).
The text was updated successfully, but these errors were encountered: