miura1729 / mruby Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mruby/mruby
Lightweight Ruby with JIT compiler
This project forked from mruby/mruby
Lightweight Ruby with JIT compiler
After building on Linux using gcc-4.9, all binaries are generated, but it fails to pass mrbtest
.
The error messages:
ArgumentError: ensure - context - yield => cannot set instance variable
NameError: Kernel#method_missing [15.3.1.3.30] => undefined method 'inspect' for class 'NoInspectClass'
Total: 844
OK: 842
KO: 0
Crash: 2
Time: 1.03 seconds
rake aborted!
Command Failed: ["build/host/test/mrbtest"]
-O2オプションを付けるとSIGSEVしました。
最適化オプションを消すと動作しました。
build_config.rbは
conf.cflags << (ENV['CFLAGS'] || %w(-m32 -g -O2 -Wall -Werror-implicit-function-declaration -freg-struct-return))
conf.ldflags << (ENV['LDFLAGS'] || %w(-m32 -lm))
% gdb --args ./bin/mruby benchmark/bm_so_lists.rb
GNU gdb (GDB) 7.5-ubuntu
(gdb) r
Starting program: /home/shigeo/Program/mruby/bin/mruby benchmark/bm_so_lists.rb
Program received signal SIGSEGV, Segmentation fault.
0xf7bf6000 in ?? ()
(gdb) bt
#0 0xf7bf6000 in ?? ()
#1 0x0805a130 in ?? ()
#2 0x00000000 in ?? ()
環境はUbuntu 12.10です。
% uname -a
Linux i3 3.5.0-21-generic mruby#32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
gcc 4.7.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.