Skip to content

Commit d38dc89

Browse files
committed
---
yaml --- r: 1359 b: refs/heads/master c: c4a56f7 h: refs/heads/master i: 1357: 5762a6a 1355: 152e9d4 1351: 3234f01 1343: 213144a v: v3
1 parent 614207a commit d38dc89

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b7dfbc9db079a6c55d9e716d295f87597752b668
2+
refs/heads/master: c4a56f7368404265a1189d3f3202f4dedfd5d0f1

trunk/src/rt/rust_upcall.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ upcall_fail(rust_task *task,
253253
task->log(rust_log::UPCALL | rust_log::ERR,
254254
"upcall fail '%s', %s:%" PRIdPTR, expr, file, line);
255255
task->fail(4);
256+
if (getenv("RUST_TRAP_FAILURE")) {
257+
// FIXME: x86-ism.
258+
__asm__("int3");
259+
}
256260
}
257261

258262
/**

0 commit comments

Comments
 (0)