[MacRuby] #993: Assertion failure : vm.cpp
#993: Assertion failure : vm.cpp ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.8 Component: MacRuby | Keywords: gems, bundler, deps ---------------------------------------+------------------------------------ no idea where this comes from but when trying to use bundler to manage gem deps in a macruby app like so require "rubygems" require "bundler/setup" I get the following: Assertion failed: ((size_t)pos < current_exceptions.size()), function pop_current_exception, file vm.cpp, line 3370. If I remove the 'require bundler/setup' line, it works fine. Using 7.1 release. -- Ticket URL: <http://www.macruby.org/trac/ticket/993> MacRuby <http://macruby.org/>
#993: Assertion failure : vm.cpp ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.8 Component: MacRuby | Resolution: fixed Keywords: gems, bundler, deps | ---------------------------------------+------------------------------------ Changes (by mattaimonetti@…): * status: new => closed * resolution: => fixed -- Ticket URL: <http://www.macruby.org/trac/ticket/993#comment:1> MacRuby <http://macruby.org/>
#993: Assertion failure : vm.cpp ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: major | Milestone: MacRuby 0.8 Component: MacRuby | Resolution: Keywords: gems, bundler, deps | ---------------------------------------+------------------------------------ Changes (by jhamor@…): * status: closed => reopened * resolution: fixed => Comment: Replying to [ticket:993 hungerandthirst@…]:
no idea where this comes from but when trying to use bundler to manage gem deps in a macruby app like so
require "rubygems" require "bundler/setup"
I get the following:
Assertion failed: ((size_t)pos < current_exceptions.size()), function pop_current_exception, file vm.cpp, line 3370.
If I remove the 'require bundler/setup' line, it works fine.
Using 7.1 release.
Seeing a similar error in 0.8 only a few line numbers off. How was this resolved previously? $ macirb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'bundler/setup' Assertion failed: ((size_t)pos < current_exceptions.size()), function pop_current_exception, file vm.cpp, line 3440. Abort trap $ pwd -- Ticket URL: <http://www.macruby.org/trac/ticket/993#comment:2> MacRuby <http://macruby.org/>
#993: Assertion failure : vm.cpp ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: major | Milestone: Component: MacRuby | Resolution: Keywords: gems, bundler, deps | ---------------------------------------+------------------------------------ Changes (by lsansonetti@…): * milestone: MacRuby 0.8 => Comment: It works for me using trunk. {{{ $ /usr/local/bin/macruby -r rubygems -e "require 'bundler/setup'; p 42" 42 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/993#comment:3> MacRuby <http://macruby.org/>
#993: Assertion failure : vm.cpp ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.10 Component: MacRuby | Resolution: fixed Keywords: gems, bundler, deps | ---------------------------------------+------------------------------------ Changes (by lsansonetti@…): * status: reopened => closed * resolution: => fixed * milestone: => MacRuby 0.10 Comment: Josh and Watson also confirmed it works for them. Please try again with MacRuby 0.9, or even better, with a nightly build. -- Ticket URL: <http://www.macruby.org/trac/ticket/993#comment:4> MacRuby <http://macruby.org/>
#993: Assertion failure : vm.cpp ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: major | Milestone: MacRuby 0.10 Component: MacRuby | Resolution: Keywords: gems, bundler, deps | ---------------------------------------+------------------------------------ Changes (by jhamor@…): * status: closed => reopened * resolution: fixed => Comment: Replying to [ticket:993 hungerandthirst@…]:
no idea where this comes from but when trying to use bundler to manage gem deps in a macruby app like so
require "rubygems" require "bundler/setup"
I get the following:
Assertion failed: ((size_t)pos < current_exceptions.size()), function pop_current_exception, file vm.cpp, line 3370.
If I remove the 'require bundler/setup' line, it works fine.
Using 7.1 release.
Excuse me, sir! Hate to bring this back. However, this only works (for me) when you dont do it right ;) If i dont have a Gemfile, your sample output works. The second i create a Gemfile, the thing continues to error as before. This is with the latest nightly downloaded moments ago. $ /usr/local/bin/macruby -r rubygems -e "require 'bundler/setup'; p 42" 42 $ echo "" > Gemfile $ /usr/local/bin/macruby -r rubygems -e "require 'bundler/setup'; p 42" Assertion failed: ((size_t)pos < current_exceptions.size()), function pop_current_exception, file vm.cpp, line 3426. Abort trap $ -- Ticket URL: <http://www.macruby.org/trac/ticket/993#comment:5> MacRuby <http://macruby.org/>
#993: Assertion failure : vm.cpp ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: major | Milestone: Component: MacRuby | Resolution: Keywords: gems, bundler, deps | ---------------------------------------+------------------------------------ Changes (by lsansonetti@…): * milestone: MacRuby 0.10 => Comment: Thanks for the reproducible steps, I can now reproduce the crash :) -- Ticket URL: <http://www.macruby.org/trac/ticket/993#comment:6> MacRuby <http://macruby.org/>
#993: Assertion failure : vm.cpp ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: major | Milestone: Component: MacRuby | Resolution: Keywords: gems, bundler, deps | ---------------------------------------+------------------------------------ Comment(by lsansonetti@…): This bug is apparently blocking Rails: http://d.hatena.ne.jp/kouji0625/20110314/p1 -- Ticket URL: <http://www.macruby.org/trac/ticket/993#comment:7> MacRuby <http://macruby.org/>
#993: Assertion failure : vm.cpp in pop_current_exception() ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: major | Milestone: Component: MacRuby | Resolution: Keywords: gems, bundler, deps | ---------------------------------------+------------------------------------ -- Ticket URL: <http://www.macruby.org/trac/ticket/993#comment:8> MacRuby <http://macruby.org/>
#993: Assertion failure : vm.cpp in pop_current_exception() ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: major | Milestone: Component: MacRuby | Resolution: Keywords: gems, bundler, deps | ---------------------------------------+------------------------------------ Comment(by msabramo@…): Ditto for me: {{{ marca@scml-marca:~/dev/git-repos/jenx$ /usr/local/bin/macruby -r rubygems -e "require 'bundler/setup'; p 42" 42 marca@scml-marca:~/dev/git-repos/jenx$ echo "" > Gemfile marca@scml-marca:~/dev/git-repos/jenx$ /usr/local/bin/macruby -r rubygems -e "require 'bundler/setup'; p 42" Assertion failed: ((size_t)pos < current_exceptions.size()), function pop_current_exception, file vm.cpp, line 3434. Abort trap marca@scml-marca:~/dev/git-repos/jenx$ /usr/local/bin/macruby -v MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64] }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/993#comment:9> MacRuby <http://macruby.org/>
#993: Assertion failure : vm.cpp in pop_current_exception() ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: major | Milestone: Component: MacRuby | Resolution: Keywords: gems, bundler, deps | ---------------------------------------+------------------------------------ Comment(by msabramo@…): Here's another way to reproduce it: {{{ /tmp$ git clone git://github.com/msabramo/jenx.git && cd jenx && git checkout macruby_issue_993 && xcodebuild && open build/Release/jenx.app && syslog -w Cloning into 'jenx'... remote: Counting objects: 788, done. remote: Compressing objects: 100% (387/387), done. remote: Total 788 (delta 366), reused 752 (delta 330) Receiving objects: 100% (788/788), 19.42 MiB | 759 KiB/s, done. Resolving deltas: 100% (366/366), done. Branch macruby_issue_993 set up to track remote branch macruby_issue_993 from origin. Switched to a new branch 'macruby_issue_993' === BUILD NATIVE TARGET jenx OF PROJECT jenx WITH THE DEFAULT CONFIGURATION (Release) === ... ** BUILD SUCCEEDED ** ... Tue Nov 15 15:33:45 scml-marca \[0x0-0xb9db9d\].com.urbancoding.jenx[95450] <Notice>: *** Dispatch block exited prematurely because of an uncaught exception: Tue Nov 15 15:33:45 scml-marca \[0x0-0xb9db9d\].com.urbancoding.jenx[95450] <Notice>: /tmp/jenx/build/Release/jenx.app/Contents/Resources/JenxConnection.rb:35:in `block': undefined method `+' for nil:NilClass (NoMethodError) Tue Nov 15 15:33:45 scml-marca \[0x0-0xb9db9d\].com.urbancoding.jenx[95450] <Notice>: \tfrom /tmp/jenx/build/Release/jenx.app/Contents/Resources/JenxConnectionManager.rb:14:in `block' Tue Nov 15 15:33:45 scml-marca \[0x0-0xb9db9d\].com.urbancoding.jenx[95450] <Notice>: Assertion failed: ((size_t)pos < current_exceptions.size()), function pop_current_exception, file vm.cpp, line 3434. Tue Nov 15 15:33:45 scml-marca com.apple.launchd.peruser.346486362[97] (\[0x0-0xb9db9d\].com.urbancoding.jenx[95450]) <Warning>: Job appears to have crashed: Abort trap Tue Nov 15 15:33:47 scml-marca ReportCrash[95452] <Notice>: Saved crash report for Jenx\[95450\] version 1.0 (1) to /Users/marca/Library/Logs/DiagnosticReports/Jenx_2011-11-15-153346_SCML- MarcA.crash }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/993#comment:10> MacRuby <http://macruby.org/>
#993: Assertion failure : vm.cpp in pop_current_exception() ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: major | Milestone: Component: MacRuby | Resolution: Keywords: gems, bundler, deps | ---------------------------------------+------------------------------------ Comment(by watson1978@…): MacRuby 0.10: {{{ $ echo "" > Gemfile $ macruby -v MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64] $ macruby -r rubygems -e "require 'bundler/setup'; p 42" Assertion failed: ((size_t)pos < current_exceptions.size()), function pop_current_exception, file vm.cpp, line 3434. zsh: abort macruby -r rubygems -e "require 'bundler/setup'; p 42" }}} MacRuby latest: {{{ $ echo "" > Gemfile $ macruby -v MacRuby 0.12 (ruby 1.9.2) [universal-darwin11.0, x86_64] $ macruby -r rubygems -e "require 'bundler/setup'; p 42" 42 $ git clone git://github.com/msabramo/jenx.git && cd jenx && git checkout macruby_issue_993 && xcodebuild && open build/Release/jenx.app && syslog -w Cloning into 'jenx'... remote: Counting objects: 788, done. remote: Compressing objects: 100% (387/387), done. remote: Total 788 (delta 366), reused 752 (delta 330) Receiving objects: 100% (788/788), 19.42 MiB | 372 KiB/s, done. Resolving deltas: 100% (366/366), done. Branch macruby_issue_993 set up to track remote branch macruby_issue_993 from origin by rebasing. Switched to a new branch 'macruby_issue_993' === BUILD NATIVE TARGET jenx OF PROJECT jenx WITH THE DEFAULT CONFIGURATION (Release) === Check dependencies ProcessInfoPlistFile build/Release/jenx.app/Contents/Info.plist jenx/jenx- Info.plist cd /Users/watson/tmp/jenx builtin-infoPlistUtility jenx/jenx-Info.plist -genpkginfo /Users/watson/tmp/jenx/build/Release/jenx.app/Contents/PkgInfo -expandbuildsettings -platform macosx -o /Users/watson/tmp/jenx/build/Release/jenx.app/Contents/Info.plist ProcessPCH /var/folders/1z/ff7x15cj7vb24rl38ty0y52w0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders /jenx-Prefix-cflzymbqxahnfogfroxowkdgadse/jenx-Prefix.pch.pth jenx/jenx- Prefix.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/watson/tmp/jenx setenv LANG en_US.US-ASCII /Developer/usr/bin/clang -x objective-c-header -arch x86_64 -fmessage- length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show- category=id -fdiagnostics-parseable-fixits -std=gnu99 -fobjc-gc-only -Wno- trigraphs -fpascal-strings -Os -Wreturn-type -Wparentheses -Wswitch -Wno- unused-parameter -Wunused-variable -Wunused-value -Wshorten-64-to-32 -isysroot /Developer/SDKs/MacOSX10.7.sdk -fasm-blocks -mmacosx-version- min=10.6 -gdwarf-2 -fvisibility=hidden -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -iquote /Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/jenx-generated- files.hmap -I/Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build /jenx-own-target-headers.hmap -I/Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/jenx-all- target-headers.hmap -iquote /Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/jenx-project- headers.hmap -I/Users/watson/tmp/jenx/build/Release/include -I/Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/DerivedSources/x86_64 -I/Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/DerivedSources -F/Users/watson/tmp/jenx/build/Release -c /Users/watson/tmp/jenx/jenx /jenx-Prefix.pch -o /var/folders/1z/ff7x15cj7vb24rl38ty0y52w0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders /jenx-Prefix-cflzymbqxahnfogfroxowkdgadse/jenx-Prefix.pch.pth -MMD -MT dependencies -MF /var/folders/1z/ff7x15cj7vb24rl38ty0y52w0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders /jenx-Prefix-cflzymbqxahnfogfroxowkdgadse/jenx-Prefix.pch.d CompileC build/jenx.build/Release/jenx.build/Objects-normal/x86_64/main.o jenx/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/watson/tmp/jenx setenv LANG en_US.US-ASCII /Developer/usr/bin/clang -x objective-c -arch x86_64 -fmessage- length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show- category=id -fdiagnostics-parseable-fixits -std=gnu99 -fobjc-gc-only -Wno- trigraphs -fpascal-strings -Os -Wreturn-type -Wparentheses -Wswitch -Wno- unused-parameter -Wunused-variable -Wunused-value -Wshorten-64-to-32 -isysroot /Developer/SDKs/MacOSX10.7.sdk -fasm-blocks -mmacosx-version- min=10.6 -gdwarf-2 -fvisibility=hidden -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -iquote /Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/jenx-generated- files.hmap -I/Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build /jenx-own-target-headers.hmap -I/Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/jenx-all- target-headers.hmap -iquote /Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/jenx-project- headers.hmap -I/Users/watson/tmp/jenx/build/Release/include -I/Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/DerivedSources/x86_64 -I/Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/DerivedSources -F/Users/watson/tmp/jenx/build/Release -include /var/folders/1z/ff7x15cj7vb24rl38ty0y52w0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders /jenx-Prefix-cflzymbqxahnfogfroxowkdgadse/jenx-Prefix.pch -MMD -MT dependencies -MF /Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/Objects- normal/x86_64/main.d -c /Users/watson/tmp/jenx/jenx/main.m -o /Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/Objects- normal/x86_64/main.o Ld build/Release/jenx.app/Contents/MacOS/jenx normal x86_64 cd /Users/watson/tmp/jenx setenv MACOSX_DEPLOYMENT_TARGET 10.6 /Developer/usr/bin/clang -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.7.sdk -L/Users/watson/tmp/jenx/build/Release -F/Users/watson/tmp/jenx/build/Release -filelist /Users/watson/tmp/jenx/build/jenx.build/Release/jenx.build/Objects- normal/x86_64/jenx.LinkFileList -mmacosx-version-min=10.6 -framework MacRuby -framework Growl -framework Cocoa -o /Users/watson/tmp/jenx/build/Release/jenx.app/Contents/MacOS/jenx ld: framework not found Growl Command /Developer/usr/bin/clang failed with exit code 1 ** BUILD FAILED ** The following build commands failed: Ld build/Release/jenx.app/Contents/MacOS/jenx normal x86_64 (1 failure) }}} I can't reproduce this issue with MacRuby latest.[[BR]] Could you check this with MacRuby latest? -- Ticket URL: <http://www.macruby.org/trac/ticket/993#comment:11> MacRuby <http://macruby.org/>
#993: Assertion failure : vm.cpp in pop_current_exception() ---------------------------------------+------------------------------------ Reporter: hungerandthirst@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: major | Milestone: Component: MacRuby | Resolution: Keywords: gems, bundler, deps | ---------------------------------------+------------------------------------ Comment(by msabramo@…): OK, well I couldn't find a binary for MacRuby 0.12 (is there one?) so I have LLVM compiling now... I did find [https://github.com/downloads/MacRuby/MacRuby/MacRuby%200.11.zip MacRuby 0.11] though on the GitHub downloads and that worked for me with both the bundler command and the jenx stuff (by the way if you want to build jenx, you need to install Growl.Framework from [http://code.google.com/p/growl/downloads/detail?name=Growl-1.2.2-SDK.dmg&can... Growl-1.2.2-SDK.dmg] in /Library/Frameworks). So it seems like the issue was fixed in MacRuby 0.11 and most likely will work with MacRuby 0.12 too. Note that https://www.macruby.org/ still has MacRuby 0.10 for download. -- Ticket URL: <http://www.macruby.org/trac/ticket/993#comment:12> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby