Issue #7312 has been updated by naruse (Yui NARUSE).

Status changed from Closed to Feedback
Assignee set to naruse (Yui NARUSE)

vo.x (Vit Ondruch) wrote:
> I observe the test error on Fedora Rawhide. Could it be because of some "too new" external library?

As I wrote in the commit, it seems because of glibc's crypt(3)'s change.
(the fundamental reason is ruby hadn't treat the case crypt(3) returns NULL even if POSIX describe it)
Could you inspect when crypt(3) returns NULL?
----------------------------------------
Bug #7312: test_str_crypt(TestM17NComb) fails
https://bugs.ruby-lang.org/issues/7312#change-32673

Author: vo.x (Vit Ondruch)
Status: Feedback
Priority: Normal
Assignee: naruse (Yui NARUSE)
Category: 
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-08 trunk 37564) [x86_64-linux]


=begin
 test_str_crypt(TestM17NComb):
 ArgumentError: NULL pointer given
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/test_m17n_comb.rb:728:in `crypt'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/test_m17n_comb.rb:728:in `block in test_str_crypt'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/allpairs.rb:83:in `block in each'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/allpairs.rb:75:in `block in each_index'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/allpairs.rb:46:in `block in make_large_block'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/allpairs.rb:26:in `block (2 levels) in make_basic_block'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/allpairs.rb:21:in `times'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/allpairs.rb:21:in `block in make_basic_block'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/allpairs.rb:20:in `times'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/allpairs.rb:20:in `make_basic_block'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/allpairs.rb:45:in `make_large_block'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/allpairs.rb:71:in `each_index'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/allpairs.rb:82:in `each'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/test_m17n_comb.rb:60:in `combination'
     /builddir/build/BUILD/ruby-2.0.0-r37564/test/ruby/test_m17n_comb.rb:723:in `test_str_crypt'
=end



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