Project

General

Profile

Bug #6027

Failure: test_modify_expand_memory_leak(Test_StringModifyExpand)

Added by ngoto (Naohisa Goto) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-02-14) [sparc64-solaris2.10]
Backport:
[ruby-dev:45248]

Description

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
'\n
\tfrom -:in `require'\n"
]>.

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

#1

Updated by naruse (Yui NARUSE) over 8 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r34605.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


Set encoding as ASCII-8BIT. [Bug #6027]

Also available in: Atom PDF