aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_db_util.c
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2012-11-05 16:14:02 +0100
committerPatrik Nyblom <[email protected]>2012-12-20 14:57:19 +0100
commit3afe2a65244df42ea692e08af0bc8e74ecf3c84d (patch)
tree4e52918023793ef0049960ca8d70d5dc1341f2b9 /erts/emulator/beam/erl_db_util.c
parent52a6a63e0448cd5b969cf345aff59fc9c00d0050 (diff)
downloadotp-3afe2a65244df42ea692e08af0bc8e74ecf3c84d.tar.gz
otp-3afe2a65244df42ea692e08af0bc8e74ecf3c84d.tar.bz2
otp-3afe2a65244df42ea692e08af0bc8e74ecf3c84d.zip
Teach VM not to dump core on faulty seq_trace in ms
Diffstat (limited to 'erts/emulator/beam/erl_db_util.c')
-rw-r--r--erts/emulator/beam/erl_db_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_db_util.c b/erts/emulator/beam/erl_db_util.c
index bcdb630140..bb08762b26 100644
--- a/erts/emulator/beam/erl_db_util.c
+++ b/erts/emulator/beam/erl_db_util.c
@@ -5009,7 +5009,7 @@ static Eterm match_spec_test(Process *p, Eterm against, Eterm spec, int trace)
static Eterm seq_trace_fake(Process *p, Eterm arg1)
{
Eterm result = erl_seq_trace_info(p, arg1);
- if (is_tuple(result) && *tuple_val(result) == 2) {
+ if (!is_non_value(result) && is_tuple(result) && *tuple_val(result) == 2) {
return (tuple_val(result))[2];
}
return result;