[MacRuby] #1444: MacRuby crashes when parsing some files with ripper
#1444: MacRuby crashes when parsing some files with ripper ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- My rubygems-compile plugin seems to crash with the following backtrace for every gem that I have tried to compile so far (rspec-core, rspec- expectations, minitest, activesupport). The relevant backtrace info is this: {{{ Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 VM Regions Near 0: --> __TEXT 000000010be8a000-000000010be8b000 [ 4K] r-x/rwx SM=COW /Library/Frameworks/MacRuby.framework/Versions/0.12/usr/bin/macruby Application Specific Information: objc[40700]: garbage collection is ON Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_c.dylib 0x00007fff838c64f0 strlen + 16 1 ripper.bundle 0x000000010eb6ad50 shadowing_lvar_gen + 528 2 ripper.bundle 0x000000010eb59b5d ripper_yyparse + 58461 3 ripper.bundle 0x000000010eb5eaa6 ripper_parse0 + 262 4 libmacruby.dylib 0x000000010bfa7b7e rb_ensure + 30 5 ripper.bundle 0x000000010eb5e6aa ripper_parse + 122 6 libmacruby.dylib 0x000000010bfa3314 rb_vm_dispatch + 3844 7 ??? 0x000000010d8e09c4 0 + 4522379716 8 ??? 0x000000010d95e12a 0 + 4522893610 9 libmacruby.dylib 0x000000010bfa3332 rb_vm_dispatch + 3874 10 ??? 0x000000010d8e09c4 0 + 4522379716 11 ??? 0x000000010d95d27d 0 + 4522889853 12 libmacruby.dylib 0x000000010bfa55b8 rb_vm_yield_args + 1640 13 libmacruby.dylib 0x000000010bf67827 rb_yield + 39 14 libmacruby.dylib 0x000000010be94e14 0x10be91000 + 15892 15 libmacruby.dylib 0x000000010bfa3314 rb_vm_dispatch + 3844 16 ??? 0x000000010d8e09c4 0 + 4522379716 17 ??? 0x000000010d91b96a 0 + 4522621290 18 libmacruby.dylib 0x000000010bfa3332 rb_vm_dispatch + 3874 19 ??? 0x000000010d8e09c4 0 + 4522379716 20 ??? 0x000000010d95c7bb 0 + 4522887099 21 libmacruby.dylib 0x000000010bfa55b8 rb_vm_yield_args + 1640 22 libmacruby.dylib 0x000000010bf67827 rb_yield + 39 23 libmacruby.dylib 0x000000010be94e14 0x10be91000 + 15892 24 libmacruby.dylib 0x000000010bfa3314 rb_vm_dispatch + 3844 25 ??? 0x000000010d8e09c4 0 + 4522379716 26 ??? 0x000000010d90407f 0 + 4522524799 27 libmacruby.dylib 0x000000010bfa3314 rb_vm_dispatch + 3844 28 command.rbo 0x000000010da1a745 0x10da19000 + 5957 29 command.rbo 0x000000010da1f988 0x10da19000 + 27016 30 libmacruby.dylib 0x000000010bfa3332 rb_vm_dispatch + 3874 31 command_manager.rbo 0x000000010da10bf5 0x10da0f000 + 7157 32 command_manager.rbo 0x000000010da135b9 0x10da0f000 + 17849 33 libmacruby.dylib 0x000000010bfa3332 rb_vm_dispatch + 3874 34 command_manager.rbo 0x000000010da10bf5 0x10da0f000 + 7157 35 command_manager.rbo 0x000000010da12bd0 0x10da0f000 + 15312 36 libmacruby.dylib 0x000000010bfa3332 rb_vm_dispatch + 3874 37 gem_runner.rbo 0x000000010da09195 0x10da08000 + 4501 38 gem_runner.rbo 0x000000010da0a5d5 0x10da08000 + 9685 39 libmacruby.dylib 0x000000010bfa3332 rb_vm_dispatch + 3874 40 ??? 0x000000010d8e09c4 0 + 4522379716 41 ??? 0x000000010d8e03d5 0 + 4522378197 42 libmacruby.dylib 0x000000010bfb3196 rb_vm_run + 534 43 libmacruby.dylib 0x000000010bebe133 ruby_run_node + 83 44 macruby 0x000000010be8ad18 main + 152 45 macruby 0x000000010be8ac74 start + 52 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1444> MacRuby <http://macruby.org/>
#1444: MacRuby crashes when parsing some files with ripper ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by watson1978@…): I want to know how to get crash report. -- Ticket URL: <http://www.macruby.org/trac/ticket/1444#comment:1> MacRuby <http://macruby.org/>
#1444: MacRuby crashes when parsing some files with ripper ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by mrada@…): You can install rubygems-compile from rubygems.org and compile almost any gem: {{{ sudo macgem install rubygems-compile sudo macgem install minitest sudo macgem compile minitest }}} Trying to compile minitest always fails for me. -- Ticket URL: <http://www.macruby.org/trac/ticket/1444#comment:2> MacRuby <http://macruby.org/>
#1444: MacRuby crashes when parsing some files with ripper ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by watson1978@…): This issue is reproduced by following code. {{{ require 'ripper' str =<<EOS def test(x) f = 1 5.times{|f| f } end EOS p Ripper::SexpBuilder.new(str).parse }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1444#comment:3> MacRuby <http://macruby.org/>
#1444: MacRuby crashes when parsing some files with ripper ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by watson1978@…): There is a need to find a reason why can't be converted by rb_id2name() in https://github.com/MacRuby/MacRuby/blob/431b87e3d48247d0e87654156d20272b9a78... [[BR]] In the mean time, I commited workaround with https://github.com/MacRuby/MacRuby/commit/431b87e3d48247d0e87654156d20272b9a... -- Ticket URL: <http://www.macruby.org/trac/ticket/1444#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby