issues Search Results · author:ksss repo:mruby/mruby
Filter by
0 results
inmruby/mruby (press backspace or delete to remove)$ cat empty.rb
$ mruby -e load empty.rb
[1] 14711 segmentation fault mruby -e
$ lldb mruby
(lldb) target create ./build/test/bin/mruby
Current executable set to mruby (x86_64).
(lldb) run ...
def cb( b)
raise if b.nil?
end
send :cb do
end
$ ./build/host/bin/mruby -v t.rb
mruby 1.4.0 (2018-1-16)
00003 NODE_SCOPE:
00003 NODE_BEGIN:
00003 NODE_DEF:
00005 cb
00003 local variables: ...
$ time mruby-1.2.0 benchmark/bm_so_lists.rb
mruby-1.2.0 benchmark/bm_so_lists.rb /dev/null 5.90s user 0.17s system 97% cpu 6.197 total
$ time mruby-1.3.0 benchmark/bm_so_lists.rb
mruby-1.3.0 benchmark/bm_so_lists.rb ...
mruby: ef305305
$ mruby -e sprintf( %0b , -5)
#= segmentation fault
build_config.rb
MRuby::Build.new( test ) do |conf|
toolchain :gcc
enable_debug
conf.gembox default
end
lldb
frame #5: ...
from 5c114c91
build_config.rb
MRuby::Build.new do |conf|
toolchain :gcc
enable_debug
conf.gembox default
end
HEAD[5c114c91] ~/src/github.com/ksss/mruby
$ cat t.rb
#! /usr/bin/env ruby
def a(*args) ...
master[7e285107] ~/src/github.com/ksss/mruby
$ git rev-parse HEAD
7e285107255877f92db2df84d104afef54030ea8
$ clang --version
Apple LLVM version 8.1.0 (clang-802.0.38)
Target: x86_64-apple-darwin16.5.0 ...
Sorry no repro code.
But I found a possibility to SEGV point.
https://github.com/mruby/mruby/blob/bd7bf260e8946f721e3fb81b84c24bb31e92ab90/src/kernel.c#L160
The e- cioff will be -1 when unshared env. ...
mruby: 051e40c0 OS: macOS compiler: clang v8.0.0
build_config.rb
MRuby::Build.new do |conf|
toolchain :gcc
enable_debug
conf.gembox default
cc.defines %w(MRB_GC_STRESS)
end
t.rb
def foo(*) ...
p (break until false)
# CRuby = nil
# mruby = false
p (break until true)
# CRuby = nil
# mruby = nil
p (break while true)
# CRuby = nil
# mruby = true
p (break while false)
# CRuby = nil
# mruby ...
$ cat t.rb
a = []
i = 0
begin
a i
end while false
p a
# CRuby = [0]
# mruby = []
$ cat t.rb
a = []
i = 0
begin
a i
end until true
p a
# CRuby = [0]
# mruby = []
$ cat t.rb
a = []
begin ...

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip! Restrict your search to the title by using the in:title qualifier.