Issue #12476 has been updated by Usaku NAKAMURA.

Status changed from Open to Feedback

Please tell us how to reproduce.
And, please check Ruby 2.2.5 if you can.

----------------------------------------
Bug #12476: Cygwin current Ruby 2.2.4p230 fails where prev Ruby 2.2.3p173 does not
https://bugs.ruby-lang.org/issues/12476#change-59105

* Author: Norm Hurst
* Status: Feedback
* Priority: Normal
* Assignee: 
* ruby -v:  2.2.4p230 (2015-12-16 revision 53155) [i386-cygwin]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Below "possible bug" running the current Cygwin Ruby distribution.  Reverting to Cygwin's "previous" (ruby 2.2.3p173 (2015-08-18 revision 51636) [i386-cygwin]) seems to have solved the problem for me.  

My script is involved and uses threads to run system() commands in parallel.

-Norm

....
tandardPatterns/2K/Color_Bars_HD/2048x1080p24/Video/%05d.v210 colorspace yuv layoutFile /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/TestPatte
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/TestPatternGenerator//bin/makeTestPattern.exe primaries 709   logoImageFile Images/Sarnoff/sarnof
tandardPatterns/2K/Color_Bars_HD/2048x1080p25/Video/%05d.v210 colorspace yuv layoutFile /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/TestPatte
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/BitstreamGen/bitstreambuilder.rb:2445: [BUG] Segmentation fault at 0x2000004
ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-cygwin]

-- Control frame information -----------------------------------------------
c:0016 p:---- s:0078 e:000077 CFUNC  :close
c:0015 p:---- s:0076 e:000075 CFUNC  :open
c:0014 p:0879 s:0071 e:000070 METHOD /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/BitstreamGen/bitstreambuilder.rb:2445
c:0013 p:0183 s:0054 e:000053 METHOD /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/targetfile.rb:1609
c:0012 p:0564 s:0047 e:000046 METHOD /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/targetfile.rb:1365
c:0011 p:0082 s:0040 e:000039 BLOCK  /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/targetfile.rb:1282 [FINISH]
c:0010 p:---- s:0036 e:000035 CFUNC  :each
c:0009 p:0182 s:0033 e:000032 METHOD /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/targetfile.rb:1269
c:0008 p:0008 s:0026 e:000025 BLOCK  /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/targetfile.rb:1275 [FINISH]
c:0007 p:---- s:0024 e:000023 CFUNC  :call
c:0006 p:0043 s:0021 e:000020 BLOCK  /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/thread-pool.rb:103 [FINISH]
c:0005 p:---- s:0014 e:000013 CFUNC  :loop
c:0004 p:0007 s:0011 e:000010 BLOCK  /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/thread-pool.rb:85 [FINISH]
c:0003 p:---- s:0009 e:000008 CFUNC  :catch
c:0002 p:0033 s:0005 e:000004 BLOCK  /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/thread-pool.rb:81 [FINISH]
c:0001 p:---- s:0002 e:000001 TOP    [FINISH]

-- Ruby level backtrace information ----------------------------------------
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/thread-pool.rb:81:in `block (2 levels) in initialize'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/thread-pool.rb:81:in `catch'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/thread-pool.rb:85:in `block (3 levels) in initialize'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/thread-pool.rb:85:in `loop'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/thread-pool.rb:103:in `block (4 levels) in initialize'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/thread-pool.rb:103:in `call'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/targetfile.rb:1275:in `block (2 levels) in _make'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/targetfile.rb:1269:in `_make'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/targetfile.rb:1269:in `each'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/targetfile.rb:1282:in `block in _make'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/targetfile.rb:1365:in `_make'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/targetfile.rb:1609:in `build'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/BitstreamGen/bitstreambuilder.rb:2445:in `create'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/BitstreamGen/bitstreambuilder.rb:2445:in `open'
/cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/BitstreamGen/bitstreambuilder.rb:2445:in `close'

-- Other runtime information -----------------------------------------------

* Loaded script: /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/makeTG-100patterns.rb

* Loaded features:

    0 enumerator.so
    1 rational.so
    2 complex.so
    3 /usr/lib/ruby/2.2.0/enc/encdb.so
    4 /usr/lib/ruby/2.2.0/enc/trans/transdb.so
 ZonePlateYrgb 1920x1080p60.00/usr/lib/ruby/2.2.0/enc/iso_8859_1.so 000
000 60   : 6X X/usr/share/ruby/2.2.0/unicode_normalize.rbXX
X X   X7X X/usr/lib/ruby/2.2.0/rbconfig.rbXX
X X   X8X Xthread.rbXX
      09: 0/usr/lib/ruby/2.2.0/thread.so7
. 509   fps10 /usr/share/rubygems/rubygems/compatibility.rb
   11 /usr/share/rubygems/rubygems/defaults.rb
   12 /usr/share/rubygems/rubygems/deprecate.rb
   13 /usr/share/rubygems/rubygems/errors.rb
   14 /usr/share/rubygems/rubygems/version.rb
   15 /usr/share/rubygems/rubygems/requirement.rb
   16 /usr/share/rubygems/rubygems/platform.rb
   17 /usr/share/rubygems/rubygems/basic_specification.rb
   18 /usr/share/rubygems/rubygems/stub_specification.rb
   19 /usr/share/rubygems/rubygems/util/stringio.rb
   20 /usr/share/rubygems/rubygems/specification.rb
   21 /usr/share/rubygems/rubygems/exceptions.rb
   22 /usr/share/rubygems/rubygems/defaults/operating_system.rb
   23 /usr/share/rubygems/rubygems/core_ext/kernel_gem.rb
   24 /usr/share/ruby/2.2.0/monitor.rb
   25 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb
   26 /usr/share/rubygems/rubygems.rb
   27 /usr/lib/ruby/2.2.0/etc.so
   28 /usr/share/ruby/2.2.0/FileUtils.rb
   29 /usr/share/ruby/2.2.0/logger.rb
   30 /usr/lib/ruby/2.2.0/socket.so
   31 /usr/share/ruby/2.2.0/socket.rb
   32 /usr/share/ruby/2.2.0/timeout.rb
   33 /usr/share/ruby/2.2.0/net/protocol.rb
   34 /usr/lib/ruby/2.2.0/digest.so
   35 /usr/share/ruby/2.2.0/digest.rb
   36 /usr/lib/ruby/2.2.0/digest/md5.so
   37 /usr/lib/ruby/2.2.0/openssl.so
   38 /usr/share/ruby/2.2.0/openssl/bn.rb
   39 /usr/share/ruby/2.2.0/openssl/cipher.rb
   40 /usr/lib/ruby/2.2.0/stringio.so
   41 /usr/share/ruby/2.2.0/openssl/config.rb
   42 /usr/share/ruby/2.2.0/openssl/digest.rb
   43 /usr/share/ruby/2.2.0/openssl/x509.rb
   44 /usr/share/ruby/2.2.0/openssl/buffering.rb
   45 /usr/lib/ruby/2.2.0/fcntl.so
   46 /usr/share/ruby/2.2.0/openssl/ssl.rb
   47 /usr/share/ruby/2.2.0/openssl.rb
   48 /usr/share/ruby/2.2.0/net/smtp.rb
   49 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/normsUtilities.rb
   50 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/normsutilities.rb
   51 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/thread-pool.rb
   52 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/targetfile.rb
   53 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/bits.rb
   54 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/descriptor.rb
   55 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/mpeg.rb
   56 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/psip.rb
   57 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/cc708tools.rb
   58 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/mpeg2paramfile.rb
   59 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/mpeg2encoder.rb
   60 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/h264encoder.rb
   61 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/hevcencoder.rb
   62 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/ac3encoder.rb
   63 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/transportencoder.rb
   64 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/parameters.rb
   65 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/Ruby/Lib/testpatternutilities.rb
   66 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/BitstreamGen/quantmapfile.rb
   67 /cygdrive/f/_Norm/Work/DEV/TFS/TestAndMeasurement/BitstreamGen/bitstreambuilder.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abortedzer3 2048x1080p25.00 00029/00050: XXXXXXXXXXXXXXX---------  0:58  0.357 fps

nhurst@NHURST7 /cygdrive/g
esp1.2_Hd 2048x1080p25.00 00049/00050: XXXXXXXXXXXXXXXXXXXXXXXX  0:05  0.199 fps                            XXX

nhurst@NHURST7 /cygdrive/g
$



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>