Issue #5727 has been reported by Yura Sokolov.

----------------------------------------
Bug #5727: Hidden bug in load.c rb_feature_p
http://redmine.ruby-lang.org/issues/5727

Author: Yura Sokolov
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 1.9.3
ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]


lazy assigned load_path searched in loading_table were not expanded 
(http://redmine.ruby-lang.org/projects/ruby-trunk/repository/revisions/33027/entry/load.c#L186),
but all features, pushed to loading table, are expanded.

This bug is hidden because load_path is allways filled in loaded_features loop 
(http://redmine.ruby-lang.org/projects/ruby-trunk/repository/revisions/33027/entry/load.c#L160),
but if we try to optimize this loop (#5427), then load_path could be not filled, and bug exposed.

(pull request on github https://github.com/ruby/ruby/pull/63 )


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