Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rake hangs after running 18 specs on Ubuntu #1333

Closed
jc00ke opened this issue Oct 22, 2011 · 8 comments
Closed

rake hangs after running 18 specs on Ubuntu #1333

jc00ke opened this issue Oct 22, 2011 · 8 comments

Comments

@jc00ke
Copy link
Member

jc00ke commented Oct 22, 2011

∴ uname -a
Linux maynard 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
12:38:59 jesse@maynard:~/projects/rubinius/rubinius (git:master+:5e88b23)  rbx-head 
∴ rake
/home/jesse/.rvm/rubies/rbx-head/bin/rbx vm/codegen/field_extract.rb vm/builtin/basicobject.hpp 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/alias.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/bytearray.hpp vm/builtin/chararray.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/ffi_pointer.hpp vm/builtin/methodtable.hpp vm/builtin/nativefunction.hpp vm/builtin/packed_object.hpp vm/builtin/randomizer.hpp vm/builtin/regexp.hpp vm/builtin/staticscope.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/nativemethod.hpp vm/builtin/system.hpp vm/builtin/autoload.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/builtin/fiber.hpp vm/builtin/thunk.hpp vm/builtin/call_unit.hpp vm/builtin/call_unit_adapter.hpp vm/builtin/cache.hpp vm/builtin/encoding.hpp
daedalus: Nothing to do for vm/vm
/home/jesse/.rvm/rubies/rbx-head/bin/rbx -S rake  -r /home/jesse/projects/rubinius/rubinius/config.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/ext_helper.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/dependency_grapher.rb build:build
Building bootstrap Melbourne for Rubinius
/home/jesse/.rvm/rubies/rbx-head/bin/rbx -S rake  -r /home/jesse/projects/rubinius/rubinius/config.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/ext_helper.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/dependency_grapher.rb build
/home/jesse/.rvm/rubies/rbx-head/bin/rbx -S rake  -r /home/jesse/projects/rubinius/rubinius/config.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/ext_helper.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/dependency_grapher.rb build
/home/jesse/.rvm/rubies/rbx-head/bin/rbx -S rake  -r /home/jesse/projects/rubinius/rubinius/config.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/ext_helper.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/dependency_grapher.rb build
/home/jesse/.rvm/rubies/rbx-head/bin/rbx -S rake  -r /home/jesse/projects/rubinius/rubinius/config.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/ext_helper.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/dependency_grapher.rb build
/home/jesse/.rvm/rubies/rbx-head/bin/rbx -S rake  -r /home/jesse/projects/rubinius/rubinius/config.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/ext_helper.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/dependency_grapher.rb build
/home/jesse/.rvm/rubies/rbx-head/bin/rbx -S rake  -r /home/jesse/projects/rubinius/rubinius/config.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/ext_helper.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/dependency_grapher.rb build
/home/jesse/.rvm/rubies/rbx-head/bin/rbx -S rake  -r /home/jesse/projects/rubinius/rubinius/config.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/ext_helper.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/dependency_grapher.rb build
/home/jesse/.rvm/rubies/rbx-head/bin/rbx -S rake  -r /home/jesse/projects/rubinius/rubinius/config.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/ext_helper.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/dependency_grapher.rb build
/home/jesse/.rvm/rubies/rbx-head/bin/rbx -S rake  -r /home/jesse/projects/rubinius/rubinius/config.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/ext_helper.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/dependency_grapher.rb build:rbx
Building Melbourne for Rubinius
/home/jesse/.rvm/rubies/rbx-head/bin/rbx -S rake  -r /home/jesse/projects/rubinius/rubinius/config.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/ext_helper.rb -r /home/jesse/projects/rubinius/rubinius/rakelib/dependency_grapher.rb build
Building openssl
make 
make: Nothing to be done for `all'.
Building dl
make 
make: Nothing to be done for `all'.
Building dbm
/home/jesse/projects/rubinius/rubinius/bin/rbx-build extconf.rb > /dev/null 2>&1
make > /dev/null 2>&1
Building gdbm
/home/jesse/projects/rubinius/rubinius/bin/rbx-build extconf.rb > /dev/null 2>&1
make > /dev/null 2>&1
Building sdbm
make 
make: Nothing to be done for `all'.
Building profiler
make 
make: Nothing to be done for `all'.
daedalus: Nothing to do for vm/test/runner
vm/test/runner
Running 677 tests.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................OK!
bin/mspec ci -T -X18 --background --agent
rubinius 2.0.0dev (1.8.7 5e88b23a yyyy-mm-dd JI) [x86_64-unknown-linux-gnu]
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Terminated: signal SIGHUP12:40:11 jesse@maynard:~/projects/rubinius/rubinius (git:master+:5e88b23)  rbx-head 
∴ ..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Finished in 143.273091 seconds

3820 files, 16277 examples, 43937 expectations, 0 failures, 0 errors
^C

According to the "Contributing to Rubinius" post rake is supposed to run both 18 & 19 specs, but my 19 specs don't run, as after running 18 rake just seems to hang there.

I just left it for, I don't know, 30 min or so. Still just hangin'.

@jc00ke jc00ke closed this as completed Oct 23, 2011
@jc00ke jc00ke reopened this Oct 23, 2011
@jc00ke
Copy link
Member Author

jc00ke commented Oct 23, 2011

Not sure how I accidentally close this, but I didn't mean to.

@jc00ke
Copy link
Member Author

jc00ke commented Oct 25, 2011

After a lot of poking around, it's come to this:

Running rake spec18 will hang
Running bin/mspec ci -T -X18 --background --agent (the command rake spec18 ends up executing) does NOT hang.

@evan or @brixen any ideas?

@brixen
Copy link
Member

brixen commented Oct 25, 2011

Could you attach to the process with gdb and do thread apply all bt 10

@jc00ke
Copy link
Member Author

jc00ke commented Oct 26, 2011

My default ruby is rbx-head through rvm. When I configure my rbx dev build it sets rake to /home/jesse/.rvm/rubies/rbx-head/bin/rake which is causing this hang. When I switch to 1.9.2, configure and then run rake spec18 rake spec19 or just rake I do not get this hang.

@brixen stated in IRC that make rbx rake wasn't "cleaning up when it exits or something"

@brixen
Copy link
Member

brixen commented Oct 26, 2011

What version of rake are you using with rbx? Also, what version of rake with 1.9.2? Could you upgrade 1.9.2 to rake 0.9.2.2 and try it?

@jc00ke
Copy link
Member Author

jc00ke commented Oct 26, 2011

∴ rbx -S rake -V
rake, version 0.9.2.2
∴ rvm 1.9.2 do rake -V
rake, version 0.9.2

Upgrading 1.9.2's rake to 0.9.2.2 seemed to work. I was able to run both 1.8 & 1.9 specs, which is the first time that's happened in a long time.

@brixen
Copy link
Member

brixen commented Oct 26, 2011

Could you actually downgrade the rbx rake version to 0.9 and see if the specs will complete using that version and rbx to run rake?

@jc00ke
Copy link
Member Author

jc00ke commented Nov 2, 2011

Looks like this has been fixed. I tested in ruby 1.8.7 & 1.9.2 + rake 0.8.7..0.9.2.2

@jc00ke jc00ke closed this as completed Nov 2, 2011
brixen added a commit that referenced this issue Dec 20, 2015
RubyGems 2.5.1 installed

=== 2.5.1 / 2015-12-10

Bug fixes:

* Ensure platform sorting only uses strings. Affected binary installs on Windows.
  Issue #1369 reported by Ryan Atball (among others).
  Pull request #1375 by Samuel E. Giddins.
* Revert PR #1332. Unable to reproduce, and nil should be impossible.
* Gem::Specification#to_fullpath now returns .rb extensions when such a file
  exists.  Pull request #1114 by y-yagi.
* RubyGems now handles Net::HTTPFatalError instead of crashing.  Pull
  request #1314 by Samuel E. Giddins.
