-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Cling] Interpreter regression 6.24/06 -> 6.25/02 #9664
Comments
Small correction: Commit 2d304cf is not a reversion, but a cleanup of the infrastructure for the previous implementation; it happened in the same PR.
I have to say, this was quite hard to use and it took me some time to guess how things are supposed to work:
Anyway, I have it running now with
(would have been nice to get this stack trace with the original report) |
What Cling is really crashing on is the definition of .rawInput
void f() try { } catch (...) { } (on the ROOT prompt) |
Yeah, that's a common pitfall, where the assumption that the function's body is a CompoundStmt is incorrect. I suspect the fix is trivial? |
Well not entirely trivial, there's already code to handle this: root/interpreter/cling/lib/Interpreter/AutoSynthesizer.cpp Lines 108 to 109 in dd904f5
The problem is that apparently the |
This was an oversight in commit 34590ae: After fixing the handler blocks, the code needs to create new CXXCatchStmts to eventually construct the CXXTryStmt. Fixes root-project#9664
Or maybe I just completely broke that code path with said commit... |
Describe the bug
With 6.24/06 vanilla and v6-24-00-patches e9d29ae, the test
runtime_cxxmodules_addr
in the provided reproducerpasses regardless of the presence or absence of the feature
runtime_cxxmodules
. With 6.25/02—and master, per @pcanal—it fails with a segmentation violation trying to autoparseart::detail::are_cv_compatible<const int, const int*>
.Expected behavior
runtime_cxxmodules_9583_good
should pass in all cases.runtime_cxxmodules_9583_bad
should pass whenruntime_cxxmodules=OFF
or Interpreter autoload lookup failure whenruntime_cxxmodules=ON
#9583 has been fixed.runtime_cxxmodules_addr
should pass in all cases.To Reproduce
Setup
Additional context
Preliminary investigation by @pcanal (to ensure that I hadn't messed up something basic in the configuration or XML) indicates that the problem was introduced by PR #7488 and not fixed by its partial reversion in 2d304cf. According to @pcanal, a reversion of both 2d304cf and 34590ae resolves this issue.
Reproducer: runtime_cxxmodules-reproducer.tar.gz
The text was updated successfully, but these errors were encountered: