Issue #6027 has been reported by Naohisa Goto.

----------------------------------------
Bug #6027: Failure: test_modify_expand_memory_leak(Test_StringModifyExpand)
https://bugs.ruby-lang.org/issues/6027

Author: Naohisa Goto
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0dev (2012-02-14) [sparc64-solaris2.10]


Solaris 10 にて、r34493以降、以下のFailureが出ます。

 48) Failure:
test_modify_expand_memory_leak(Test_StringModifyExpand) [/XXX/src/sparc64-cc11-trunk-34587/test/-ext-/string/test_modify_expand.
rb:7]:
rb_str_modify_expand().
<[true, ""]> expected but was
<[false,
 "/XXX/src/sparc64-cc11-trunk-34587/test/ruby/memory_status.rb:11:in `=~': invalid byte sequence in US-ASCII (ArgumentError)\n
\tfrom /XXX/src/sparc64-cc11-trunk-34587/test/ruby/memory_status.rb:11:in `block in read_status'\n
\tfrom /XXX/src/sparc64-cc11-trunk-34587/test/ruby/memory_status.rb:10:in `foreach'\n
\tfrom /XXX/src/sparc64-cc11-trunk-34587/test/ruby/memory_status.rb:10:in `read_status'\n
\tfrom /XXX/src/sparc64-cc11-trunk-34587/test/ruby/memory_status.rb:15:in `<module:Memory>'\n
\tfrom /XXX/src/sparc64-cc11-trunk-34587/test/ruby/memory_status.rb:1:in `<top (required)>'\n
\tfrom -:in `require'\n"
]>.

Solaris では /proc/self/status が構造体の内容そのままのバイナリデータを出すため、
エンコーディングのエラーが出ているようです。



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