/usr/local/lib/ruby/gems/1.8/gems/tidy-1.1.2/lib/tidy/tidybuf.rb:39: [BUG] Segmentation fault
ruby 1.8.7 (2009-12-24 patchlevel 248) [amd64-freebsd8]
でcore dumpするバグの対策
*** /usr/local/lib/ruby/gems/1.8/gems/tidy-1.1.2/lib/tidy/tidybuf.rb.org 2010-07-24 16:57:16.000000000 +0900
--- /usr/local/lib/ruby/gems/1.8/gems/tidy-1.1.2/lib/tidy/tidybuf.rb 2010-07-24 17:01:36.000000000 +0900
***************
*** 11,16 ****
--- 11,17 ----
# Mimic TidyBuffer.
#
TidyBuffer = struct [
+ "int* allocator",
"byte* bp",
"uint size",
"uint allocated",
***************
*** 24,30 ****
# Free current contents and zero out.
#
def free
! Tidylib.buf_free(@struct)
end
# Convert to array.
--- 25,31 ----
# Free current contents and zero out.
#
def free
! Tidylib.buf_free(@struct) if @struct.bp
end
# Convert to array.
世間の情報だと後半のパッチは不要のようなんだけどなんだっけこれ?
最近のコメント