New issue

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

abort in mrb_exc_raise #3663

Closed
clayton-shopify opened this Issue May 23, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@clayton-shopify
Contributor

clayton-shopify commented May 23, 2017

The following input demonstrates a crash:

[0]*2000000000

I was able to reproduce on an Ubuntu 14.04 VM with 1 GB of RAM, but not on my OS X laptop.

Debug:

(gdb) run
Starting program: /home/clayton/git/mruby/bin/mruby 231247.rb
RuntimeError:broken backtrace

Program received signal SIGABRT, Aborted.
0x00007ffff7745c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff7745c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff7749028 in __GI_abort () at abort.c:89
#2  0x000000000042dd62 in mrb_exc_raise (mrb=0x6af010, exc=...) at /home/clayton/git/mruby/src/error.c:263
#3  0x000000000042ddc5 in mrb_raise (mrb=0x6af010, c=0x6b9820, msg=0x48b4df "broken backtrace")
    at /home/clayton/git/mruby/src/error.c:271
#4  0x000000000044c37c in print_packed_backtrace (mrb=0x6af010, packed=...) at /home/clayton/git/mruby/src/backtrace.c:107
#5  0x000000000044c5b3 in mrb_print_backtrace (mrb=0x6af010) at /home/clayton/git/mruby/src/backtrace.c:145
#6  0x000000000042d1bf in mrb_print_error (mrb=0x6af010) at /home/clayton/git/mruby/src/print.c:33
#7  0x0000000000402455 in main (argc=2, argv=0x7fffffffe478) at /home/clayton/git/mruby/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c:240

It appears this problem was introduced in 9644ad5.

This issue was reported by Dinko Galetic & Denis Kasak (https://hackerone.com/dgaletic).

@matz matz closed this in e969229 May 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment