rtomayko / posix-spawn

Ruby process spawning library
Other
519 stars 52 forks source link

BacktickTest#test_backtick_huge hangs on OSX #53

Closed dblock closed 9 years ago

dblock commented 10 years ago

The yes | head -50000 hangs on OSX. The process is still there, either the piping doesn't work or something else? Running the command in bash obviously is fine. Either way posix-spawn ends up waiting on io.read.

rtomayko commented 9 years ago

Not able to repro a test hang here:

$ uname -a
Darwin rtko.local 14.1.0 Darwin Kernel Version 14.1.0: Thu Feb 26 19:26:47 PST 2015; root:xnu-2782.10.73~1/RELEASE_X86_64 x86_64
$ rake
mkdir -p tmp/x86_64-darwin14.0/posix_spawn_ext/2.1.5
cd tmp/x86_64-darwin14.0/posix_spawn_ext/2.1.5
/opt/rubies/2.1.5-github1/bin/ruby -I. ../../../../ext/extconf.rb
creating Makefile
cd -
cd tmp/x86_64-darwin14.0/posix_spawn_ext/2.1.5
make
compiling ../../../../ext/posix-spawn.c
linking shared-object posix_spawn_ext.bundle
cd -
cp lib/posix/spawn.rb tmp/x86_64-darwin14.0/stage/lib/posix/spawn.rb
cp lib/posix/spawn/child.rb tmp/x86_64-darwin14.0/stage/lib/posix/spawn/child.rb
cp lib/posix/spawn/version.rb tmp/x86_64-darwin14.0/stage/lib/posix/spawn/version.rb
install -c tmp/x86_64-darwin14.0/posix_spawn_ext/2.1.5/posix_spawn_ext.bundle lib/posix_spawn_ext.bundle
cp tmp/x86_64-darwin14.0/posix_spawn_ext/2.1.5/posix_spawn_ext.bundle tmp/x86_64-darwin14.0/stage/lib/posix_spawn_ext.bundle
Run options: --seed 51667

# Running tests:

................................................................................................................................................

Finished tests in 1.416687s, 101.6456 tests/s, 324.7012 assertions/s.

144 tests, 460 assertions, 0 failures, 0 errors, 0 skips

Closing this out. Please reopen if you continue to see the issue.