bugWeeChat - Bugs: bug #32095, weechat crashes after running for...


bug #32095: weechat crashes after running for several hours (backtrace attached)

Submitter:  None
Submitted:  Tue 11 Jan 2011 08:36:20 AM UTC
Category:  script API plugins Severity:  3 - Normal
Item Group:  crash Status:  Wont Fix
Privacy:  Public Assigned to:  flashcode
Originator Name:  Dorin ScutaraČ™u Originator Email:  * -email is unavailable-
Open/Closed:  Closed Release:  * 0.3.3
IRC nick:  dorins
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:
       No canned response available


Thu 13 Jan 2011 07:23:03 PM UTC, comment #3: 

Thank you for looking into this.

It seems to be a ruby issue, indeed: weechat hasn't crashed anymore since disabling the one ruby script that I was running. I'm glad to hear the problem is fixed in ruby 1.9.

Dorin <dorins>
Thu 13 Jan 2011 05:08:40 PM UTC, comment #2: 

As promised, the results of my investigations are:

1) the problems looks like a memory leak (or stack overflow, I don't know exactly) in ruby 1.8.x, when calling "rb_protect" many times

2) with ruby 1.9.1, there is no problem: looks like problem has been fixed in ruby 1.9.x

I just commited changes to compile fine with ruby >= 1.9.1.

So for me, it's a ruby 1.8.x problem, if you agree I'll close this bug (since I don't know how to fix problem for ruby 1.8.x in WeeChat).

Sebastien Helleu <flashcode>
Project Administrator
Tue 11 Jan 2011 08:58:48 AM UTC, comment #1: 


I can reproduce this bug with a test server I'm currently writing (weercd.py, which floods client with many messages in a short time).
With minbif_typing_notice.rb loaded, it crashes after some seconds of flood.
For now, I have no idea why it crashes (it's in ruby stuff), I'll look at problem and keep you informed of my investigations.

If you ever want to test with this flood server, let me know I'll send you by mail (not publicly available yet, it's under dev).

Sebastien Helleu <flashcode>
Project Administrator
Tue 11 Jan 2011 08:36:20 AM UTC, original submission:  

This has happened to me several times.

As far as I can tell it crashes somewhere in the ruby plugin code, so I'll try running without ruby scripts and see if crash goes away. The only ruby script that I have loaded is minbif_typing_notice.rb taken from here: http://www.weechat.org/scripts/source/stable/minbif_typing_notice.rb

I have the core file and weechat.log files at hand so I could upload those too after stripping out personal stuff.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #22389:  backtrace.txt added by None (4KiB - text/plain - gdb backtrace)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by dorins (Posted a comment)
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-23 flashcode Open/ClosedOpen Closed
    2011-01-13 flashcode StatusConfirmed Wont Fix
    2011-01-11 flashcode CategoryNone script API plugins
        StatusNone Confirmed
        Assigned toNone flashcode
    2011-01-11 None Attached File- Added backtrace.txt, #22389

    Back to the top

    Powered by Savane 3.9