* Updated bundled Molinillo to 0.4.0.  Pull request #1322, #1396 by Samuel E.
  Giddins.
* Improved performance of spec loading by reducing likelihood of loading he
  complete specification.  Pull request #1373 by Aaron Patterson.
* Improved caching of requirable files  Pull request #1377 by Aaron Patterson.
* Fixed activation of gems with development dependencies.  Pull request #1388
  by Samuel E. Giddins.
* RubyGems now uses the same Molinillo vendoring strategy as Bundler.  Pull
  request #1397 by Samuel E. Giddins.
* Fixed documentation of Gem::Requirement.parse.  Pull request #1398 by
  Juanito Fatas.
* RubyGems no longer warns when a prerelease gem has prerelease dependencies.
  Pull request #1399 by Samuel E. Giddins.
* Fixed Gem::Version documentation example.  Pull request #1401 by Guilherme
  Goettems Schneider.
* Updated documentation links to https://.  Pull request #1404 by Suriyaa
  Kudo.
* Fixed double word typo.  Pull request #1411 by Jake Worth.

=== 2.5.0 / 2015-11-03

Major enhancements:

* Added the Gem::Licenses class which provides a set of standard license
  identifiers as set by spdx.org. This is now used by the
  Gem::Specification#license attribute to try to standardize (though not
  enforce) licenses set by gem authors.

  Pull request #1249 by Kyle Mitchell.

Minor enhancements:

* Use Molinillo as the resolver library.  This is the same resolver as used by
  Bundler.  Pull request #1189 by Samuel E. Giddins.
* Add `--skip=gem_name` to Pristine command.  Pull request #1018 by windwiny.
* The parsed gem dependencies file is now available via Gem.gemdeps following
  Gem.use_gemdeps.  Pull request #1224 by Hsing-Hui Hsu, issue #1213 by
  Michal Papis.
* Moved description attribute to recommended for Gem::Specification.
  Pull request #1046 by Michal Papis
* Moved `Gem::Indexer#abbreviate` and `#sanitize` to `Gem::Specification`.
  Pull request #1145 by Arthur Nogueira Neves
* Cache Gem::Version segments for `#bump` and `#release`.
  Pull request #1131 by Matijs van Zuijlen
* Fix edge case in `levenshtein_distance` for comparing longer strings.
  Pull request #1173 by Richard Schneeman
* Remove duplication from List#to_a, improving from O(n^2) to O(n) time.
  Pull request #1200 by Marc Siegel.
* Gem::Specification.add_specs is deprecated and will be removed from version
  3.0 with no replacement.  To add specs, install the gem, then reset the
  cache.
* Gem::Specification.add_spec is deprecated and will be removed from version
  3.0 with no replacement.  To add specs, install the gem, then reset the
  cache.
* Gem::Specification.remove_spec is deprecated and will be removed from version
  3.0 with no replacement.  To remove specs, uninstall the gem, then reset the
  cache by calling Gem::Specification.reset.
* Call Array#compact before calling Array#uniq for minor speed improvement in
  the Gem::Specification#files method.
  Pull request #1253 by Marat Amerov.
* Use stringio instead of custom String classes.
  Pull request #1250 by Petr Skocik.
* Use URI#host instead of URI#hostname to retain backwards compatibility with
  Ruby 1.9.2 and earlier in util library.
  Pull request #1288 by Joe Rafaniello.
* Documentation update for gem sources.
  Pull request #1324 by Ilya Vassilevsky.
* Documentation update for required_ruby_version.
  Pull request #1321 by Matt Patterson.
* Documentation update for gem update.
  Pull request #1306 by Tim Blair.
* Emit a warning on SRV resolve failure.
  Pull request #1023 by Ivan Kuchin.
* Allow duplicate dependencies between runtime and development.
  Pull request #1032 by Murray Steele.
* The gem env command now shows the user installation directory.
  Pull request #1343 by Luis Sagastume.
* The Gem::Platform#=== method now treats a nil cpu arch the same as 'universal'.
  Pull request #1356 by Daniel Berger.
