We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
throw()
As discovered in #17536 , throw() makes root silently crash on Windows x64
C:\root-dev\build\x64\debug>root -l root [0] void fun(){throw std::runtime_error("");} root [1] fun() C:\root-dev\build\x64\debug>
But works fine on x86:
C:\root-dev\build\x86\nowinrtdebug\debug>root -l root [0] void fun(){throw std::runtime_error("const std::vector<std::string> & overload");} root [1] fun() Error in <TRint::HandleTermInput()>: std::runtime_error caught: const std::vector<std::string> & overload root [2]
6.35.01 but most probably all versions
built from source
Windows (x64)
No response
The text was updated successfully, but these errors were encountered:
throw
More exactly it seems to be that Cling throws the exception in a way that the 'catch' in (compiled code in) TRint can not catch it.
TRint
The (expected) behavior in linux is:
cmslpc-el9-heavy01:src (master-non-defaults-enums) pcanal$ root.exe -b -l root [0] void fun(){throw std::runtime_error("fun threw an exception");} root [1] fun() Error in <TRint::HandleTermInput()>: std::runtime_error caught: fun threw an exception
Sorry, something went wrong.
@pcanal right, like on Windows x86:
I am wondering if this is due to the usage of setjmp library call in windows. Using: https://learn.microsoft.com/en-us/cpp/cpp/structured-exception-handling-c-cpp?view=msvc-170 might fix it.
setjmp
Thanks @devajithvs , but it fails also in cling...
bellenot
vgvassilev
No branches or pull requests
Check duplicate issues.
Description
As discovered in #17536 ,
throw()
makes root silently crash on Windows x64Reproducer
But works fine on x86:
ROOT version
6.35.01 but most probably all versions
Installation method
built from source
Operating system
Windows (x64)
Additional context
No response
The text was updated successfully, but these errors were encountered: