Segmentation fault: 11 on mirb
kyab opened this issue · 6 comments
kyab commented
[koji@macbookpro:~/work/mruby/mruby]$ mirb
mirb - Embeddable Interactive Ruby Shell
This is a very early version, please test and report errors.
Thanks :)
> Regexp
=> OnigRegexp
> "foobar" =~ /bar/
Segmentation fault: 11I'm using Mac OSX Moutain Lion(10.8), clang is,
[koji@macbookpro:~/work/mruby/mruby]$ clang --version
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
take-cheeze commented
@kyab Does this still reproduced in current master branch version?
I had a same kind of problem on onigposix.h API but when I moved to oniguruma.h API it was OK.
kyab commented
Seems like I missed some point on build phase (missing libarchive?)
[koji@macbookpro:~/work/mruby/mruby]$ clang --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
[koji@macbookpro:~/work/mruby/mruby]$ ./minirake --pull-gems
(in /Users/koji/work/mruby/mruby)
loading build config from : /Users/koji/work/mruby/kyab_build_config.rb
GIT https://github.com/mattn/mruby-onig-regexp.git -> build/mrbgems/mruby-onig-regexp
Cloning into '/Users/koji/work/mruby/mruby/build/mrbgems/mruby-onig-regexp'...
remote: Reusing existing pack: 274, done.
remote: Total 274 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (274/274), 41.31 KiB | 0 bytes/s, done.
Resolving deltas: 100% (97/97), done.
Checking connectivity... done
rake aborted!
cannot load such file -- libarchive
rakefile:26:in `load'take-cheeze commented
Sorry current master branch requires libarchive(both package and rubygem).
curl and tar seems better to handle these problem so I'll make a pull request to change it.
Could try this later?
take-cheeze commented
#13 is merged so now the current master branch shouldn't say "libarchive not found".
kyab commented
I confirmed everything is OK now.
Thank you.
[koji@macbookpro:~/work/mruby/mruby]$ mirb
mirb - Embeddable Interactive Ruby Shell
> Regexp
=> OnigRegexp
> "foobar" =~ /bar/
=> 3take-cheeze commented
Thanks for testing. :)