Skip to content
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

Segfault in mrb_class #2770

Closed
tongson opened this issue Apr 22, 2015 · 0 comments
Closed

Segfault in mrb_class #2770

tongson opened this issue Apr 22, 2015 · 0 comments

Comments

@tongson
Copy link

tongson commented Apr 22, 2015

VERSION AFFECTED: mruby 1.1.0

TESTCASE:

super def bar
end

BACKTRACE:

#0  0x0000000000416886 in mrb_class (mrb=0x6a2010, v=...) at /root/mruby-1.1.0/include/mruby/class.h:47
#1  0x000000000041aa5a in mrb_respond_to (mrb=0x6a2010, obj=..., mid=140) at /root/mruby-1.1.0/src/class.c:1367
#2  0x000000000041d3e2 in convert_type (mrb=0x6a2010, val=..., tname=0x462f8c "String", method=0x462f85 "to_str", raise=0 '\000')
    at /root/mruby-1.1.0/src/object.c:310
#3  0x000000000041d69b in mrb_check_convert_type (mrb=0x6a2010, val=..., type=MRB_TT_STRING, tname=0x462f8c "String",
    method=0x462f85 "to_str") at /root/mruby-1.1.0/src/object.c:352
#4  0x0000000000406b52 in mrb_check_string_type (mrb=0x6a2010, str=...) at /root/mruby-1.1.0/src/string.c:1494
#5  0x0000000000416063 in join_ary (mrb=0x6a2010, ary=..., sep=..., list=...) at /root/mruby-1.1.0/src/array.c:996
#6  0x00000000004161ae in mrb_ary_join (mrb=0x6a2010, ary=..., sep=...) at /root/mruby-1.1.0/src/array.c:1020
#7  0x0000000000425662 in mrb_vformat (mrb=0x6a2010, format=0x464436 "undefined method '%S' for %S", ap=0x7fffffffd9d8)
    at /root/mruby-1.1.0/src/error.c:264
#8  0x000000000042611f in mrb_no_method_error (mrb=0x6a2010, id=0, argc=1, argv=0x6b4360, fmt=0x464436 "undefined method '%S' for %S")
    at /root/mruby-1.1.0/src/error.c:433
#9  0x000000000041a995 in mrb_bob_missing (mrb=0x6a2010, mod=...) at /root/mruby-1.1.0/src/class.c:1335
#10 0x000000000040dfcc in mrb_context_run (mrb=0x6a2010, proc=0x6a9fc0, self=..., stack_keep=0) at /root/mruby-1.1.0/src/vm.c:1254
#11 0x000000000041324b in mrb_toplevel_run_keep (mrb=0x6a2010, proc=0x6a9fc0, stack_keep=0) at /root/mruby-1.1.0/src/vm.c:2386
#12 0x000000000044c3dd in load_exec (mrb=0x6a2010, p=0x6fbbe0, c=0x6be9a0) at src/parse.y:5599
#13 0x000000000044c473 in mrb_load_file_cxt (mrb=0x6a2010, f=0x6dd7f0, c=0x6be9a0) at src/parse.y:5608
#14 0x00000000004024b9 in main (argc=2, argv=0x7fffffffe468) at /root/mruby-1.1.0/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c:225
@matz matz closed this as completed in bdb9d4d Apr 26, 2015
ghost pushed a commit to iij/mruby that referenced this issue May 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant