<< 花火 | top | ruby 1.8.7-p248でnet/httpのフリーズ >>

Ruby interface to HTML Tidy LibraryのSegmantation fault対策パッチ

tag: ruby
/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.

世間の情報だと後半のパッチは不要のようなんだけどなんだっけこれ?

2010/08/08 16:21更新

この記事にコメントする:
:
:(spamよけのダミーです。入力しないでください)

この記事のトラックバックURL: http://www.sonorilo.net/tb/2744

タグ

www.flickr.com
This is a Flickr badge showing public items from suzukis tagged with japan. Make your own badge here.

最近の話題 RSS feed

最近のコメント

この日記のはてなブックマーク数
メール("no-spam."を削除してください)