summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2016-03-06Fix segmentation fault by backtrace and GCKouhei Sutou
GitHub: fix #3122 It reverts #3126. #3126 fixes the segmentation fault but generates broken backtrace. This change fixes the segmentation fault and generates correct backtrace. The strategy of this change is "generating backtrace while irep is alive". /tmp/test.rb: def gen e0 = nil begin 1.times { raise 'foobar' } rescue => e e0 = e end e0 end e = gen GC.start gen GC.start puts e.backtrace.join("\n") Run: % bin/mruby /tmp/test.rb /tmp/test.rb:5:in Object.gen /home/kou/work/ruby/mruby.kou/mrblib/numeric.rb:77:in Integral#times /tmp/test.rb:4:in Object.gen /tmp/test.rb:13 FYI: % ruby -v /tmp/test.rb ruby 2.3.0p0 (2015-12-25) [x86_64-linux-gnu] /tmp/test.rb:5:in `block in gen' /tmp/test.rb:4:in `times' /tmp/test.rb:4:in `gen' /tmp/test.rb:13:in `<main>'
2016-03-06Revert "Merge pull request #3126 from jbreeden/backtrace_irep_null_check"Kouhei Sutou
This reverts commit bf7719fe8da1b704c2cb72dd629dc75135fd1ad5, reversing changes made to 4f4fa0ade0fd80a3a6fa64bebcb5f71b0d4a8648. We should get backtrace while irep is alive.
2016-03-06Suppress a warningKouhei Sutou
mrbgems/mruby-eval/src/eval.c: In function ‘create_proc_from_string’: mrbgems/mruby-eval/src/eval.c:152:10: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] file = "(eval)"; ^
2016-03-06Merge pull request #3126 from jbreeden/backtrace_irep_null_checkYukihiro "Matz" Matsumoto
Null check for irep & initialize loc.lineno
2016-03-05Fix Travis CIjbreeden
2016-03-05Null check for irep & initialize loc.linenojbreeden
2016-03-04Add default benchmark build configZachary Scott
2016-02-29Merge pull request #3121 from asfluido/masterYukihiro "Matz" Matsumoto
The original code crashed when mrb->backtrace.n grew to 16.
2016-02-26The original code crashed when mrb->backtrace.n grew to 16.Carlo Prelz
It looks like the logic to reallocate the backtrace was flawed, based on the wrong variable (loc_raw->i, which, as I have verified, decreases from 16 to 0 instead of increasing) I am not sure if this is the correct fix
2016-02-25Merge pull request #3120 from rmalizia44/patch-1Yukihiro "Matz" Matsumoto
Avoid Error when Compiling with -std=c99 flag
2016-02-24Avoid Error when Compiling with -std=c99 flagMalizia R
2016-02-22too many register push for else-less condtions; fix #3117Yukihiro "Matz" Matsumoto
2016-02-22cosmetic change for OP_EQYukihiro "Matz" Matsumoto
2016-02-19mruby-struct: copied Struct length is not initialized; fix #3114Yukihiro "Matz" Matsumoto
2016-02-17peephole optimization for LOADNIL before STRCAT; ref #3110Yukihiro "Matz" Matsumoto
2016-02-17push value for NULL AST when value is required; fix #3110Yukihiro "Matz" Matsumoto
2016-02-17need to free context when reclaiming fiber object in GC; fix #3109Yukihiro "Matz" Matsumoto
2016-02-16syntax error in interpolated symbol; fixed #3108Yukihiro "Matz" Matsumoto
2016-02-16Merge pull request #3107 from mame/fix-enum-hashYukihiro "Matz" Matsumoto
[255, 255, 255, 255, 255].hash raises "can't convert Float into Integer"
2016-02-16Merge pull request #3106 from mame/fix-eval-no-filenameYukihiro "Matz" Matsumoto
Fix segfault when `eval("__FILE__")` is executed
2016-02-16suppress "can't convert Float into Integer" in Enumerable#hashYusuke Endoh
2016-02-15Fix segfault when `eval("__FILE__")` is executedYusuke Endoh
2016-02-12Merge pull request #3101 from deuwert/fix-test-buildYukihiro "Matz" Matsumoto
Fix bug in mruby-test gem (fix #3094)
2016-02-12Merge pull request #3102 from deuwert/add-limitsYukihiro "Matz" Matsumoto
Add more limitations
2016-02-12Fix formatting again...Daniel Bovensiepen
2016-02-12Add more limitations:Daniel Bovensiepen
- defined? - alias on global variables - Operator modification - Kernel.binding missing
2016-02-12Fix bug in mruby-test gem.Daniel Bovensiepen
In an used build path mruby-test wasn't updating mrbtest.c in the case that the mgem selection was changed. This lead to: - a missing reference in case a GEM was removed - ignoring all new GEMs added to the build configuration This fix keeps track of the active gems and demands a rebuild of mrbtest.c in case that the gem selection changed.
2016-02-12fixed typos in limitations.mdYukihiro "Matz" Matsumoto
2016-02-12Merge pull request #3100 from deuwert/toolchain-openwrtYukihiro "Matz" Matsumoto
Add toolchain support for OpenWRT
2016-02-12Merge pull request #3099 from deuwert/more-limitsYukihiro "Matz" Matsumoto
Addition to mruby limitation documentation
2016-02-11Add toolchain support for OpenWRTDaniel Bovensiepen
2016-02-11Fix formattingDaniel Bovensiepen
2016-02-11Add more limitationsDaniel Bovensiepen
2016-02-11add 1/2 description to limitations.md fileYukihiro "Matz" Matsumoto
2016-02-11Merge pull request #3098 from deuwert/limitationsYukihiro "Matz" Matsumoto
Limitations
2016-02-11Small format fixDaniel Bovensiepen
2016-02-11Add limitation fileDaniel Bovensiepen
2016-02-05[cppcheck] mrb_str_rindex() remove unnecessary len update by chars2bytes()Yukihiro "Matz" Matsumoto
2016-02-05[cppcheck] remove duplicated breakYukihiro "Matz" Matsumoto
2016-02-05Hash: check flags before accessing ifnone; ref #980Yukihiro "Matz" Matsumoto
2016-02-04cache UTF8 status for utf8_strlen(); ref #980Yukihiro "Matz" Matsumoto
2016-02-04cache mrb_regexp_p(); ref #980Yukihiro "Matz" Matsumoto
2016-02-04Merge pull request #3096 from hlogmans/masterYukihiro "Matz" Matsumoto
Fix missing dependency on mruby-print to support 'puts'
2016-02-03Fix missing dependency on mruby-print to support 'puts'Hugo Logmans
2016-01-31Merge pull request #3093 from retrage/retrage/devYukihiro "Matz" Matsumoto
Add String#rjust to mruby-string-ext
2016-01-31Merge pull request #3092 from kenhys/fix-suportedYukihiro "Matz" Matsumoto
Fix a typo
2016-01-31Fix a typoHAYASHI Kentaro
su ported -> supported ^
2016-01-30Merge pull request #29 from rmalizia44/patch-1Tomoyuki Sahara
Add _WIN32_WINNT definition to Avoid Windows Compilation Errors
2016-01-30Add String#rjust test to mruby-string-extAkira Moroo
2016-01-30Add String#rjust to mruby-string-extAkira Moroo