Skip to content
Permalink
Browse files
Fix segfault on mrb_exc_backtrace.
The code to iterate over backtrace locations was changed in #3065, but
unfortunately output_backtrace was not correctly updated to forward the
callback.
  • Loading branch information
simon-shopify committed Jan 7, 2016
1 parent f3cce24 commit 146a9eeb38ac0633852c6e4ca1339020af7b58fb
Showing 1 changed file with 4 additions and 1 deletion.
@@ -175,7 +175,10 @@ output_backtrace_i(mrb_state *mrb, struct backtrace_location_raw *loc_raw, void
static void
output_backtrace(mrb_state *mrb, mrb_int ciidx, mrb_code *pc0, output_stream_func func, void *data)
{
each_backtrace(mrb, ciidx, pc0, output_backtrace_i, data);
struct output_backtrace_args args;
args.func = func;
args.data = data;
each_backtrace(mrb, ciidx, pc0, output_backtrace_i, &args);
}

static void

0 comments on commit 146a9ee

Please sign in to comment.