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.
The following input demonstrates a crash:
I was able to reproduce on an Ubuntu 14.04 VM with 1 GB of RAM, but not on my OS X laptop.
Debug:
It appears this problem was introduced in 9644ad5.
This issue was reported by Dinko Galetic & Denis Kasak (https://hackerone.com/dgaletic).
The text was updated successfully, but these errors were encountered: