8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Describe the bug Compiling code with and without +no_throw_opt may lead to different behavior with respect to stack traces.
+no_throw_opt
To Reproduce
-module(mod1). -export([f1/1, f3/0]). f1(A) -> try f2(A) catch _:Val -> Val end. f2(a) -> throw(a); f2(A) -> A. f3() -> fun f2/1.
-module(mod2). -export([f/0]). f() -> F = mod1:f3(), try F(a) catch _:_:Stack -> length(Stack) end.
erlc mod1.erl mod2.erl erl 1> mod2:f(). 0
The stack trace was suppressed in this case.
erlc +no_throw_opt mod1.erl mod2.erl erl 1> mod2:f(). 6
Expected behavior Stack traces are not suppressed in this case
Affected versions OTP 25, 26, master
The text was updated successfully, but these errors were encountered:
36a9b97
Merge branch 'john/compiler/fix-ssa-throw-miscompilation/GH-7356/OTP-…
71d4569
…18626' into maint * john/compiler/fix-ssa-throw-miscompilation/GH-7356/OTP-18626: beam_ssa_throw: Exceptions may escape modules through funs
3cff1b6
…18626' into maint-26 * john/compiler/fix-ssa-throw-miscompilation/GH-7356/OTP-18626: beam_ssa_throw: Exceptions may escape modules through funs
b2fc7d8
…18626' into maint-25 * john/compiler/fix-ssa-throw-miscompilation/GH-7356/OTP-18626: beam_ssa_throw: Exceptions may escape modules through funs
jhogberg
No branches or pull requests
Describe the bug
Compiling code with and without
+no_throw_opt
may lead to different behavior with respect to stack traces.To Reproduce
The stack trace was suppressed in this case.
Expected behavior
Stack traces are not suppressed in this case
Affected versions
OTP 25, 26, master
The text was updated successfully, but these errors were encountered: