Every repository with this icon (
Every repository with this icon (
| Description: | Rubinius, the Ruby VM edit |
-
ActiveSupport::DependencyTest fails when an .rbc already exists
1 comment Created 4 days ago by wycatsThis test:
def test_removal_from_tree_should_be_detected with_loading 'dependencies' do root = ActiveSupport::Dependencies.load_paths.first c = ServiceOne ActiveSupport::Dependencies.clear assert !defined?(ServiceOne) begin ActiveSupport::Dependencies.load_missing_constant(c, :FakeMissing) flunk "Expected exception" rescue ArgumentError => e assert_match %r{ServiceOne has been removed from the module tree}i, e.message end end endfails in combination with the other tests in the file (active_support/test/dependencies_test.rb) when an .rbc file already exists for dependencies_test.rb. Running the file twice in a row will result in a failure on test_removal_from_tree_should_be_detected the second time, but not the first time.
First pass:
% rbx -Itest -rubygems test/dependencies_test.rb DEPRECATION WARNING: ActiveSupport::DeprecatedCallbacks has been deprecated in favor of ActiveSupport::Callbacks. (called from included {} at /Users/wycats/Code/active/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:7) Loaded suite test/dependencies_test Started ..........................................E.................... Finished in 0.4073 seconds. 1) Error: test_class_with_nested_inline_subclass_of_parent(DependenciesTest): NameError: uninitialized constant ClassFolder::ClassFolderSubclass /Users/wycats/Code/active/rails/activesupport/lib/active_support/dependencies.rb:117:in `const_missing' test/dependencies_test.rb:199:in `test_class_with_nested_inline_subclass_of_parent {}' test/dependencies_test.rb:31:in `with_loading' test/dependencies_test.rb:39:in `with_autoloading_fixtures' test/dependencies_test.rb:198:in `test_class_with_nested_inline_subclass_of_parent' /Users/wycats/Code/active/rubinius/gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:37:in `run' kernel/bootstrap/array.rb:156:in `each' kernel/bootstrap/array.rb:156:in `each' 63 tests, 218 assertions, 0 failures, 1 errorsSecond pass:
% rbx -Itest -rubygems test/dependencies_test.rb DEPRECATION WARNING: ActiveSupport::DeprecatedCallbacks has been deprecated in favor of ActiveSupport::Callbacks. (called from included {} at /Users/wycats/Code/active/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:7) Loaded suite test/dependencies_test Started ............................................................F.. Finished in 0.479002 seconds. 1) Failure: test_removal_from_tree_should_be_detected(DependenciesTest) [test/dependencies_test.rb:421:in `test_removal_from_tree_should_be_detected {}' test/dependencies_test.rb:31:in `with_loading' test/dependencies_test.rb:417:in `test_removal_from_tree_should_be_detected' /Users/wycats/Code/active/rubinius/gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:37:in `run' kernel/bootstrap/array.rb:156:in `each' kernel/bootstrap/array.rb:156:in `each']: <false> is not true. 63 tests, 220 assertions, 1 failures, 0 errorsComments
-
-
1 comment Created 10 days ago by joshFixed Regexp#named_captures to return an empty hash when there are no named captures.kernelxRegexp#named_captures bombs if there are no @names.
This fixes a failing rubyspec test.
http://github.com/josh/rubinius/commit/0418fc10e0c662d883c42791d4b5152fabd52f42
Comments
-
Rubinius segfaults running the following command:
bin/rbx -e "100000000.times { 1 + 1 }"Error messages are described here: http://gist.github.com/249945
I tried compiling with rake build:debug but the messages and the gdb backtrace are the same.
uname -a:
Linux cezar-ubuntu 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
Comments
Works for me.
Tom-Morninis-MacBook-Pro:rubinius tmornini$ uname -a
Darwin Tom-Morninis-MacBook-Pro.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:35:19 PST 2009; root:xnu-1486.2.11~1/RELEASE_X86_64 x86_64
Tom-Morninis-MacBook-Pro:rubinius tmornini$ time bin/rbx -e "100000000.times { 1 + 1 }"real 0m6.963s
user 0m6.874s
sys 0m0.070s
That's odd. Maybe it's only crashing on Linux, can anyone confirm that? Anyway, I'll try a fresh clone to see if it still happens.
This doesn't segfault on OS X, but I can confirm it for the following platform:
Linux sv-dimensie 2.6.26-2-amd64 #1 SMP Sun Jun 21 04:47:08 UTC 2009 x86_64 GNU/Linux
Multiple confirmations of no bug, including original reporter. Closing.
-
7 comments Created 13 days ago by philtomsonduring rake: undefined method `rake_system' for #<Object:0xb7cae95c>buildxPlatform:
Linux tiny 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:24 UTC 2009 i686 GNU/Linux
(Ubuntu 9.04)Linux tiny 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:24 UTC 2009 i686 GNU/Linux ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]Ran with --trace:
undefined methodrake_system' for #<Object:0xb7c5a94c><br/> /home/phil/devel/ruby/rubinius/rakelib/ext_helper.rb:215:inqsh' /home/phil/devel/ruby/rubinius/lib/ext/melbourne/Rakefile:9 /usr/lib/ruby/1.8/rake.rb:544:incall' /usr/lib/ruby/1.8/rake.rb:544:inexecute' /usr/lib/ruby/1.8/rake.rb:541:ineach' /usr/lib/ruby/1.8/rake.rb:541:inexecute' /usr/lib/ruby/1.8/rake.rb:508:ininvoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:501:insynchronize' /usr/lib/ruby/1.8/rake.rb:501:ininvoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:518:ininvoke_prerequisites' /usr/lib/ruby/1.8/rake.rb:1183:ineach' /usr/lib/ruby/1.8/rake.rb:1183:insend' /usr/lib/ruby/1.8/rake.rb:1183:ineach' /usr/lib/ruby/1.8/rake.rb:515:ininvoke_prerequisites' /usr/lib/ruby/1.8/rake.rb:507:ininvoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:501:insynchronize' /usr/lib/ruby/1.8/rake.rb:501:ininvoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:518:ininvoke_prerequisites' /usr/lib/ruby/1.8/rake.rb:1183:ineach' /usr/lib/ruby/1.8/rake.rb:1183:insend' /usr/lib/ruby/1.8/rake.rb:1183:ineach' /usr/lib/ruby/1.8/rake.rb:515:ininvoke_prerequisites' /usr/lib/ruby/1.8/rake.rb:507:ininvoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:501:insynchronize' /usr/lib/ruby/1.8/rake.rb:501:ininvoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:494:ininvoke' /usr/lib/ruby/1.8/rake.rb:1931:ininvoke_task' /usr/lib/ruby/1.8/rake.rb:1909:intop_level' /usr/lib/ruby/1.8/rake.rb:1909:ineach' /usr/lib/ruby/1.8/rake.rb:1909:intop_level' /usr/lib/ruby/1.8/rake.rb:1948:instandard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1903:intop_level' /usr/lib/ruby/1.8/rake.rb:1881:inrun' /usr/lib/ruby/1.8/rake.rb:1948:instandard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1878:in `run' /usr/bin/rake:28 rake aborted!
Comments
philtomson
Sat Dec 05 23:45:58 -0800 2009
| link
rake, version 0.8.7
philtomson
Sat Dec 05 23:47:22 -0800 2009
| link
BTW: earlier I had been using rake, version 0.8.1 and had the same problem.
Can you try this change and see if it gets you further? It looks like something might still be off because here it works with and without, and #qsh does seem to be getting invoked (a Ruby version problem?), but:
diff --git a/rakelib/ext_helper.rb b/rakelib/ext_helper.rb index 45e53ca..927901e 100644 --- a/rakelib/ext_helper.rb +++ b/rakelib/ext_helper.rb @@ -212,7 +212,7 @@ end def qsh(cmd) cmd << " > /dev/null 2>&1" unless $verbose puts cmd if $verbose - unless result = rake_system(cmd) + unless result = RakeFileUtils.send(:rake_system, cmd) fail "Command failed with status (#{$?.exitstatus}): [#{cmd}]" end resultWell drat, I have a vbox install of 9.04 with exactly the same uname line, same ruby version, rake 0.8.7 and rubygems 1.3.5... and I cannot repro this.
The fact that #rake_system is made private in the FileUtils module should not be an issue, since FileUtils is include'd into RakeFileUtils and RakeFileUtils is included at script-level/top-level. Further #rake_system is called without a receiver.
Phil: try that patch and let me know if it works. I'd really like to understand what is actually going on. Could you do some debugging? One of the issues we often hit with the rakelib/*.rake files is the different order in which they are required because the ordering of files in a listing is non-deterministic on Linux but sorted on OS X.
philtomson
Mon Dec 07 09:06:52 -0800 2009
| link
OK, I found the problem. Ubuntu has a pretty old rake 0.8.1. I had installed the new 0.8.7 rake via gems but I hadn't re-run configure. So now it's getting past this particular error.
-
When running the standard script/console for rails 2.3.5:
#!/usr/bin/env ruby require File.expand_path('../../config/boot', __FILE__) require 'commands/console'The actual command that ends up getting exec'd is:
irb -r irb/completion -r "./config/environment" -r console_app -r console_with_helpers --simple-promptPlatform is Mac OS Leopard 10.5.8
An exception occurred running script/console
Unknown errno : execvp(2) failed (SystemCallError) Backtrace: Kernel(Object)#exec at kernel/common/process.rb:622 main.__script__ at rubinius/gems/1.8/gems/rails-2.3.5/lib/commands /console.rb:45 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:230 Requirer::Utils.single_load at kernel/delta/requirer.rb:236 Requirer::Utils.unified_load {} at kernel/delta/requirer.rb:122 Array#each at kernel/bootstrap/array.rb:156 Requirer::Utils.unified_load at kernel/delta/requirer.rb:87 Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:737 Kernel(Object)#require at rubinius/lib/rubygems/custom_require.rb:31 main.__script__ at script/console:3 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:230 Requirer::Utils.single_load at kernel/delta/requirer.rb:236 Requirer::Utils.load_from_extension at kernel/delta/requirer.rb:321 Rubinius::Loader#script at kernel/loader.rb:376 Rubinius::Loader#main at kernel/loader.rb:485 Object#__script__ at kernel/loader.rb:489Comments
-
1 comment Created 18 days ago by wycatszsuper with a block ignores the blockcompilerxclass Foo def bar yield 1 end end class Bar < Foo def bar super {|x| yield x + 1 } end end p Bar.new.bar {|x| puts x } # MRI: 2 # rbx: 1Also see the following, which shows that it's still a zsuper wrt the other arguments:
class Foo def bar(y) yield 1 + y end end class Bar < Foo def bar(y) super {|x| yield x + 1 } end end p Bar.new.bar(1) {|x| puts x } # MRI: 3 # rbx: 2Comments
-
1 comment Created 20 days ago by ruebundledxOverriding Bundled Gems/Rake/etc. Should Be Possible + SimplefeaturexIn the short- to medium-term, it should be made possible for users to install different versions of any of the bundled libraries. Optionally, perhaps, also leaving the original bundled one around so that it could be used as a fallback.
Comments
-
the defined?(super) idiom can be used to efficiently use modules for plugins, i.e.:
def a_method # do stuff # ... and then call potential modules that have been included super if defined? super endrubinius does not implement defined?(super). I guess, though, that it would not be so difficult to at least implement a Kernel#has_super? method that returns true if there is a "super" method.
Comments
-
1 comment Created 22 days ago by dkubbkernelx[PATCH] Kernel#dup does not work on an object with an undefined #sendpatchxKernel#dup uses Object#send underneath, and if #send is undefined (or redefined for another purpose) it explodes. Here is a patch to use #__send__ instead:
Comments
-
script/console runs fine, but when I try to run script/server, it just raises the following error:
An exception occurred running script/server No method 'first' on an instance of Rubinius::AST::ArrayLiteral. (NoMethodError) Backtrace: Kernel(Rubinius::AST::ArrayLiteral)#first (method_missing) at kernel/delta/kernel.rb:49 Rubinius::AST::RescueCondition#initialize at lib/compiler/ast/exceptions.rb:173 Rubinius::Melbourne#process_resbody at lib/melbourne/processor.rb:363 Rubinius::Melbourne#parse_file at lib/melbourne.rb:63 Rubinius::CompilerNG::FileParser#parse at lib/compiler/stages.rb:211 Rubinius::CompilerNG::Parser(Rubinius::CompilerNG::FileParser)#run at lib/compiler/stages.rb:194 Rubinius::CompilerNG#run at lib/compiler/compiler.rb:83 Rubinius::CompilerNG.compile_file at lib/compiler/compiler.rb:38 Rubinius::CompilerNG.compile_file_old at lib/compiler/compiler.rb:27 Requirer::Utils.single_load {} at kernel/delta/requirer.rb:191 Requirer::Utils.compile_feature at kernel/delta/requirer.rb:133 Requirer::Utils.single_load at kernel/delta/requirer.rb:190 Requirer::Utils.unified_load {} at kernel/delta/requirer.rb:122 Array#each at kernel/bootstrap/array.rb:156 Requirer::Utils.unified_load at kernel/delta/requirer.rb:87 Autoload#call at kernel/common/autoload.rb:27 Rails::Initializer#initialize_database at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems/rails-2.3.4/lib /initializer.rb:437 Rails::Initializer#process at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems/rails-2.3.4/lib /initializer.rb:141 Rails::Initializer.run at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems/rails-2.3.4/lib /initializer.rb:113 main.__script__ at config/environment.rb:9 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:230 Requirer::Utils.single_load at kernel/delta/requirer.rb:236 Requirer::Utils.unified_load at kernel/delta/requirer.rb:80 Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:737 Kernel(Object)#require at /home/mauricio/rubinius-1.0.0-rc1/lib/rubygems/custom_require.rb:31 ActiveSupport::Dependencies::Loadable(Object)#require {} at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems /activesupport-2.3.4/lib/active_support /dependencies.rb:156 ActiveSupport::Dependencies(Module)#new_constants_in at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems /activesupport-2.3.4/lib/active_support /dependencies.rb:521 ActiveSupport::Dependencies::Loadable(Object)#require at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems /activesupport-2.3.4/lib/active_support /dependencies.rb:156 main.__script__ at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems/rails-2.3.4/lib /commands/server.rb:84 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:230 Requirer::Utils.single_load at kernel/delta/requirer.rb:236 Requirer::Utils.unified_load {} at kernel/delta/requirer.rb:122 Array#each at kernel/bootstrap/array.rb:156 Requirer::Utils.unified_load at kernel/delta/requirer.rb:87 Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:737 Kernel(Object)#require at /home/mauricio/rubinius-1.0.0-rc1/lib/rubygems/custom_require.rb:31 main.__script__ at script/server:3 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:230 Requirer::Utils.single_load at kernel/delta/requirer.rb:236 Requirer::Utils.load_from_extension at kernel/delta/requirer.rb:321 Rubinius::Loader#script at kernel/loader.rb:351 Rubinius::Loader#main at kernel/loader.rb:466 Object#__script__ at kernel/loader.rb:470Comments
-
5 comments Created 22 days ago by jherdmanGem Fails to Install Without 'sudo'rubygemsxI tried to install the FasterCSV gem without 'sudo' today and found that Rubinius tries to install gems to its own path instead of my $HOME directory (happens with MRI, 1.9, JRuby). Here's the verbose output of attempting this install:
(~)→ rbx gem install -V fastercsv GET 200 OK: http://gemcutter.org/latest_specs.4.8.gz Installing gem fastercsv-1.5.0 Downloading gem fastercsv-1.5.0.gem connection reset after 2 requests, retrying GET 302 Found: http://gemcutter.org/gems/fastercsv-1.5.0.gem GET 200 OK: http://s3.amazonaws.com/gemcutter_production/gems/fastercsv-1.5.0.gem ERROR: While executing gem ... (EACCES) Permission denied - Permission denied - /usr/local/rubinius/gems/1.8
Rubinius 1.0.0RC1 (with LLVM), Macbook, OS X 10.6.2
Comments
PATH=/opt/local/apache2/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/X11R6/bin:/usr/local/scripts:/opt/local/bin:/usr/local/games:/Users/james/.gem/ruby/1.8/bin:/usr/local/rubinius/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/PalmSDK/Current/bin:/usr/X11/bin TMPDIR=/var/folders/L3/L3c6g-Q0EG4huNwbOSjOBU+++TI/-Tmp-/ SHELL=/bin/zsh HOME=/Users/james USER=james LOGNAME=james DISPLAY=/tmp/launch-qgQJts/:0 SSH_AUTH_SOCK=/tmp/launch-shwDAH/Listeners Apple_PubSub_Socket_Render=/tmp/launch-2xV86i/Render COMMAND_MODE=unix2003 __CF_USER_TEXT_ENCODING=0x1F5:0:82 TERM_PROGRAM=Apple_Terminal TERM_PROGRAM_VERSION=272 LANG=en_CA.UTF-8 TERM=xterm-color SHLVL=1 PWD=/Users/james OLDPWD=/Users/james PROMPT=%{[0;32m%}(%~)%{[0;33m%}→ %{[0m%} EDITOR=vim CLICOLOR=true LSCOLORS=GxFxCxDxBxEGEDABAGACAD LC_CTYPE=en_US.UTF-8 LD_LIBRARY_PATH=/usr/local/lib PAGER=less _=/usr/bin/env
engineyard
Thu Dec 03 15:45:37 -0800 2009
| link
I recently fixed a few rubygems related things, please try again and reopen.
Hi Evan.
I pulled in the latest changes to Rubinius this morning, uninstalled my previous copy, rebuilt and reinstalled, and found that the issue persists. My output is below:
(~/dev/rubinius)→ rbx gem install -V fastercsv GET 200 OK: http://gemcutter.org/latest_specs.4.8.gz Installing gem fastercsv-1.5.0 ERROR: While executing gem ... (EACCES) Permission denied - Permission denied - /usr/local/rubinius/gems/1.8
Note that Rubinius is still attempting to install to /usr/local/rubinius/gems/1.8 despite the fact that I'm not using 'sudo'. Expected behaviour without 'sudo' is to install to $HOME/.gem/rbx/1.8.
-
4 comments Created 22 days ago by jarnoldStuck "bin/mspec ci -B full --background" during buildhangxInitial build of rubinius with llvm enabled resulted in a hung mspec run. Here is the output:
bin/mspec ci -B full --background
rubinius 1.0.0-rc1 (1.8.7 release 2009-11-25 JI) [i686-apple-darwin9.8.0]
........................................................................................................................................................................................................................................................................................................................................................................................................................................A dtruss of the process was repeatedly spitting out this message:
__semwait_signal(0x317, 0x0, 0x1) = -1 Err#60Running "bin/mspec ci -B full --background" again resulted in a clean run.
Comments
Seeing this also on OS X 10.6 32-bit (mac mini) with same options. It downloaded a precompiled LLVM.
Just tried again with latest from github and it completed this time. The only thing I changed on my system was that I just installed the macports llvm before trying again so not sure if that made a difference or anything that changed in the last 2 days.
engineyard
Thu Dec 03 15:45:11 -0800 2009
| link
This should not be fixed. It was related to the JIT not properly compiling out exception handling.
-
[yannick@alchemist rubinius-1.0.0-rc1]$ /usr/bin/ruby --version ruby 1.9.1p243 (2009-07-16 revision 24175) [x86_64-linux]
[yannick@alchemist rubinius-1.0.0-rc1]$ gcc --versiongcc (GCC) 4.4.2Copyright (C) 2009 Free Software Foundation, Inc.Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Esgibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.[yannick@alchemist rubinius-1.0.0-rc1]$ rake build(in /home/yannick/code/ruby/rubinius-1.0.0-rc1) /usr/bin/ruby vm/codegen/field_extract.rb vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/builtin/executable.hpp vm/builtin/access_variable.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/bytearray.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/module.hpp vm/builtin/class.hpp vm/builtin/compiledmethod.hpp vm/builtin/data.hpp vm/builtin/dir.hpp vm/builtin/exception.hpp vm/builtin/float.hpp vm/builtin/immediates.hpp vm/builtin/iseq.hpp vm/builtin/list.hpp vm/builtin/lookuptable.hpp vm/builtin/memorypointer.hpp vm/builtin/methodtable.hpp vm/builtin/nativefunction.hpp vm/builtin/packed_object.hpp vm/builtin/regexp.hpp vm/builtin/selector.hpp vm/builtin/staticscope.hpp vm/builtin/sendsite.hpp vm/builtin/string.hpp vm/builtin/symbol.hpp vm/builtin/thread.hpp vm/builtin/tuple.hpp vm/builtin/compactlookuptable.hpp vm/builtin/time.hpp vm/builtin/taskprobe.hpp vm/builtin/nativemethod.hpp vm/builtin/system.hpp vm/builtin/autoload.hpp vm/builtin/machine_method.hpp vm/builtin/proc.hpp vm/builtin/variable_scope.hpp vm/builtin/location.hpp vm/builtin/capi_handle.hpp vm/builtin/global_cache_entry.hpp vm/builtin/weakref.hpp rake aborted!
library not found for class Digest::SHA1 -- digest/sha1(See full trace by running task with --trace)
doing a require 'digest/sha1' into Rakefile is solving the issue.
Comments
-
I built rbx 1.0.0rc1 via RVM. During the installation process, it installs the rake gem. However, this errors out with
ERROR: While executing gem ... (Gem::Exception) [BUG] invalid exec_format "rbx", no %sComments
Installing Rake should be unnecessary, there is a bundled version. Did the build complete otherwise? Need to figure out if this should just be fixed in rvm.
On the other hand, it is probably worth exploring how the bundled stuff should be handled if the user wants to upgrade/override for some reason.
I agree, rue. Users should be able to override bundled versions.
I opened #101 separately for the bundled libraries. Closing this one as it seems that the immediate fix should be in rvm, will talk to them.
-
Running 'rake' in the memcache-client 1.7.7 gem, rbx crashes during the get:ruby:memcache-client benchmark. See example output here:
You will need to have a memcached server running locally to reproduce this.
Comments
-
2 comments Created 26 days ago by dammconfigure can sometimes remove /dev/null and make Snow Leopard Unstable (requiring a reboot to recover)buildxIn order to duplicate,
Step 1, install latest Xcode
Step 2, install brew
Step 2, install llvm from brew
Step 2, install rvm (not sure if this is related, doubt it)
Step 3, git clone rubinus as root, then ./configure --enable-lvmshould take about 30seconds and eventually it spews and you'll find the system is now unstable, /dev/null is missing, and the easiest way to fix said issue is to reboot Snow Leopard.
FYI running SL 10.6.2, with Ruby 1.8.7 p72 (stock ruby)
Comments
We'll need the output from configure, rake, and the tests to try and fix this. In addition, we need to know if brew has introduced an error.
Since you're on 10.6.2, you actually don't need to build LLVM your own. 'configure' will automatically download a prebuilt LLVM for you to use. Please remove llvm from brew and try this and see if you still get this problem. If it goes away, please update the ticket with information on what version of LLVM brew installed.
If you not installing rubinius via rvm, it's not related.
-
2 comments Created 26 days ago by mperhammemcache-client test suite does not work on RubiniuskernelxLooks like TCPSocket does not support non-blocking reads?
NoMethodError: No method 'prim_read' on an instance of TCPSocket. kernel/delta/kernel.rb:49:in `prim_read (method_missing)' kernel/common/io.rb:1120:in `read_nonblock' ./test/../lib/memcache.rb:1120:in `rbuf_fill' /Users/mike/git/rubinius/lib/net/protocol.rb:116:in `readuntil' ./test/../lib/memcache.rb:1137:in `gets' ./test/../lib/memcache.rb:373:in `set {}' ./test/../lib/memcache.rb:857:in `with_socket_management' ./test/../lib/memcache.rb:370:in `set {}' ./test/../lib/memcache.rb:878:in `with_server' ./test/../lib/memcache.rb:361:in `set' ./test/test_benchmark.rb:47:in `test_benchmark {}' kernel/common/integer.rb:135:in `times' ./test/test_benchmark.rb:46:in `test_benchmark {}' /Users/mike/git/rubinius/lib/benchmark.rb:296:in `measure' /Users/mike/git/rubinius/lib/benchmark.rb:380:in `report (item)' ./test/test_benchmark.rb:45:in `test_benchmark {}' /Users/mike/git/rubinius/lib/benchmark.rb:177:in `benchmark' /Users/mike/git/rubinius/lib/benchmark.rb:208:in `bm' ./test/test_benchmark.rb:39:in `test_benchmark' kernel/bootstrap/array.rb:156:in `each' kernel/bootstrap/array.rb:156:in `each'To reproduce, start memcached locally ('memcached -d'), gem install memcache-client and then run "rake" in the gem source to run the test suite.
Comments
-
At first I was running this code:
Object.class_eval { define_method(:z) {|&b| b.call('z')} }
..but this code has the same result: Object.class_eval { lambda {|&b| b.call('b')} }
Outside the class_eval, it throws a SyntaxError.failure output here: http://gist.github.com/240497
Comments
-
4 comments Created 27 days ago by boffbowsh[PATCH] Kernel#require segfaults when requiring an inaccessible fileparserxOccurs on both OSX Snow Leopard and Ubuntu Karmic VPS.
Below is the output from Ubuntu
boffbowsh@deimos:~/code/rubinius$ bin/mspec -fs spec/frozen/core/kernel/require_spec.rb rubinius 0.13.0 (1.8.7 62059fdc 2009-11-06) [i686-pc-linux-gnu] Kernel#require - is a private method - resolves paths relative to the current working directory - does not expand/resolve qualified files against $LOAD_PATH - loads a .rb from an absolute path - collapses consecutive path separators - loads an unqualified .rb by looking in $LOAD_PATH and returning true - allows unqualified files to contain path information (just not in the beginning) - loads a file with ./filename even if . is not in path - stores a non-extensioned file with its located suffix - appends a file with no extension with .rb/.<ext> in that order to locate file - prefers to use .rb over .<ext> if given non-extensioned file and both exist - will load file.rb when given 'file' if it exists even if file.<ext> is loaded - will not load file.<ext> when given 'file' if file.rb already loaded - appends any non-ruby extensioned file with .rb/.<ext> in that order to locate file - loads extension files - will load explicit file.<ext> even if file.rb already loaded and vice versa - stores the loaded file in $LOADED_FEATURES - will not add a bad load to LOADED_FEATURES - uses $LOADED_FEATURES to see whether file is already loaded - will not load a file whose path appears in $LOADED_FEATURES; it will return false - requires arbitrarily complex files (files with large numbers of AST nodes) - raises a LoadError if the file can't be found - raises a LoadError if the file exists but can't be readError: signal SIGSEGV bin/rbx[0x810fa72] [0xffffe400] /lib/tls/i686/cmov/libc.so.6(_IO_feof+0x10)[0xb74a6d70] /home/boffbowsh/code/rubinius/lib/ext/melbourne/rbx/melbourne.so[0xb63f918d] /home/boffbowsh/code/rubinius/lib/ext/melbourne/rbx/melbourne.so[0xb63f8f77] /home/boffbowsh/code/rubinius/lib/ext/melbourne/rbx/melbourne.so[0xb63f9452] /home/boffbowsh/code/rubinius/lib/ext/melbourne/rbx/melbourne.so[0xb63fb14b] /home/boffbowsh/code/rubinius/lib/ext/melbourne/rbx/melbourne.so(_ZN9melbourne11mel_yyparseEPv+0x396)[0xb63f07fc] /home/boffbowsh/code/rubinius/lib/ext/melbourne/rbx/melbourne.so[0xb63f8d82] /home/boffbowsh/code/rubinius/lib/ext/melbourne/rbx/melbourne.so(_ZN9melbourne11file_to_astEiPKcP8_IO_FILEi+0x8e)[0xb63f92e3] /home/boffbowsh/code/rubinius/lib/ext/melbourne/rbx/melbourne.so(melbourne_file_to_ast+0x65)[0xb63eb2e9] bin/rbx(_ZN8rubinius12NativeMethod4callEPNS_2VMEPNS_23NativeMethodEnvironmentERNS_9ArgumentsE+0x2ca)[0x8147b9a] bin/rbx(_ZN8rubinius12NativeMethod23executor_implementationEPNS_2VMEPNS_9CallFrameERNS_8DispatchERNS_9ArgumentsE+0x257)[0x8148247] bin/rbx(_ZN8rubinius8VMMethod11interpreterEPNS_2VMEPS0_PNS_20InterpreterCallFrameERNS_9ArgumentsE+0x1d9f)[0x811e35f] bin/rbx(_ZN8rubinius8VMMethod19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_2VMEPNS_9CallFrameERNS_8DispatchERNS_9ArgumentsE+0x13f)[0x80e8adf] bin/rbx(_ZN8rubinius8VMMethod11interpreterEPNS_2VMEPS0_PNS_20InterpreterCallFrameERNS_9ArgumentsE+0x1cf6)[0x811e2b6] bin/rbx(_ZN8rubinius8VMMethod19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_2VMEPNS_9CallFrameERNS_8DispatchERNS_9ArgumentsE+0x13f)[0x80e8adf] bin/rbx(_ZN8rubinius8VMMethod11interpreterEPNS_2VMEPS0_PNS_20InterpreterCallFrameERNS_9ArgumentsE+0x1cf6)[0x811e2b6] bin/rbx(_ZN8rubinius8VMMethod19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_2VMEPNS_9CallFrameERNS_8DispatchERNS_9ArgumentsE+0x13f)[0x80e8adf] bin/rbx(_ZN8rubinius8VMMethod11interpreterEPNS_2VMEPS0_PNS_20InterpreterCallFrameERNS_9ArgumentsE+0x1cf6)[0x811e2b6] bin/rbx(_ZN8rubinius8VMMethod19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_2VMEPNS_9CallFrameERNS_8DispatchERNS_9ArgumentsE+0x13f)[0x80e8adf] bin/rbx(_ZN8rubinius8VMMethod11interpreterEPNS_2VMEPS0_PNS_20InterpreterCallFrameERNS_9ArgumentsE+0x1cf6)[0x811e2b6] bin/rbx(_ZN8rubinius8VMMethod19execute_specializedINS_16GenericArgumentsEEEPNS_6ObjectEPNS_2VMEPNS_9CallFrameERNS_8DispatchERNS_9ArgumentsE+0x17f)[0x80e921f] bin/rbx(_ZN8rubinius8VMMethod11interpreterEPNS_2VMEPS0_PNS_20InterpreterCallFrameERNS_9ArgumentsE+0x1d9f)[0x811e35f] bin/rbx(_ZN8rubinius8VMMethod19execute_specializedINS_16GenericArgumentsEEEPNS_6ObjectEPNS_2VMEPNS_9CallFrameERNS_8DispatchERNS_9ArgumentsE+0x17f)[0x80e921f] bin/rbx(_ZN8rubinius8VMMethod11interpreterEPNS_2VMEPS0_PNS_20InterpreterCallFrameERNS_9ArgumentsE+0x1d9f)[0x811e35f] bin/rbx(_ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_2VMEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE+0x12f)[0x814ebbf] bin/rbx(_ZN8rubinius16BlockEnvironment4callEPNS_2VMEPNS_9CallFrameERNS_9ArgumentsEi+0x4b)[0x814e27b] bin/rbx(_ZN8rubinius8VMMethod11interpreterEPNS_2VMEPS0_PNS_20InterpreterCallFrameERNS_9ArgumentsE+0x3605)[0x811fbc5] bin/rbx(_ZN8rubinius8VMMethod19execute_specializedINS_12TwoArgumentsEEEPNS_6ObjectEPNS_2VMEPNS_9CallFrameERNS_8DispatchERNS_9ArgumentsE+0x1bb)[0x80e969b] bin/rbx(_ZN8rubinius8VMMethod11interpreterEPNS_2VMEPS0_PNS_20InterpreterCallFrameERNS_9ArgumentsE+0x1e69)[0x811e429] bin/rbx(_ZN8rubinius8VMMethod19execute_specializedINS_14FixedArgumentsEEEPNS_6ObjectEPNS_2VMEPNS_9CallFrameERNS_8DispatchERNS_9ArgumentsE+0x203)[0x80e8df3]Comments
A patch is here: http://gist.github.com/240330
It doesn't fix the segfault, simply masks it. The issue (from what I can tell from my limited cpp knowledge) is actually in ext/melbourne/melbourne.cpp:18. I'm not sure if the code should check here that the file is readable, or whether it should leave the checking to the caller.
Be sure to check whether the given file could actually be opened, Closed by 9e68dd7
Ruby code should never be allowed to cause a segfault, so the check definitely has to be in melbourne itself here
-
I've tried running a benchmark in my remix-stash library (binary42/remix-stash). It doesn't seem to make it through the get_set.rb script. To trigger it simply run
rbx benchmarks/get_set.rb. I've tested this on OS X 10.6 using 62059fdce.
Comments
Looking into this more it seems to be related to the LLVM support.
Do you get any output when it segfaults? Please put the output in a gist and link it here. I can attempt to repro this locally, but I need to verify I'm fixing the bug you see.
-
[PATCH] File::Stat#sticky? and FileTest.sticky? missing
1 comment Created about 1 month ago by cyndisMethods File::Stat#sticky? and FileTest.sticky? don't exist,
which leads to File.sticky? also not working.Patch + spec.
mspec before patching:
https://gist.github.com/5a71c62be731876352cc
(the single passing spec is a "check spec for completeness" one)After patching:
cyndis@munemune:~/src/rubinius$ bin/mspec spec/frozen/core/{file,filetest}/sticky_spec.rb rubinius 0.13.0 (1.8.7 03562759 2009-11-06 JI) [i686-pc-linux-gnu] ..... Finished in 0.015873 seconds 2 files, 4 examples, 6 expectations, 0 failures, 0 errorsActual patches:
http://gist.github.com/97f1bc618087e7dc3860Note: changes platform.rake to add detection for S_ISVTX constant
so a clean rebuild is needed.Comments
-
sporadic Assertion `!head_->prev()' failed
1 comment Created about 1 month ago by dgtizedRunning a normal CI run on Ubuntu 9.10 with Ruby 1.8.7 patchlevel 174. This randomly happened;
$ rake (in /home/clgc/languages/rbx) LLVM inclusion enabled. /usr/bin/ruby1.8 vm/codegen/field_extract.rb vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/executable.hpp vm/builtin/access_variable.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/bytearray.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/module.hpp vm/builtin/class.hpp vm/builtin/compiledmethod.hpp vm/builtin/data.hpp vm/builtin/dir.hpp vm/builtin/exception.hpp vm/builtin/float.hpp vm/builtin/immediates.hpp vm/builtin/iseq.hpp vm/builtin/list.hpp vm/builtin/lookuptable.hpp vm/builtin/memorypointer.hpp vm/builtin/methodtable.hpp vm/builtin/nativefunction.hpp vm/builtin/packed_object.hpp vm/builtin/regexp.hpp vm/builtin/selector.hpp vm/builtin/staticscope.hpp vm/builtin/sendsite.hpp vm/builtin/string.hpp vm/builtin/symbol.hpp vm/builtin/thread.hpp vm/builtin/tuple.hpp vm/builtin/compactlookuptable.hpp vm/builtin/time.hpp vm/builtin/taskprobe.hpp vm/builtin/nativemethod.hpp vm/builtin/system.hpp vm/builtin/autoload.hpp vm/builtin/machine_method.hpp vm/builtin/proc.hpp vm/builtin/variable_scope.hpp vm/builtin/location.hpp vm/builtin/capi_handle.hpp vm/builtin/global_cache_entry.hpp vm/builtin/weakref.hpp vm/test/runner Running 721 tests.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................OK! bin/mspec ci -B full --background rubinius 0.13.0 (1.8.7 d0f73600 2009-11-06 JI) [x86_64-unknown-linux-gnu] ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................rbx: vm/linkedlist.cpp:38: void LinkedList::remove(LinkedList::Node*): Assertion `!head_->prev()' failed. rake aborted! Command failed with status (): [bin/mspec ci -B full --background...] /home/clgc/languages/rbx/Rakefile:20 (See full trace by running task with --trace)
Unfortunately currently do not have a backtrace, and it doesn't happen consistently. If I get it to happen again with a backtrace I will post it here.
Comments
-
1 comment Created about 1 month ago by wilsondefined? with toplevel constant pathcompilerxRan into this in sinatra/base.rb
require_warn('Haml') unless defined?(::Haml::Engine)That results in:
An exception occurred running sin.rb No method 'constant_defined' on an instance of Rubinius::AST::ConstAtTop. (NoMethodError) Backtrace: Kernel(Rubinius::AST::ConstAtTop)#constant_defined (method_missing) at kernel/delta/kernel.rb:49 Rubinius::AST::ConstAccess#constant_defined at lib/compiler/ast/constants.rb:13 Rubinius::AST::ConstAccess#check_const at lib/compiler/ast/constants.rb:19 Rubinius::AST::ConstAccess#defined at lib/compiler/ast/constants.rb:27 Rubinius::AST::Defined#bytecode at lib/compiler/ast/definitions.rb:744 Rubinius::AST::Block#bytecode {} at lib/compiler/ast/definitions.rb:78 Enumerable(Array)#each_with_index {} at kernel/common/enumerable.rb:458 Array#each at kernel/bootstrap/array.rb:156 Enumerable(Array)#each_with_index at kernel/common/enumerable.rb:458 Rubinius::AST::Block#bytecode at lib/compiler/ast/definitions.rb:76 Rubinius::AST::Script#bytecode {} at lib/compiler/ast/definitions.rb:724 Rubinius::AST::Container(Rubinius::AST::Script)#container_bytecode at lib/compiler/ast/definitions.rb:625 Rubinius::AST::Script#bytecode at lib/compiler/ast/definitions.rb:722 Rubinius::CompilerNG::Generator#run at lib/compiler/stages.rb:140 Rubinius::CompilerNG::Stage(Rubinius::CompilerNG::FileParser)#run_next at lib/compiler/stages.rb:51 Rubinius::CompilerNG::Parser(Rubinius::CompilerNG::FileParser)#run at lib/compiler/stages.rb:184 Rubinius::CompilerNG#run at lib/compiler/compiler.rb:77 Rubinius::CompilerNG.compile_file at lib/compiler/compiler.rb:32 Rubinius::CompilerNG.compile_file_old at lib/compiler/compiler.rb:21Comments
-
Running 721 tests.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................OK! bin/mspec ci -B full --background Assertion failed: (cache->fill_method_missing(state, cache->klass()) && "no method_missing!"), function empty_cache, file vm/inline_cache.cpp, line 223. rake aborted! Command failed with status (): [bin/mspec ci -B full --background...] /Users/wilson/code/rbx/Rakefile:20 (See full trace by running task with --trace)
Captured a Mac OS 'problem report' as well; see the output here:
https://gist.github.com/bde1f71a868baee7c682Currently I am getting this error every time I run rake or 'rake -t'
It may be that I updated to Mac OS 10.6.2 (from 10.6.1) since my last build. I will start over with a clean one and see if this still occurs.Comments
-
"cannon modify frozen string" error building rbx
1 comment Created about 1 month ago by dgtizedusing ruby;
$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]
normal rake output;
(in /home/clgc/languages/rbx) LLVM inclusion enabled. /usr/bin/ruby1.8 vm/codegen/field_extract.rb vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/executable.hpp vm/builtin/access_variable.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/bytearray.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/module.hpp vm/builtin/class.hpp vm/builtin/compiledmethod.hpp vm/builtin/data.hpp vm/builtin/dir.hpp vm/builtin/exception.hpp vm/builtin/float.hpp vm/builtin/immediates.hpp vm/builtin/iseq.hpp vm/builtin/list.hpp vm/builtin/lookuptable.hpp vm/builtin/memorypointer.hpp vm/builtin/methodtable.hpp vm/builtin/nativefunction.hpp vm/builtin/packed_object.hpp vm/builtin/regexp.hpp vm/builtin/selector.hpp vm/builtin/staticscope.hpp vm/builtin/sendsite.hpp vm/builtin/string.hpp vm/builtin/symbol.hpp vm/builtin/thread.hpp vm/builtin/tuple.hpp vm/builtin/compactlookuptable.hpp vm/builtin/time.hpp vm/builtin/taskprobe.hpp vm/builtin/nativemethod.hpp vm/builtin/system.hpp vm/builtin/autoload.hpp vm/builtin/machine_method.hpp vm/builtin/proc.hpp vm/builtin/variable_scope.hpp vm/builtin/location.hpp vm/builtin/capi_handle.hpp vm/builtin/global_cache_entry.hpp vm/builtin/weakref.hpp /usr/bin/ruby1.8 -S rake -r /home/clgc/languages/rbx/rakelib/ext_helper.rb build:mri rake aborted! can't modify frozen string /home/clgc/languages/rbx/rakelib/ext_helper.rb:50:in `<<' (See full trace by running task with --trace) rake aborted! Command failed with status (1): [/usr/bin/ruby1.8 -S rake -r /home/clgc/la...] (See full trace by running task with --trace) </pre> <p>from the rake --trace output;<br/> </p> <pre> ** Execute lib/ext/melbourne/ruby/melbourne.so /usr/bin/ruby1.8 -S rake -t -r /home/clgc/languages/rbx/rakelib/ext_helper.rb build:mri rake aborted! can't modify frozen string /home/clgc/languages/rbx/rakelib/ext_helper.rb:50:in `<<' /home/clgc/languages/rbx/rakelib/ext_helper.rb:50:in `add_cflag' /home/clgc/languages/rbx/rakelib/ext_helper.rb:50:in `each' /home/clgc/languages/rbx/rakelib/ext_helper.rb:50:in `add_cflag' /home/clgc/languages/rbx/rakelib/ext_helper.rb:44:in `add_include_dir' /home/clgc/languages/rbx/rakelib/ext_helper.rb:42:in `each' /home/clgc/languages/rbx/rakelib/ext_helper.rb:42:in `add_include_dir' /home/clgc/languages/rbx/rakelib/ext_helper.rb:113 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2254:in `standard_rake_options' /usr/lib/ruby/1.8/optparse.rb:1298:in `call' /usr/lib/ruby/1.8/optparse.rb:1298:in `parse_in_order' /usr/lib/ruby/1.8/optparse.rb:1254:in `catch' /usr/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order' /usr/lib/ruby/1.8/optparse.rb:1248:in `order!' /usr/lib/ruby/1.8/optparse.rb:1339:in `permute!' /usr/lib/ruby/1.8/optparse.rb:1360:in `parse!' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2313:in `handle_options' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2009:in `init' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2007:in `init' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1999:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in `load' /usr/bin/rake:19 rake aborted! Command failed with status (1): [/usr/bin/ruby1.8 -S rake -t -r /home/clgc/...]
Comments
-
Compiler stumbles over overriding a method by using splat
1 comment Created about 1 month ago by dbussinkI have a simple gist that best shows the issue:
Comments
-
Built from scratch at commit 1829ef3
Tom-Morninis-MacBook-Pro:rubinius tmornini$ uname -a
Darwin Tom-Morninis-MacBook-Pro.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:35:19 PST 2009; root:xnu-1486.2.11~1/RELEASE_X86_64 x86_64Tom-Morninis-MacBook-Pro:rubinius tmornini$ rake
(in /Users/tmornini/Desktop/rubinius) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby vm/codegen/field_extract.rb vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/executable.hpp vm/builtin/access_variable.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/builtin/block_environment.hpp vm/builtin/bytearray.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/module.hpp vm/builtin/class.hpp vm/builtin/compiledmethod.hpp vm/builtin/data.hpp vm/builtin/dir.hpp vm/builtin/exception.hpp vm/builtin/float.hpp vm/builtin/immediates.hpp vm/builtin/iseq.hpp vm/builtin/list.hpp vm/builtin/lookuptable.hpp vm/builtin/memorypointer.hpp vm/builtin/methodtable.hpp vm/builtin/nativefunction.hpp vm/builtin/packed_object.hpp vm/builtin/regexp.hpp vm/builtin/selector.hpp vm/builtin/staticscope.hpp vm/builtin/sendsite.hpp vm/builtin/string.hpp vm/builtin/symbol.hpp vm/builtin/thread.hpp vm/builtin/tuple.hpp vm/builtin/compactlookuptable.hpp vm/builtin/time.hpp vm/builtin/taskprobe.hpp vm/builtin/nativemethod.hpp vm/builtin/system.hpp vm/builtin/autoload.hpp vm/builtin/machine_method.hpp vm/builtin/proc.hpp vm/builtin/variable_scope.hpp vm/builtin/location.hpp vm/builtin/capi_handle.hpp vm/builtin/global_cache_entry.hpp vm/builtin/weakref.hpp cp kernel/bootstrap/load_order.txt runtime/bootstrap/load_order.txt
cp kernel/platform/load_order.txt runtime/platform/load_order.txt
cp kernel/common/load_order.txt runtime/common/load_order.txt
cp kernel/delta/load_order.txt runtime/delta/load_order.txt
vm/test/runner
Running 721 tests.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................OK!
bin/mspec ci -B full --background
rubinius 0.13.0-dev (1.8.7 1829ef31 2009-11-06) [x86_64-apple-darwin10.2.0]
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................1)
BigDecimal.new doesn't segfault when using a very large string to build the number FAILED
Expected "10000008:0.1E10000001"
to equal "10000017:0.1E10000001"#<Object:0x1e384>.__script__ {} at spec/frozen/library/bigdecimal/new_spec.rb:29 Kernel(Object)#instance_eval at kernel/common/eval.rb:136 Enumerable(Array)#all? {} at kernel/common/enumerable.rb:265 Array#each at kernel/bootstrap/array.rb:156 Enumerable(Array)#all? at kernel/common/enumerable.rb:265 Array#each at kernel/bootstrap/array.rb:156 main.__script__ at spec/frozen/library/bigdecimal/new_spec.rb:4Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:230
Requirer::Utils.single_load at kernel/delta/requirer.rb:236 Requirer::Utils.unified_load at kernel/delta/requirer.rb:80 Kernel.load at kernel/common/kernel.rb:690 Kernel(Object)#instance_eval at kernel/common/eval.rb:136 Array#each at kernel/bootstrap/array.rb:156Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:230
Requirer::Utils.single_load at kernel/delta/requirer.rb:236Requirer::Utils.load_from_extension at kernel/delta/requirer.rb:321
Rubinius::Loader#script at kernel/loader.rb:334 Rubinius::Loader#main at kernel/loader.rb:448 Object#__script__ at kernel/loader.rb:452Finished in 48.022623 seconds
3002 files, 11410 examples, 35445 expectations, 1 failure, 0 errors
rake aborted!
Command failed with status (1): [bin/mspec ci -B full --background...]
/Users/tmornini/Desktop/rubinius/Rakefile:20 (See full trace by running task with --trace)Comments
This is an issue with giving bigdecimal the right defines when it is built. Working on a solution.
I believe this is fixed. Could you update and run 'rake extensions:clean; rake' to check, please.
-
require 'optparse' causes a "TypeError: can't modify frozen array" exception
1 comment Created about 1 month ago by dbussinkSimple to reproduce:
Comments
-
4 comments Created about 1 month ago by dbussinkgem install rdoc causes a segfault during RIvmxThis is an easy reproducable segfault, basically the only thing needed to do is install the rdoc with RI enabled.
For a backtrace and some more information, see: https://gist.github.com/7ced204c9a6cfffb1721
Comments
Currently unable to repro this. Please try a clean build and test further.
I can repro this: http://gist.github.com/232746
I'm now getting the following error:
$ ./bin/rbx -S gem install rdoc Successfully installed rdoc-2.4.3
1 gem installed
Installing ri documentation for rdoc-2.4.3...
ERROR: While executing gem ... (NoMethodError)
No method '__block__' on an instance of SizedQueue. -
Randomly got this running 'rake -t' after a clean build.
Snow Leopard, MBP Core 2 Duo, ARCHFLAGS and CFLAGS are both set to '-arch x86_64're-running rake -t a couple of times after the crash resulted in 0 failures.
See the stack trace reported by the Error Reporter here:
http://gist.github.com/raw/228315/a190934acb6e124f0e525e74b915144906c4c9cb/gistfile1.txtHappens very rarely. So far I've seen it twice, managed to capture the stack trace the second time.
Comments
-
During spec runs on a ubuntu karmic box running:
2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 x86_64 GNU/Linux
compiled with:
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]I get the following errors mid spec run:
/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/array_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/array_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/bignum_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/bignum_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/class_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/class_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/constants_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/constants_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/data_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/data_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/exception_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/exception_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/float_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/float_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/hash_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/hash_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/io_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/io_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/kernel_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/kernel_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/language_spec.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/language_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/numeric_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/numeric_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/object_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/object_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/range_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/range_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/safe_level_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/safe_level_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/string_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/string_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status E/usr/bin/ld: /home/clgc/languages/rbx/spec/capi/ext/thread_spec.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /home/clgc/languages/rbx/spec/capi/ext/thread_spec.o: could not read symbols: Bad value collect2: ld returned 1 exit status
Comments
-
define_method { super } calls the wrong method
3 comments Created about 1 month ago by jjjjdef a; define_method(:b) { super }; end
calls a in rubinius, and calls b in MRI
class A def b p :b end def self.a p :a end end class B < A def self.a define_method(:b) { super() } end end B.a B.new.bMRI >> :b (super() from the block)
rbx >> :a (super() from the method)
Comments
-
Comments
Hi Tom,
Well those are pretty weird. I've never seen them before. Anything special in your ENV that you know of offhand?
Tom-Morninis-MacBook-Pro:Desktop tmornini$ env
TERM_PROGRAM=Apple_Terminal
TERM=ansi
SHELL=/bin/bash
TMPDIR=/var/folders/lj/lj+XTwltHNumeikwzJdwUk+++TI/-Tmp-/
=/tmp/launch-b5y3Cz/Render =272 USER=tmornini
COMMAND_MODE=unix2003
=/tmp/launch-mCsBS3/Listeners =0x1F5:0:0 PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
PWD=/Users/tmornini/Desktop
LANG=en_US.UTF-8
SHLVL=1
HOME=/Users/tmornini
LOGNAME=tmornini
DISPLAY=/tmp/launch-VKgtiE/:0
_=/usr/bin/env
OLDPWD=/Users/tmornini
Same list of errors:
ORBIT_SOCKETDIR=/tmp/orbit-clgc LDFLAGS=-L/home/clgc/usr/lib SSH_AGENT_PID=1840 GPG_AGENT_INFO=/tmp/seahorse-0G4xqL/S.gpg-agent:1863:1 GEM_HOME=/home/clgc/usr/lib/ruby/gems DOTC_NAME=debian SHELL=bash TERM=screen XDG_SESSION_COOKIE=e40422a1503adaee67fa02c44a9d1a22-1256850641.354096-1444027681 HISTSIZE=1000 CPPFLAGS=-I/home/clgc/usr/include PERL5LIB=/home/clgc/bioperl:/home/clgc/annotation_pipeline/lib:/home/clgc/bioperl:/home/clgc/annotation_pipeline/lib: GTK_RC_FILES=/etc/gtk/gtkrc:/home/clgc/.gtkrc-1.2-gnome2 WINDOWID=79692103 GTK_MODULES=canberra-gtk-module USER=clgc HISTFILESIZE=10000 LD_LIBRARY_PATH=/home/clgc/usr/lib SSH_AUTH_SOCK=/tmp/keyring-sMl0hz/socket.ssh GNOME_KEYRING_SOCKET=/tmp/keyring-sMl0hz/socket TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\ :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\ :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\ :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\ :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\ :li#73:co#226:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\ :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\ :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\ :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\ :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\ :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\ :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\ :vb=\Eg:G0:as=\E(0:ae=\E(B:\ :ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\ :po=\E[5i:pf=\E[4i:k0=\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:\ :k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\ :k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:F3=\EO2P:\ :F4=\EO2Q:F5=\EO2R:F6=\EO2S:F7=\E[15;2~:F8=\E[17;2~:\ :F9=\E[18;2~:FA=\E[19;2~:kb=^?:K2=\EOE:kB=\E[Z:\ :*4=\E[3;2~:*7=\E[1;2F:#2=\E[1;2H:#3=\E[2;2~:#4=\E[1;2D:\ :%c=\E[6;2~:%e=\E[5;2~:%i=\E[1;2C:kh=\E[1~:@1=\E[1~:\ :kH=\E[4~:@7=\E[4~:kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:\ :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:km: USERNAME=clgc SESSION_MANAGER=local/consistency:@/tmp/.ICE-unix/1796,unix/consistency:/tmp/.ICE-unix/1796 PAGER=less PATH=/home/clgc/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games DESKTOP_SESSION=gnome STY=2472.pts-1.consistency PWD=/home/clgc/languages/rbx GDM_KEYBOARD_LAYOUT=us EDITOR=vim GNOME_KEYRING_PID=1781 LANG=en_US.UTF-8 GDM_LANG=en_US.UTF-8 GDMSESSION=gnome HISTIGNORE=&:ls:ll:dir:la:[bf]g:exit HISTCONTROL=ignoreboth SPEECHD_PORT=7562 HOME=/home/clgc SHLVL=2 LESSCHARSET=utf-8 GNOME_DESKTOP_SESSION_ID=this-is-deprecated CFLAGS=-I/home/clgc/usr/include LOGNAME=clgc LESS= -M -R CVS_RSH=ssh WINDOW=1 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-FvBdFBwJ5R,guid=f1cb14d14db36ba99212d8234aea04d1 XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/ CLASSPATH=. GEM_PATH=/home/clgc/usr/lib/ruby/gems:/usr/lib/ruby/gems/1.8/ DOTC_DIR=/home/clgc/.home-config PROMPT_COMMAND=history -w OUTPUT_OPTION= DISPLAY=:0.0 HOSTFILE=/home/clgc/.home-config/hosts RUBYLIB=/home/clgc/usr/lib/:/usr/lib/ruby/site_ruby/1.8/ HISTFILE=/home/clgc/.bashist/2009-10-29_16:18.2476.consistency COLORTERM=gnome-terminal XAUTHORITY=/var/run/gdm/auth-for-clgc-Ry1DqY/database _=/usr/bin/env OLDPWD=/home/clgc -
1 comment Created about 1 month ago by dbussinkSplat doesn't call .to_a on the given argumentcompilerx -
getting-started.txt doesn't mention you have to run ./configure before running rake
0 comments Created about 1 month ago by cypherWhen compiling Rubinius for the first time,
./configurehas to be run before runningrake. Even though the error message tells you as much, it should still be mentioned in the Quick Start.Patch is here: http://gist.github.com/220856
Comments
-
Patch to allow AMQP generated protocol classes to load
1 comment Created about 1 month ago by ezmobiusComments
-
On running rake, I got the folliwng message:
run ./configure first
The Getting started guide does not mention it.
andhapp
Comments
-
rb_str_new with 0 length allows full string through
1 comment Created about 1 month ago by brianmariorb_str_new when given a 0 length should create an empty string, today it creates a string from the entire original cstring passed as the first parameter.
Problem is in string.hpp:92
if(bytes == 0 && str) bytes = strlen(str);0 is a valid size (according to the MRI API at least)
Comments
-
[rev. 052ad2d0] Problem with TopLevel variables
3 comments Created 2 months ago by keltiaI have a script that has as first executable line
MYNAME = File.basename($0)
rubinius fails with the following trace:
bin/rbx --debug ~/Src/Perso/HG/raw-scripts/find-photos.rb [Debugger activated] /Volumes/Users/roberto/Src/Perso/HG/raw-scripts/find-photos.rb:22 (__script__) [IP:0] => 22: MYNAME = File.basename($0) rbx:debug> n Stepping 1 line An exception occurred running /Volumes/Users/roberto/Src/Perso/HG/raw-scripts/find-photos.rb No method '__const_set__' on an instance of Rubinius::StaticScope. (NoMethodError) Backtrace: Kernel(Rubinius::StaticScope)#__const_set__ (method_missing) at kernel/delta/kernel.rb:47 main.__script__ at /Volumes/Users/roberto/Src/Perso/HG/raw-scripts /find-photos.rb:22 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:232 Compiler::Utils.single_load at kernel/compiler/compile.rb:244 Compiler::Utils.load_from_extension at kernel/compiler/compile.rb:330 Rubinius::Loader#script at kernel/loader.rb:347 Rubinius::Loader#main at kernel/loader.rb:426 Object#__script__ at kernel/loader.rb:474If I create a simple script with only the offending line, it works fine.
Here script is here
Comments
You have some stale .rbc files (we don't clean up .rbc files when the compiler changes currently). Remove the ones for the .rb code you're trying to run and please try again.
-
Comments
-
[PATCH] Implemented: Array#sort raises an error if objects can't be compared
2 comments Created 2 months ago by harukizaemonComments
harukizaemon
Mon Oct 19 06:33:55 -0700 2009
| link
Updated slightly to use Type.coerce_to_comparison. I knew it had to be there somewhere :)
-
Script and transcript here:
http://gist.github.com/212963Rubinius version: 590b40c
It requires large and complex data to trigger (visible in example above).
Comments
-
1 comment Created 2 months ago by dbarkerrake build fails when configure --prefix option is givenbuildxsteps to reproduce:
$> cd rubinius $>./configure --prefix=/usr/local $> rake ... VM Assertion: set RBX_RUNTIME to runtime (or equiv) 2 rbx 0x00048673 rubinius::VMException::VMException(char const*, bool) + 99 3 rbx 0x00126082 main + 850 4 rbx 0x00002746 start + 54 Ruby backtrace: Abort! 2 rbx 0x00048968 rubinius::abort() + 40 3 rbx 0x0012668e main + 2398 4 rbx 0x00002746 start + 54 Assertion failed: (0), function abort, file vm/exception.cpp, line 114. rake aborted! Command failed with status (): [./bin/rbx compile -p -I/usr/local/src/rub...]Which seems to indicate rbx can't find it's runtime dir.
Comments
-
1 comment Created 2 months ago by brixenFix Method#inspect when it's backed by an AccessVariable instead of a CompiledMethodreviewxReported by Jari Bakken LH 774
Method#inspect was broken when backed by a Rubinius::AccessVariable:
[].method(:length) #=> NoMethodError: No method 'name' on an instance of Rubinius::AccessVariable.
There are other problems here as well
[].method(:length).call # NoMethodError: No method 'activate' on an instance of Rubinius::AccessVariable.
[].method(:length).arity # NoMethodError: No method 'arity' on an instance of Rubinius::AccessVariable.
Comments
-
Default method argument causes bytecode order to be incorrect
1 comment Created 2 months ago by brixenReported in LH 293, code snippit from Wilson
## FAILS def chaos(x = nil) puts (0...5).first end chaos ## WORKS def chaos puts (0...5).first end chaos
The failing code in ticket.rb:
gauss:rubinius brian$ bin/rbx -v ticket.rb rubinius 0.13.0-dev (1.8.7 f8ed1f04 2009-11-06 JI) [i686-apple-darwin9.8.0] 0...5 An exception occurred running ticket.rb No method 'first' on an instance of NilClass. (NoMethodError) Backtrace: Kernel(NilClass)#first (method_missing) at kernel/delta/kernel.rb:47 Object#chaos at ticket.rb:2 main.__script__ at ticket.rb:4 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:221 Compiler::Utils.single_load at kernel/compiler/compile.rb:244 Compiler::Utils.load_from_extension at kernel/compiler/compile.rb:330 Rubinius::Loader#script at kernel/loader.rb:327 Rubinius::Loader#main at kernel/loader.rb:406 Object#__script__ at kernel/loader.rb:454The bytecode is clearly being emitted in the wrong order (but it could be a parse issue):
=============== :chaos =============== object_id: 0x9e total args: 1 required: 0 stack size: 6, local count: 1 lines: # 0000: passed_arg 0 0002: goto_if_true 8 0004: push_nil 0005: set_local 0 # x 0007: pop 0008: push_self 0009: push_cpath_top 0010: find_const :Range 0012: meta_push_0 0013: push_int 5 0015: push_true 0016: send_stack :new, 3 0019: allow_private 0020: send_stack :puts, 1 0023: send_method :first 0025: ret -------------------------------------- vs =============== :chaos =============== object_id: 0x7a total args: 0 required: 0 stack size: 5, local count: 0 lines: # 0000: push_self 0001: push_cpath_top 0002: find_const :Range 0004: meta_push_0 0005: push_int 5 0007: push_true 0008: send_stack :new, 3 0011: send_method :first 0013: allow_private 0014: send_stack :puts, 1 0017: ret --------------------------------------
Comments
-
Class variables not created correctly in a def in a metaclass
1 comment Created 2 months ago by brixenReported by agardiner LH 607
class Foo def self.map1 # Defs @@map1 ||= {} end class << self # SClass def map2 # Defn @@map2 ||= {} end end # Initialise the cvars map1[:a] ||= {} map2[:a] ||= {} # Now try and use them map1[:a][:b] = 1 # works fine map2[:a][:b] = 1 # raises NoMethodError []= on NilClass endgauss:rubinius brian$ bin/rbx ticket.rb An exception occurred running ticket.rb No method '[]=' on an instance of NilClass. (NoMethodError) Backtrace: Kernel(NilClass)#[]= (method_missing) at kernel/delta/kernel.rb:47 Foo.__class_init__ (Foo) at ticket.rb:18 main.__script__ at ticket.rb:1 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:221 Compiler::Utils.single_load at kernel/compiler/compile.rb:244 Compiler::Utils.load_from_extension at kernel/compiler/compile.rb:330 Rubinius::Loader#script at kernel/loader.rb:327 Rubinius::Loader#main at kernel/loader.rb:406 Object#__script__ at kernel/loader.rb:454Comments
-
Problem defining or finding methods on a metaclass
1 comment Created 2 months ago by brixenLH 614 reported by Sam Aaron
Run this code: http://gist.github.com/204542
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] A.cheese: edam B.cheese: stilton a.cheese: shropshire blue b.cheese: cheddar b_with_meta.cheese: cheshire b_with_meta.metaclass.cheese: stilton b_with_meta_meta.cheese: brie b_with_meta_meta.metaclass.cheese: gouda b_with_meta_meta.metaclass.metaclass.cheese: wensleydale
gauss:rubinius brian$ bin/rbx -v meta.rb rubinius 0.13.0-dev (1.8.7 d300514e 2009-11-06 JI) [i686-apple-darwin9.8.0] A.cheese: edam B.cheese: stilton a.cheese: shropshire blue b.cheese: cheddar b_with_meta.cheese: cheshire An exception occurred running meta.rb No method 'cheese' on #> (MetaClass) (NoMethodError) Backtrace: Kernel(MetaClass)#cheese (method_missing) at kernel/delta/kernel.rb:45 main.__script__ at meta.rb:57 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:221 Compiler::Utils.single_load at kernel/compiler/compile.rb:244 Compiler::Utils.load_from_extension at kernel/compiler/compile.rb:330 Rubinius::Loader#script at kernel/loader.rb:327 Rubinius::Loader#main at kernel/loader.rb:406 Object#__script__ at kernel/loader.rb:454Comments
-
LH 762 by Sylvain Joyeux
-fPIC is required to compile objects that need to be included in a shared library. Not having the flag works on x86, but fails on PPC and recent x86_64 linkers.
Right now, a workaround is to add
$CFLAGS += " -fPIC"
to extconf.rb
Comments
-
Prints the version multiple times:
rubinius (master*) $ bin/rbx -vvv rubinius 0.13.0-dev (1.8.7 5827f8d5 2009-11-06) [x86_64-apple-darwin10.0.0] rubinius 0.13.0-dev (1.8.7 5827f8d5 2009-11-06) [x86_64-apple-darwin10.0.0] rubinius 0.13.0-dev (1.8.7 5827f8d5 2009-11-06) [x86_64-apple-darwin10.0.0] rubinius (master*) $Comments
-
fresh build of rubinius-0.12-20091006, rake returns 1 spec failed
2 comments Created 2 months ago by Blaze74OS X, 10.6
$ tar xf rubinius-0.12-20091006.tar $ cd rubinius-0.12/ $ ./configure --update-prebuilt $ ./configure --enable-llvm $ rake ....... Lots of spam .......
1) Time.at converts to time object FAILED Expected "Mon Jul 09 20:38:44 -0400 2007" to equal "" /expectations.rb:15 #.__script__ {} at spec/frozen/core/time/at_spec.rb:8 Kernel(Object)#instance_eval at kernel/common/eval.rb:119 Enumerable(Array)#all? {} at kernel/common/enumerable.rb:257 Array#each at kernel/bootstrap/array.rb:151 Enumerable(Array)#all? at kernel/common/enumerable.rb:257 Array#each at kernel/bootstrap/array.rb:151 main.__script__ at spec/frozen/core/time/at_spec.rb:4 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:221 Compiler::Utils.single_load at kernel/compiler/compile.rb:244 Compiler::Utils.unified_load at kernel/compiler/compile.rb:89 Kernel.load at kernel/common/kernel.rb:688 Kernel(Object)#instance_eval at kernel/common/eval.rb:119 Array#each at kernel/bootstrap/array.rb:151 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:221 Compiler::Utils.single_load at kernel/compiler/compile.rb:244 Compiler::Utils.load_from_extension at kernel/compiler/compile.rb:330 Rubinius::Loader#script at kernel/loader.rb:326 Rubinius::Loader#main at kernel/loader.rb:405 Object#__script__ at kernel/loader.rb:453 Finished in 219.385444 seconds 3000 files, 11782 examples, 35770 expectations, 1 failure, 0 errorsComments
I've got the port
coreutils @7.5_0+with_default_names (active)
installed, so
$ which date /opt/local/bin/dateThe GNU date doesn't take the -r argument
-
hang when running specs with JIT enabled on OSX 10.5.8 Intel
1 comment Created 2 months ago by chuckremescommit 8fbdff1
Darwin charles-remess-mac-pro.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386bin/mspec ci --format specdoc -T -XJ
Hangs on spec:
ObjectSpace.define_finalizer
- raises an ArgumentError if the action does not respond to call - accepts an object and a proc - accepts an object and a callable - doesn't call self-referencing finalizers <<---- hangs hereAttaching to the hung vm process (spinning at 100%) gives the following backtrace (gist http://gist.github.com/203222)
Comments
-
Comments
-
2 comments Created 2 months ago by ileitchrequire "drb/unix" fails with an unbalanced stack errorcompilerxERROR in temp_server, 0 An exception occurred evaluating command line code unbalanced stack at line 81 (151): 1 != 2 (RuntimeError) Backtrace: Compiler::StackDepthCalculator#run_from at kernel/compiler/stack.rb:48 (2 times) Compiler::StackDepthCalculator#run at kernel/compiler/stack.rb:13 Compiler::Generator#to_cmethod at kernel/compiler/generator.rb:185 Compiler::MethodDescription#to_cmethod at kernel/compiler/bytecode.rb:34 Compiler::Generator#encode_literals {} at kernel/compiler/generator.rb:142 Array#each at kernel/bootstrap/array.rb:152 Compiler::Generator#encode_literals at kernel/compiler/generator.rb:140 Compiler::Generator#to_cmethod at kernel/compiler/generator.rb:193 Compiler::MethodDescription#to_cmethod at kernel/compiler/bytecode.rb:34 Compiler::Generator#encode_literals {} at kernel/compiler/generator.rb:142 Array#each at kernel/bootstrap/array.rb:152 Compiler::Generator#encode_literals at kernel/compiler/generator.rb:140 Compiler::Generator#to_cmethod at kernel/compiler/generator.rb:193 Compiler::MethodDescription#to_cmethod at kernel/compiler/bytecode.rb:34 Compiler::Generator#encode_literals {} at kernel/compiler/generator.rb:142 Array#each at kernel/bootstrap/array.rb:152 Compiler::Generator#encode_literals at kernel/compiler/generator.rb:140 Compiler::Generator#to_cmethod at kernel/compiler/generator.rb:193 Compiler::MethodDescription#to_cmethod at kernel/compiler/bytecode.rb:34 Compiler.compile_file at kernel/compiler/compiler.rb:56 Compiler::Utils.compile_file at kernel/compiler/compile.rb:36 Compiler::Utils.single_load {} at kernel/compiler/compile.rb:199 Compiler::Utils.compile_feature at kernel/compiler/compile.rb:142 Compiler::Utils.single_load at kernel/compiler/compile.rb:198 Compiler::Utils.unified_load {} at kernel/compiler/compile.rb:131 Array#each at kernel/bootstrap/array.rb:152 Compiler::Utils.unified_load at kernel/compiler/compile.rb:95 Kernel(Object)#require at kernel/common/kernel.rb:711 Object#__eval__ at (eval):1 Kernel(Rubinius::Loader)#eval at kernel/common/eval.rb:85 Rubinius::Loader#evals {} at kernel/loader.rb:304 Array#each at kernel/bootstrap/array.rb:152 Rubinius::Loader#evals at kernel/loader.rb:303 Rubinius::Loader#main at kernel/loader.rb:403 Object#__script__ at kernel/loader.rb:452Comments
-
A segfault results if the VM encounters a (set|push)_local_depth when the scope nesting does not match the depth given.
For example:
class Hash def self.allocate hash = super() Rubinius.privately { hash.setup } hash end endIf the compiler does not fix up the local access for
hashinhash.setupinRubinius.privately, the push_local_depth insn will attemptcall_frame->scope->parent()and parent is 0x0.Comments
-
On ubuntu 9.04 using zlib1g-dev library for zlib, the standard spec run has 30 some odd failures do to Zlib.
3) Ar#replace replaces a file ERROR ArgumentError: method 'to_i': given 1, expected 0 Ar#each {} at kernel/common/ar.rb:46 File.open at kernel/common/file.rb:69 Kernel(Ar)#open at kernel/common/kernel.rb:200 Ar#each at kernel/common/ar.rb:63 Enumerable(Ar)#map (collect) at kernel/common/enumerable_186.rb:17 Ar#list at kernel/common/ar.rb:80 #.__script__ {} at spec/core/ar/replace_spec.rb:66 Kernel(Object)#instance_eval at kernel/common/eval.rb:119 Enumerable(Array)#all? {} at kernel/common/enumerable.rb:266 Array#each at kernel/bootstrap/array.rb:152 Enumerable(Array)#all? at kernel/common/enumerable.rb:266 Array#each at kernel/bootstrap/array.rb:152 main.__script__ at spec/core/ar/replace_spec.rb:5 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:219 Compiler::Utils.single_load at kernel/compiler/compile.rb:244 Compiler::Utils.unified_load at kernel/compiler/compile.rb:89 Kernel.load at kernel/common/kernel.rb:672 Kernel(Object)#instance_eval at kernel/common/eval.rb:119 Array#each at kernel/bootstrap/array.rb:152 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:219 Compiler::Utils.single_load at kernel/compiler/compile.rb:244 Compiler::Utils.load_from_extension at kernel/compiler/compile.rb:329 Rubinius::Loader#script at kernel/loader.rb:326 Rubinius::Loader#main at kernel/loader.rb:406 Object#__script__ at kernel/loader.rb:454 4) An exception occurred during: before :each Zlib::Deflate#deflate deflates some data ERROR Zlib::Error: unknown zlib error -6: incompatible version Zlib.handle_error at lib/zlib.rb:1471 Zlib::Deflate#initialize at lib/zlib.rb:627 #.__script__ {} at spec/frozen/library/zlib/deflate/deflate_spec.rb:7 Kernel(Object)#instance_eval at kernel/common/eval.rb:119 Enumerable(Array)#all? {} at kernel/common/enumerable.rb:266 Array#each at kernel/bootstrap/array.rb:152 Enumerable(Array)#all? at kernel/common/enumerable.rb:266 Array#each at kernel/bootstrap/array.rb:152 main.__script__ at spec/frozen/library/zlib/deflate/deflate_spec.rb:4 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:219 Compiler::Utils.single_load at kernel/compiler/compile.rb:244 Compiler::Utils.unified_load at kernel/compiler/compile.rb:89 Kernel.load at kernel/common/kernel.rb:672 Kernel(Object)#instance_eval at kernel/common/eval.rb:119 Array#each at kernel/bootstrap/array.rb:152 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:219 Compiler::Utils.single_load at kernel/compiler/compile.rb:244 Compiler::Utils.load_from_extension at kernel/compiler/compile.rb:329 Rubinius::Loader#script at kernel/loader.rb:326 Rubinius::Loader#main at kernel/loader.rb:406 Object#__script__ at kernel/loader.rb:454A little more specific information on this bug:
$ cat exp/deflate.rb require 'zlib' data = "\000" * 10 zipped = Zlib::Deflate.deflate data p zipped $ ruby exp/deflate.rb "x\234c`\200\001\000\000\n\000\001" $ rbx exp/deflate.rb An exception occurred running exp/deflate.rb No method 'end' on an instance of NilClass. (NoMethodError) Backtrace: Kernel(NilClass)#end (method_missing) at kernel/delta/kernel.rb:47 Zlib::Deflate.deflate at lib/zlib.rb:601 main.__script__ at exp/deflate.rb:4 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:219 Compiler::Utils.single_load at kernel/compiler/compile.rb:244 Compiler::Utils.load_from_extension at kernel/compiler/compile.rb:329 Rubinius::Loader#script at kernel/loader.rb:326 Rubinius::Loader#main at kernel/loader.rb:404 Object#__script__ at kernel/loader.rb:452The following example triggers the incompatible version error:
$ cat exp/deflate2.rb require 'zlib' d = Zlib::Deflate.new d.set_dictionary 'aaaaaaaaaa' d << 'abcdefghij' p d.finish $ ruby exp/deflate2.rb "x\273\024\341\003\313KLJNIMK\317\310\314\002\000\025\206\003\370" $ rbx exp/deflate2.rb An exception occurred running exp/deflate2.rb unknown zlib error -6: incompatible version (Zlib::Error) Backtrace: Zlib.handle_error at lib/zlib.rb:1471 Zlib::Deflate#initialize at lib/zlib.rb:627 main.__script__ at exp/deflate2.rb:3 Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:219 Compiler::Utils.single_load at kernel/compiler/compile.rb:244 Compiler::Utils.load_from_extension at kernel/compiler/compile.rb:329 Rubinius::Loader#script at kernel/loader.rb:326 Rubinius::Loader#main at kernel/loader.rb:404 Object#__script__ at kernel/loader.rb:452Comments
It would appear that one of the following commits fixed this error. Please reopen this ticket if anyone is still experiencing this error.
commit 4b85853 Author: Brian Lopez Date: Fri Oct 23 20:52:51 2009 -0700 add specs for passing negative or zero value length to Zlib::GzipReader#read commit 9a89114 Author: Brian Lopez Date: Fri Oct 23 20:52:20 2009 -0700 add support code for Zlib::GzipReader#read to handle negative length being passed commit 42202e8 Author: Brian Lopez Date: Fri Oct 23 20:47:57 2009 -0700 add missing specs for Zlib::GzipReader#eof? bug commit 9001c7f Author: Brian Lopez Date: Fri Oct 23 20:44:04 2009 -0700 Fix a bug in Zlib::GzipReader#eof? where it would return true even though there was data left in the buffer
brianmario
Mon Oct 26 10:16:16 -0700 2009
| link
So the only strange thing is that these commits had to do with Zlib::GzipReader, not Zlib::Deflate. Has something else changed on the Ubuntu system you were testing with?
Not saying it's not fixed, just seems odd that these commits would have done it. -
As discussed on irc: http://gist.github.com/175639
Patch includes change to vm/parser/grammar.y but not grammar.cpp.
Comments
-
This sums it up exactly:
http://redmine.ruby-lang.org/issues/show/1769Ruby 1.9 acknowledges that this is NOT desired behavior.
Comments
-
The two files in the above gist demonstrate the segfaults that occur executing bin/mspec ci -T-Xjit.enabled with DEV=1 and without DEV=1 set. Note that the segfault without DEV=1 occurs consistantly much sooner then the segfault when running with DEV=1.
This was observed on a 32bit Ubuntu 9.04 box (gcc 4.3.3)
Comments
-
2 comments Created 5 months ago by chuckremesassertion failure in commit 6536694b26a0021726e3785d5b245d7a8503f559vmxRunning a simple ruby script that reads a file, parses through it, and generates a new file (same name) caused the latest commit to produce an assertion failure. I have a tarball of the script along with the sample file that caused it. I'll try to attach them here somehow... otherwise a followup message will contain pointers to gists containing the data.
Comments
chuckremes
Tue Jul 14 13:06:33 -0700 2009
| link
See http://gist.github.com/147152
The "mr_gc" file should be tab-delimited. If the tabs were lost when pasting it into gist, they need to be added back.
-
3 comments Created 5 months ago by dbussinkRDoc / RI failures during gem installkernelxI'm seeing various failures during gem installation related to RI. They look like the following errors:
./bin/rbx -S gem install rdoc Successfully installed rdoc-2.4.3
1 gem installed
Installing ri documentation for rdoc-2.4.3...
ERROR: While executing gem ... (NoMethodError)
No method 'keys' on an instance of RDoc::RI::MethodDescription.Installing Rails also shows a similar error:
./bin/rbx -S gem install rails Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.2
Successfully installed activerecord-2.3.2
Successfully installed actionpack-2.3.2
Successfully installed actionmailer-2.3.2
Successfully installed activeresource-2.3.2
Successfully installed rails-2.3.2
7 gems installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for activesupport-2.3.2...
ERROR: While executing gem ... (NoMethodError)
No method 'keys' on an instance of RDoc::RI::MethodSummary.Comments
It appears to me to possibly be a GC issue related to Syck.
This is the debug log I'm getting for installing the rdoc gem:
-
As of now, on line 359 in vm/llvm/jit.cpp,
ExecutionEngine::create()returns NULL. Then, on line 362, this null pointer is dereferenced, causing a segfault. As I know nothing about LLVM, I can't really say much more than this.This is the segfault caused when compiling readline on my 64-bit Jaunty, GCC 4.3.3.
Comments
-
running sudo rake install i get:
install -c -m 0644 vm/subtend/ruby.h /usr/local/lib/rubinius/0.11/lib/ext/ruby.h
rake aborted!
No such file or directory - vm/subtend/ruby.h
/work/research/rubinius/Rakefile:130Comments
-
doc/getting_started.txt missing Ubuntu dependency
2 comments Created 6 months ago by rhintonInstall on Ubuntu 9.04 (Jaunty) required installing OpenSSL development libraries to get openssl/ossl_typ.h.
Comments
Can't figure out how to attach a file. All that needs to be done is add
- libssl-dev
at line 77 in doc/getting_started.txt in the Debian/Ubuntu family systems section.
-
build fails: invalid conversion from 'const char*' to 'char*'
4 comments Created 6 months ago by badboybuilding the actual version (last pull 5min ago, but also some pulls before) fails with:
vm/parser/grammar.y: In function 'long unsigned int rubinius::parser::scan_hex(const char*, int, int*)': vm/parser/grammar.y:5839: error: invalid conversion from 'const char*' to 'char*' rake aborted!Comments
ah, ok....
as brixen pointed out in the irc channel this is related to my gcc version.
I'm using gcc 4.4
with gcc 4.3 it compiles just fine. I'm currently looking through the code to get it "gcc4.4-compatible" ;) -
1 comment Created 6 months ago by ruebuildxgccxOS X 10.5.{6,7} GCC 4.2.1 Non-debug Build FailsmacxApparently the -O2 flag causes some type of a problem; -O1 etc. work fine, as does
rake build:debug(-O0). UsingGCC=gcc-4.0on the same system works without problems.This appears to be specifically related to the compiler. This is the end of the build output, same error occurs e.g. trying to run
bin/mspec.Compiling lib/sexp_processor.rb cp kernel/bootstrap/load_order.txt runtime/bootstrap/load_order.txt cp kernel/platform/load_order.txt runtime/platform/load_order.txt cp kernel/common/load_order.txt runtime/common/load_order.txt cp kernel/delta/load_order.txt runtime/delta/load_order.txt cp kernel/compiler/load_order.txt runtime/compiler/load_order.txt Building extension lib/ext/readline ./bin/rbx compile -p -I/Users/ruerue/code/rubinius/master/vm/capi -C,-pipe -C,-Wall -C,-DBASE_PATH=\"/Users/ruerue/code/rubinius/master\" -C,-DRBA_PATH=\"/Users/ruerue/code/rubinius/master/runtime\" lib/ext/readline Compilation error detected: No method 'unshift' on an instance of NilClass. near (unknown):0 Kernel(NilClass)#unshift (method_missing) at kernel/delta/kernel.rb:47 Compiler::Node::Arguments#consume {} at kernel/compiler/nodes.rb:130 Array(Sexp)#each at kernel/bootstrap/array_186.rb:9 Compiler::Node::Arguments#consume at kernel/compiler/nodes.rb:120 Compiler::Node::Arguments.create at kernel/compiler/node.rb:84 Compiler#convert_sexp at kernel/compiler/compiler.rb:258 Compiler::Node(Compiler::Node::Define)#convert at kernel/compiler/node.rb:116 Compiler::Node::ClosedScope(Compiler::Node::Define)#consume {} at kernel/compiler/nodes.rb:586 Compiler#set at kernel/compiler/compiler.rb:282 Compiler::Node(Compiler::Node::Define)#set at kernel/compiler/node.rb:145 Compiler::Node::ClosedScope(Compiler::Node::Define)#consume at kernel/compiler/nodes.rb:585 Compiler::Node::Define#consume {} at kernel/compiler/nodes.rb:821 Compiler#set at kernel/compiler/compiler.rb:282 Compiler::Node(Compiler::Node::Define)#set at kernel/compiler/node.rb:145 Compiler::Node::Define#consume at kernel/compiler/nodes.rb:820 Compiler::Node::Define.create at kernel/compiler/node.rb:84 Compiler#convert_sexp at kernel/compiler/compiler.rb:258 Compiler::Node(Compiler::Node::Block)#consume {} at kernel/compiler/node.rb:127 Array(Sexp)#each at kernel/bootstrap/array_186.rb:9 Compiler::Node(Compiler::Node::Block)#consume at kernel/compiler/node.rb:125 Compiler::Node::Block.create at kernel/compiler/node.rb:84 Compiler#convert_sexp at kernel/compiler/compiler.rb:258 Compiler::Node(Compiler::Node::Scope)#convert at kernel/compiler/node.rb:116 Compiler::Node::Scope#consume at kernel/compiler/nodes.rb:2373 Compiler::Node::Scope.create at kernel/compiler/node.rb:84 Compiler#convert_sexp at kernel/compiler/compiler.rb:258 Compiler::Node(Compiler::Node::Class)#convert at kernel/compiler/node.rb:116 Compiler::Node::ClosedScope(Compiler::Node::Class)#consume {} at kernel/compiler/nodes.rb:586 Compiler#set at kernel/compiler/compiler.rb:282 Compiler::Node(Compiler::Node::Class)#set at kernel/compiler/node.rb:145 Compiler::Node::ClosedScope(Compiler::Node::Class)#consume at kernel/compiler/nodes.rb:585 Compiler::Node::Class#consume {} at kernel/compiler/nodes.rb:530 Compiler#set at kernel/compiler/compiler.rb:282 Compiler::Node(Compiler::Node::Class)#set at kernel/compiler/node.rb:145 Compiler::Node::Class#consume at kernel/compiler/nodes.rb:529 Compiler::Node::Class.create at kernel/compiler/node.rb:84 Compiler#convert_sexp at kernel/compiler/compiler.rb:258 Compiler::Node(Compiler::Node::Block)#consume {} at kernel/compiler/node.rb:127 Array(Sexp)#each at kernel/bootstrap/array_186.rb:9 Compiler::Node(Compiler::Node::Block)#consume at kernel/compiler/node.rb:125 Compiler::Node::Block.create at kernel/compiler/node.rb:84 Compiler#convert_sexp at kernel/compiler/compiler.rb:258 Compiler::Node(Compiler::Node::Script)#convert at kernel/compiler/node.rb:116 Compiler::Node::ClosedScope(Compiler::Node::Script)#consume {} at kernel/compiler/nodes.rb:586 Compiler#set at kernel/compiler/compiler.rb:282 Compiler::Node(Compiler::Node::Script)#set at kernel/compiler/node.rb:145 Compiler::Node::ClosedScope(Compiler::Node::Script)#consume at kernel/compiler/nodes.rb:585 Compiler::Node::Script.create at kernel/compiler/node.rb:84 Compiler#convert_sexp at kernel/compiler/compiler.rb:258 Compiler#into_script at kernel/compiler/compiler.rb:263 Compiler.compile_file at kernel/compiler/compiler.rb:55 Compiler::Utils.compile_file at kernel/compiler/compile.rb:36 Compiler::Utils.single_load {} at kernel/compiler/compile.rb:199 Compiler::Utils.compile_feature at kernel/compiler/compile.rb:142 Compiler::Utils.single_load at kernel/compiler/compile.rb:198 Compiler::Utils.unified_load at kernel/compiler/compile.rb:89 Kernel(Object)#load at kernel/common/kernel.rb:667 Object#__script__ at kernel/loader.rb:268 rake aborted! Command failed with status (1): [./bin/rbx compile -p -I/Users/ruerue/code...] (See full trace by running task with --trace) 02:06:27 @paws ~/code/rubinius/master:master > uname -a Darwin paws.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386 i386 02:08:49 @paws ~/code/rubinius/master:master > gcc -v Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc_42/gcc_42-5566~1/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/usr/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-gxx-include-dir=/usr/include/c++/4.0.0 --host=i686-apple-darwin9 --target=i686-apple-darwin9 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5566) 02:08:55 @paws ~/code/rubinius/master:master >Comments
-
When trying to compile on my Linux box (Ubuntu 9.04 x86_64, GCC 4.3.3), I get the following errors:
vm/builtin/object.cpp: In member function ‘rubinius::hashval rubinius::Object::hash(rubinius::VM*)’: vm/builtin/object.cpp:237: error: cast from ‘rubinius::Object*’ to ‘uint32_t’ loses precision cc1plus: warnings being treated as errors vm/builtin/string.cpp: In function ‘unsigned int rubinius::finish_hash(unsigned int)’: vm/builtin/string.cpp:140: error: right shift count >= width of typeAd-hoc patches:
diff --git i/vm/builtin/object.cpp w/vm/builtin/object.cpp index f5927cf..11d3e56 100644 --- i/vm/builtin/object.cpp +++ w/vm/builtin/object.cpp @@ -234,7 +234,7 @@ namespace rubinius { hashval Object::hash(STATE) { if(!reference_p()) { // See http://burtleburtle.net/bob/hash/integer.html - uint32_t a = (uint32_t)this; + uint32_t a = (uint32_t)(unsigned long)this; a = (a+0x7ed55d16) + (a<<12); a = (a^0xc761c23c) ^ (a>>19); a = (a+0x165667b1) + (a<<5); diff --git i/vm/builtin/string.cpp w/vm/builtin/string.cpp index 570044e..b1f32cc 100644 --- i/vm/builtin/string.cpp +++ w/vm/builtin/string.cpp @@ -137,7 +137,7 @@ namespace rubinius { } static inline unsigned int finish_hash(unsigned int hv) { - return (hv>>FIXNUM_WIDTH) ^ (hv & FIXNUM_MAX); + return (hv >> (FIXNUM_WIDTH < sizeof(hv) * 8) ? FIXNUM_WIDTH : 0) ^ (hv & F } hashval String::hash_str(const char *bp) {Comments
-
Protection failure occuring when running Extlib specs
1 comment Created 6 months ago by dbussinkWhen I run the Extlib specs from github.com/datamapper/extlib in GDB, I get the following backtrace:
If there is any specific information I need to retrieve, please let me know.
Comments
-
spec "Process.fork - return nil for child process" is hanging
1 comment Created 6 months ago by dgtizedAfter a clean build from rake, the normal ci spec run hangs at the above spec. While it is hung, if I do a ps -a | grep rbx, there are 3 entries, one of which is marked . Using gdb to connect to one of the pid's shows a backtrace like so:
(gdb) bt #0 0xb80b5430 in __kernel_vsyscall () #1 0xb7e762cb in waitpid () from /lib/tls/i686/cmov/libc.so.6 #2 0x081085f9 in rubinius::System::vm_wait_pid (state=0x98630e8, pid_obj=0xebc7, no_hang=0xa) at vm/builtin/system.cpp:122 #3 0x080c1a41 in rubinius::Primitives::vm_wait_pid (state=0x98630e8, call_frame=0xbf8c9948, msg=@0x9a33c40, args=@0xbf8c97c8) at vm/gen/primitives_glue.gen.cpp:14264 #4 0x0815b414 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0x9a33840, call_frame=0xbf8c9948, args=@0xbf8c9bc8) at vm/gen/instructions.cpp:759 #5 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0x9a33840, call_frame=0xbf8c9948, args=@0xbf8c9bc8) at vm/vmmethod.cpp:661 #6 0x080910e1 in rubinius::VMMethod::execute_specialized (state=0x98630e8, previous=0xbf8c9ce4, msg=@0xad74d70, args=@0xbf8c9bc8) at vm/vmmethod.cpp:481 #7 0x0815b414 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0xad74b78, call_frame=0xbf8c9ce4, args=@0xbf8c9fc8) at vm/gen/instructions.cpp:759 #8 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0xad74b78, call_frame=0xbf8c9ce4, args=@0xbf8c9fc8) at vm/vmmethod.cpp:661 #9 0x0811338e in rubinius::BlockEnvironment::execute_interpreter (state=0x98630e8, previous=0xbf8ca178, env=0xb7831738, args=@0xbf8c9fc8, invocation=@0xbf8c9e90) at vm/builtin/block_environment.cpp:87 #10 0x0811305c in rubinius::BlockEnvironment::call_under (this=0xb7831738, state=0x98630e8, exec=0xb765f330, call_frame=0xbf8ca178, msg=@0x999dac8, args=@0xbf8c9fc8) at vm/builtin/block_environment.cpp:141 #11 0x080d54dc in rubinius::Primitives::block_call_under (state=0x98630e8, call_frame=0xbf8ca178, msg=@0xbf8c9648, args=@0xbf8c9fc8) at vm/gen/primitives_glue.gen.cpp:2016 #12 0x0815b414 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0x999d2d0, call_frame=0xbf8ca178, args=@0xbf8ca3f8) at vm/gen/instructions.cpp:759 #13 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0x999d2d0, call_frame=0xbf8ca178, args=@0xbf8ca3f8) at vm/vmmethod.cpp:661 #14 0x080910e1 in rubinius::VMMethod::execute_specialized (state=0x98630e8, previous=0xbf8ca534, msg=@0xa05c6f8, args=@0xbf8ca3f8) at vm/vmmethod.cpp:481 #15 0x0815b504 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0xa05c360, call_frame=0xbf8ca534, args=@0xbf8ca7a8) at vm/gen/instructions.cpp:786 #16 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0xa05c360, call_frame=0xbf8ca534, args=@0xbf8ca7a8) at vm/vmmethod.cpp:661 #17 0x080909bb in rubinius::VMMethod::execute_specialized (state=0x98630e8, previous=0xbf8ca8c4, msg=@0xa05dbc0, args=@0xbf8ca7a8) at vm/vmmethod.cpp:481 #18 0x0815b504 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0xa05dad0, call_frame=0xbf8ca8c4, args=@0xbf8cab68) at vm/gen/instructions.cpp:786 #19 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0xa05dad0, call_frame=0xbf8ca8c4, args=@0xbf8cab68) at vm/vmmethod.cpp:661 #20 0x0811338e in rubinius::BlockEnvironment::execute_interpreter (state=0x98630e8, previous=0xbf8cac74, env=0xb7835c94, args=@0xbf8cab68, invocation=@0xbf8caa68) at vm/builtin/block_environment.cpp:87 #21 0x08112eb4 in rubinius::BlockEnvironment::call (this=0xb7835c94, state=0x98630e8, call_frame=0xbf8cac74, args=@0xbf8cab68, flags=0) at vm/builtin/block_environment.cpp:100 #22 0x08164d72 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0xa05dbe0, call_frame=0xbf8cac74, args=@0xbf8caf18) at vm/gen/instructions.cpp:970 #23 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0xa05dbe0, call_frame=0xbf8cac74, args=@0xbf8caf18) at vm/vmmethod.cpp:661 #24 0x0811338e in rubinius::BlockEnvironment::execute_interpreter (state=0x98630e8, previous=0xbf8cb024, env=0xb7835ce4, args=@0xbf8caf18, invocation=@0xbf8cae18) at vm/builtin/block_environment.cpp:87 #25 0x08112eb4 in rubinius::BlockEnvironment::call (this=0xb7835ce4, state=0x98630e8, call_frame=0xbf8cb024, args=@0xbf8caf18, flags=0) at vm/builtin/block_environment.cpp:100 ... etcconnecting to the other (non defunkt) process gives the following backtrace:
(gdb) bt #0 0xb80b5430 in __kernel_vsyscall () #1 0xb7dc9cf9 in __lll_lock_wait () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb7dc5138 in _L_lock_289 () from /lib/tls/i686/cmov/libpthread.so.0 #3 0xb7dc4b76 in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0 #4 0xb7eca4b6 in pthread_mutex_lock () from /lib/tls/i686/cmov/libc.so.6 #5 0x0808dab1 in thread::Mutex::lock (this=0x98626f0) at vm/util/thread.hpp:298 #6 0x0810f5fb in rubinius::NativeFunction::call (this=0xb74643b0, state=0x98630e8, args=@0xbf8c8838) at vm/builtin/nativefunction.cpp:512 #7 0x0810f7fb in rubinius::NativeFunction::execute (state=0x98630e8, call_frame=0xbf8c89b8, msg=@0x99a67f8, args=@0xbf8c8838) at vm/builtin/nativefunction.cpp:56 #8 0x0815b414 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0x99a6258, call_frame=0xbf8c89b8, args=@0xbf8c8c38) at vm/gen/instructions.cpp:759 #9 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0x99a6258, call_frame=0xbf8c89b8, args=@0xbf8c8c38) at vm/vmmethod.cpp:661 #10 0x080910e1 in rubinius::VMMethod::execute_specialized (state=0x98630e8, previous=0xbf8c8d98, msg=@0x99a6c20, args=@0xbf8c8c38) at vm/vmmethod.cpp:481 #11 0x0815b414 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0x99a6a98, call_frame=0xbf8c8d98, args=@0xbf8c9018) at vm/gen/instructions.cpp:759 #12 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0x99a6a98, call_frame=0xbf8c8d98, args=@0xbf8c9018) at vm/vmmethod.cpp:661 #13 0x080910e1 in rubinius::VMMethod::execute_specialized (state=0x98630e8, previous=0xbf8c9198, msg=@0x99b3010, args=@0xbf8c9018) at vm/vmmethod.cpp:481 #14 0x0815bb74 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0x99b2d48, call_frame=0xbf8c9198, args=@0xbf8c9418) at vm/gen/instructions.cpp:851 #15 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0x99b2d48, call_frame=0xbf8c9198, args=@0xbf8c9418) at vm/vmmethod.cpp:661 #16 0x080910e1 in rubinius::VMMethod::execute_specialized (state=0x98630e8, previous=0xbf8c9554, msg=@0x9896008, args=@0xbf8c9418) at vm/vmmethod.cpp:481 #17 0x0815aeda in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0x9895f38, call_frame=0xbf8c9554, args=@0xbf8c97c8) at vm/gen/instructions.cpp:823 #18 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0x9895f38, call_frame=0xbf8c9554, args=@0xbf8c97c8) at vm/vmmethod.cpp:661 #19 0x08091431 in rubinius::VMMethod::execute_specialized (state=0x98630e8, previous=0xbf8c9948, msg=@0x99b2c68, args=@0xbf8c97c8) at vm/vmmethod.cpp:481 #20 0x0815b414 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0x99b2900, call_frame=0xbf8c9948, args=@0xbf8c9bc8) at vm/gen/instructions.cpp:759 #21 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0x99b2900, call_frame=0xbf8c9948, args=@0xbf8c9bc8) at vm/vmmethod.cpp:661 #22 0x080910e1 in rubinius::VMMethod::execute_specialized (state=0x98630e8, previous=0xbf8c9ce4, msg=@0xad74d30, args=@0xbf8c9bc8) at vm/vmmethod.cpp:481 #23 0x0815b504 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0xad74b78, call_frame=0xbf8c9ce4, args=@0xbf8c9fc8) at vm/gen/instructions.cpp:786 #24 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0xad74b78, call_frame=0xbf8c9ce4, args=@0xbf8c9fc8) at vm/vmmethod.cpp:661 #25 0x0811338e in rubinius::BlockEnvironment::execute_interpreter (state=0x98630e8, previous=0xbf8ca178, env=0xb7831738, args=@0xbf8c9fc8, invocation=@0xbf8c9e90) at vm/builtin/block_environment.cpp:87 #26 0x0811305c in rubinius::BlockEnvironment::call_under (this=0xb7831738, state=0x98630e8, exec=0xb765f330, call_frame=0xbf8ca178, msg=@0x999dac8, args=@0xbf8c9fc8) at vm/builtin/block_environment.cpp:141 #27 0x080d54dc in rubinius::Primitives::block_call_under (state=0x98630e8, call_frame=0xbf8ca178, msg=@0x80, args=@0xbf8c9fc8) at vm/gen/primitives_glue.gen.cpp:2016 #28 0x0815b414 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0x999d2d0, call_frame=0xbf8ca178, args=@0xbf8ca3f8) at vm/gen/instructions.cpp:759 #29 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0x999d2d0, call_frame=0xbf8ca178, args=@0xbf8ca3f8) at vm/vmmethod.cpp:661 #30 0x080910e1 in rubinius::VMMethod::execute_specialized (state=0x98630e8, previous=0xbf8ca534, msg=@0xa05c6f8, args=@0xbf8ca3f8) at vm/vmmethod.cpp:481 #31 0x0815b504 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0xa05c360, call_frame=0xbf8ca534, args=@0xbf8ca7a8) at vm/gen/instructions.cpp:786 #32 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0xa05c360, call_frame=0xbf8ca534, args=@0xbf8ca7a8) at vm/vmmethod.cpp:661 #33 0x080909bb in rubinius::VMMethod::execute_specialized (state=0x98630e8, previous=0xbf8ca8c4, msg=@0xa05dbc0, args=@0xbf8ca7a8) at vm/vmmethod.cpp:481 #34 0x0815b504 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0xa05dad0, call_frame=0xbf8ca8c4, args=@0xbf8cab68) at vm/gen/instructions.cpp:786 #35 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0xa05dad0, call_frame=0xbf8ca8c4, args=@0xbf8cab68) at vm/vmmethod.cpp:661 #36 0x0811338e in rubinius::BlockEnvironment::execute_interpreter (state=0x98630e8, previous=0xbf8cac74, env=0xb7835c94, args=@0xbf8cab68, invocation=@0xbf8caa68) at vm/builtin/block_environment.cpp:87 #37 0x08112eb4 in rubinius::BlockEnvironment::call (this=0xb7835c94, state=0x98630e8, call_frame=0xbf8cac74, args=@0xbf8cab68, flags=0) at vm/builtin/block_environment.cpp:100 #38 0x08164d72 in rubinius::VMMethod::interpreter (state=0x98630e8, vmm=0xa05dbe0, call_frame=0xbf8cac74, args=@0xbf8caf18) at vm/gen/instructions.cpp:970 #39 0x0808ec78 in rubinius::VMMethod::run_interpreter (state=0x98630e8, vmm=0xa05dbe0, call_frame=0xbf8cac74, args=@0xbf8caf18) at vm/vmmethod.cpp:661 ... etcCurrently this is always reproducable on my Ubuntu 32bit 9.04, gcc 4.3.3 box.
Comments
-
Details here: http://gist.github.com/117762
Only seems to happen when the completion has multiple completion alternatives.
Comments
-
I get a BusError when running the do_postgres specs. The backtrace from gdb is the following:
If there is any more information I can provide, just give me a ping
Comments
Reproducing this assumes that you've cloned both rubinius and the do repository: github.com/datamapper/do. After this I assume both are cloned in the same directory. I only seem to be able to reproduce this using PostgreSQL, so that needs to be installed too (available through an installer / macports etc). It assumes that there is a postgres admin user that has full access without a password. The following command runs rubinius and gives an error:
gdb --args ../../rubinius/vm/vm -I"../../rubinius/gems/1.8/gems/rspec-1.2.2/lib" "../../rubinius/gems/1.8/gems/rspec-1.2.2/bin/spec" "spec/command_spec.rb" "spec/connection_spec.rb" "spec/encoding_spec.rb" "spec/reader_spec.rb" "spec/result_spec.rb" "spec/typecast/array_spec.rb" "spec/typecast/bigdecimal_spec.rb" "spec/typecast/boolean_spec.rb" "spec/typecast/byte_array_spec.rb" "spec/typecast/class_spec.rb" "spec/typecast/date_spec.rb" "spec/typecast/datetime_spec.rb" "spec/typecast/float_spec.rb" "spec/typecast/integer_spec.rb" "spec/typecast/nil_spec.rb" "spec/typecast/range_spec.rb" "spec/typecast/string_spec.rb" "spec/typecast/time_spec.rb" --options spec/spec.opts
This gives the following backtrace for me:
Btw, this needs rspec 1.2.2 (1.2.6 acts weird with rubinius), extlib and the addressable gems installed. I've also updated Rubygems using ./bin/rbx -S gem update --system
Please retry against 319665db6124. There were some structures used by capi that weren't properly initialized.
-
rbx gem install tmail cannot compile with C extensions
2 comments Created 7 months ago by daddy -
When try to add mysql gem by issuing 'bin.rbx gem install mysql', the following error occurs:
checking for mysql_query() in -lmysqlclient... yes
checking for mysql_ssl_set()... yes
checking for mysql.h... no
checking for mysql/mysql.h... yes
creating Makefilemake gcc -I. -I. -I/home/daddy/rubinius/rubinius/vm/capi -I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_MYSQL_H -I/usr/local/include -Wall -ggdb3 -O2 -c mysql.c mysql.c:6:21: error: version.h: No such file or directory mysql.c: In function 'mysql_raise': mysql.c:165: warning: implicit declaration of function 'rb_exc_raise' mysql.c: In function 'mysqlres2obj': mysql.c:172: warning: passing argument 2 of 'memset' makes integer from pointer without a cast mysql.c:177: warning: implicit declaration of function 'rb_gc' mysql.c: In function 'make_field_obj': mysql.c:189: warning: implicit declaration of function 'rb_str_freeze' mysql.c:185: warning: unused variable 'hash' mysql.c: In function 'init': mysql.c:210: warning: passing argument 2 of 'memset' makes integer from pointer without a cast mysql.c: In function 'real_connect': mysql.c:243: warning: passing argument 2 of 'memset' makes integer from pointer without a cast mysql.c: In function 'query': mysql.c:719: warning: implicit declaration of function 'rb_ensure' mysql.c: In function 'stmt_init': mysql.c:854: warning: passing argument 2 of 'memset' makes integer from pointer without a cast mysql.c: In function 'query_with_result_set': mysql.c:882: warning: implicit declaration of function 'TypeError' mysql.c: In function 'fetch_field_direct': mysql.c:960: warning: implicit declaration of function 'Raise' mysql.c: In function 'stmt_execute': mysql.c:1337: warning: implicit declaration of function 'rb_big2ll' mysql.c:1316: warning: unused variable 'false' mysql.c: In function 'Init_mysql': mysql.c:1814: warning: implicit declaration of function 'rb_define_global_const' mysql.c:2571: error: 'E' undeclared (first use in this function) mysql.c:2571: error: (Each undeclared identifier is reported only once mysql.c:2571: error: for each function it appears in.) mysql.c:2571: error: expected ')' at end of input mysql.c:2571: error: expected declaration or statement at end of input make: *** [mysql.o] Error 1
Comments
-
(Don't know if Rubinius is open for issues, but anyways)
Tried to use Rubinius (code from today) to run Buildr (a build tool based on Rake for Java). I get this:
An exception has occurred:
unknown marshal code: 1 (TypeError)Backtrace:
Compiler::Utils.single_load {} at kernel/compiler/compile.rb:211 Compiler::Utils.compile_feature at kernel/compiler/compile.rb:142 Compiler::Utils.single_load at kernel/compiler/compile.rb:210 Compiler::Utils.unified_load {} at kernel/compiler/compile.rb:131 Array#each at kernel/bootstrap/array.rb:48 Compiler::Utils.unified_load at kernel/compiler/compile.rb:95Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:726
Kernel(Object)#require at lib/rubygems/custom_require.rb:31 main.__script__ at /work/research/buildr/bin/buildr:18Rubinius::CompiledMethod#activate_as_script at kernel/common/compiled_method.rb:150
Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:143 Compiler::Utils.single_load at kernel/compiler/compile.rb:239 Compiler::Utils.unified_load at kernel/compiler/compile.rb:89 Kernel(Object)#load at kernel/common/kernel.rb:677 main.__script__ at /usr/bin/buildr:8Rubinius::CompiledMethod#activate_as_script at kernel/common/compiled_method.rb:150
Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:143 Compiler::Utils.single_load at kernel/compiler/compile.rb:239Compiler::Utils.load_from_extension at kernel/compiler/compile.rb:323
Object#__script__ at kernel/loader.rb:252Comments
This error usually is from stale .rbc files. Please purge all the .rbc files and run rake again.
now when i try to run just bin/rbx, i get:
Runtime exception: Unable to open file to runPlease try doing a clean build. It sounds like you're getting runtime errors because of a screwed up build.












This was related to a different issue that I have ticketed.