bugWeeChat - Bugs: bug #31089, Crash when loading plugin

 
 

bug #31089: Crash when loading plugin

Submitted by:  None
Submitted on:  Mon 20 Sep 2010 07:46:29 PM UTC  
 
Category: pluginsSeverity: 3 - Normal
Item Group: crashStatus: Invalid
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Leon BogaertOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 0.3.3
IRC nick: LBo

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 21 Sep 2010 12:01:21 PM UTC, comment #4:

WeeChat is mono-threads. Threads are forbidden in plugins or scripts. If you want to have another process (with fork), use hook_process in API.
This is not a bug, this is mono-thread by design ;)

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Tue 21 Sep 2010 11:57:09 AM UTC, comment #3:

I've created a minimal python script that makes weechat crash.
Running it from the commandline works

#import gobject
#gobject.threads_init()
#import weechat
import threading

#weechat.register("windicate", "Leon Bogaert", "0.0.1", "GPL",
# "fills the indicator applet", "", "")

def do_something():
print "Doing something"

threading.Thread(target=do_something).start()

Anonymous
Mon 20 Sep 2010 09:55:40 PM UTC, comment #2:

OK. If it's not a bug it can be closed.

Thanks for the response!

Anonymous
Mon 20 Sep 2010 08:47:10 PM UTC, comment #1:

WeeChat can crash if your plugin does something illegal, this is not a bug, this is because WeeChat does minimum checks on plugin calls to API (for fast execution of plugins).

Please tell me which plugin is causing problem.

And I need backtrace with gdb, please look at documentation for info on gdb and crash reports.

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Mon 20 Sep 2010 07:46:29 PM UTC, original submission:

I thought to work on an old plugin I never finished. But when I try to load this plugin now, weechat crashes :(

In the past this plugin loaded just fine. I've tried weechat 0.3.2 and 0.3.3

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #21510:  weechat_crash_20100920_11928.log.tar.bz2 added by None (45KiB - application/x-bzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 16 Jan 2011 10:09:58 AM UTCflashcodeOpen/ClosedOpen=>Closed
    Tue 21 Sep 2010 05:56:38 AM UTCflashcodeStatusNeed Info=>Invalid
    Mon 20 Sep 2010 08:47:10 PM UTCflashcodeStatusNone=>Need Info
      Assigned toNone=>flashcode
    Mon 20 Sep 2010 07:47:31 PM UTCNoneAttached File-=>Added weechat_crash_20100920_11928.log.tar.bz2, #21510

    Back to the top


    Powered by Savane 3.1-cleanup1