* Improved memory performance in Gem::Specification.traverse.  Pull request
  #1188 by Aaron Patterson.
* RubyGems packages now support symlinks.  Pull request #1209 by Samuel E.
  Giddins.
* RubyGems no longer outputs mkmf.log if it does not exist.  Pull request
  #1222 by Andrew Hooker.
* Added Bitrig platform.  Pull request #1233 by John C. Vernaleo.
* Improved error message for first-time RubyGems developers.  Pull request
  #1241 by André Arko
* Improved performance of Gem::Specification#load with cached specs.  Pull
  request #1297 by Samuel E. Giddins.
* Gem::RemoteFetcher allows users to set HTTP headers.  Pull request #1363 by
  Agis Anastasopoulos.

Bug fixes:

* Fixed Rake homepage url in example for Gem::Specification#homepage.
  Pull request #1171 by Arthur Nogueira Neves
* Don't crash if partially uninstalled gem can't be found.
  Pull request #1283 by Cezary Baginski.
* Test warning cleanup.
  Pull request #1298 by Samuel E. Giddins.
* Documentation fix for GemDependencyAPI.
  Pull request #1308 by Michael Papis.
* Fetcher now ignores ENOLCK errors in single threaded environments. This
  handles an issue with gem installation on NFS as best we can. Addresses
  issue #1176 by Ryan Moore.
  Pull request #1327 by Daniel Berger.
* Fix some path quoting issues in the test suite.
  Pull request #1328 by Gavin Miller.
* Fix NoMethodError in running ruby processes when gems are uninstalled.
  Pull request #1332 by Peter Drake.
* Fixed a potential NoMethodError for gem cleanup.
  Pull request #1333 by Peter Drake.
* Fixed gem help bug.
  Issue #1352 reported by bogem, pull request #1357 by Luis Sagastume.
* Remove temporary directories after tests finish.  Pull request #1181 by
  Nobuyoshi Nokada.
* Update links in RubyGems documentation.  Pull request #1185 by Darío Hereñú.
* Prerelease gem executables can now be run.  Pull request #1186 by Samuel E.
  Giddins.
* Updated RubyGems travis-ci ruby versions.  Pull request #1187 by Samuel E.
  Giddins.
* Fixed release date of RubyGems 2.4.6.  Pull request #1190 by Frieder
  Bluemle.
* Fixed bugs in gem activation.  Pull request #1202 by Miklós Fazekas.
* Fixed documentation for `gem list`.  Pull request #1228 by Godfrey Chan.
* Fixed #1200 history entry.  Pull request #1234 by Marc Siegel.
* Fixed synchronization issue when resetting the Gem::Specification gem list.
  Pull request #1239 by Samuel E. Giddins.
* Fixed running tests in parallel.  Pull request #1257 by SHIBATA Hiroshi.
* Fixed running tests with `--program-prefix` or `--program-suffix` for ruby.
  Pull request #1258 by Shane Gibbs.
* Fixed Gem::Specification#to_yaml.  Pull request #1262 by Hiroaki Izu.
* Fixed taintedness of Gem::Specification#raw_require_paths.  Pull request
  #1268 by Sam Ruby.
* Fixed sorting of platforms when installing gems.  Pull request #1271 by
  nonsequitur.
* Use `--no-document` over deprecated documentation options when installing
  dependencies on travis.  Pull request #1272 by takiy33.
* Improved support for IPv6 addresses in URIs.  Pull request #1275 by Joe
  Rafaniello.
* Spec validation no longer crashes if a file does not exist.  Pull request
  #1278 by Samuel E. Giddins.
* Gems can now be installed within `rescue`.  Pull request #1282 by Samuel E.
  Giddins.
* Increased Diffie-Hellman key size for tests for modern OpenSSL.  Pull
  request #1290 by Vít Ondruch.
* RubyGems handles invalid config files better.  Pull request #1367 by Agis
  Anastasopoulos.

------------------------------------------------------------------------------

RubyGems installed the following executables:
  /source/rubinius/rubinius/bin/gem

RubyGems system software updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants