aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/trace_local_SUITE.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-07-07 20:59:28 +0200
committerLukas Larsson <[email protected]>2016-07-08 11:03:05 +0200
commit53bf2a9593a2f34151016f7d84fad6d213d76ee9 (patch)
tree1d9215f8f1ed508c89ce46bef50ef579655ff7b0 /erts/emulator/test/trace_local_SUITE.erl
parent0573efbc18fc20f8646cf3ff64d2affd06e03cb8 (diff)
downloadotp-53bf2a9593a2f34151016f7d84fad6d213d76ee9.tar.gz
otp-53bf2a9593a2f34151016f7d84fad6d213d76ee9.tar.bz2
otp-53bf2a9593a2f34151016f7d84fad6d213d76ee9.zip
erts: Check if return_to trace is enabled for bif
We have to do an extra check if the return_to trace is enabled here as it may have been cleared by the bif after the flags where created by the call_trace.
Diffstat (limited to 'erts/emulator/test/trace_local_SUITE.erl')
-rw-r--r--erts/emulator/test/trace_local_SUITE.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/erts/emulator/test/trace_local_SUITE.erl b/erts/emulator/test/trace_local_SUITE.erl
index 74c05f24e0..c297acd78b 100644
--- a/erts/emulator/test/trace_local_SUITE.erl
+++ b/erts/emulator/test/trace_local_SUITE.erl
@@ -439,6 +439,14 @@ return_test() ->
?RT(?MODULE,slave,2),
shutdown(),
?NM,
+
+ %% Test a regression where turning off return_to tracing
+ %% on yourself would cause a segfault.
+ Pid = setup([call,return_to]),
+ erlang:trace_pattern({'_','_','_'},[],[local]),
+ apply_slave(erlang,trace,[Pid, false, [all]]),
+ shutdown(),
+
ok.
on_and_off_test() ->