bugWeeChat - Bugs: bug #26328, invoking...

 
 

bug #26328: invoking weechat.nicklist_search_nick with a buffer pointer crashes weechat

Submitter:  Andrew Lombardi <kinabalu>
Submitted:  Fri 24 Apr 2009 05:27:53 AM UTC
   
 
Category:  plugins Severity:  3 - Normal
Item Group:  crash Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Open/Closed:  Closed
Release:  * 0.3.0 IRC nick:  kinabalu
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 24 Apr 2009 07:43:04 PM UTC, comment #3: 

Now empty pointer values are checked in nicklist API functions.

Sebastien Helleu <flashcode>
Group administrator
Fri 24 Apr 2009 04:23:19 PM UTC, comment #2: 

The plugin as uploaded will reproduce the bug.  Just type /kbt nick 30 and it dumps.

Andrew Lombardi <kinabalu>
Fri 24 Apr 2009 08:42:56 AM UTC, comment #1: 

Please give me way to reproduce that bug, for example script which crashes weechat, and exact arguments you give to function nicklist_search_nick.

Another useful info would be backtrace displayed by gdb on core file (you should enable core file if you don't have one). WeeChat backtrace is not very useful, arguments for functions are not displayed.

Sebastien Helleu <flashcode>
Group administrator
Fri 24 Apr 2009 05:27:53 AM UTC, original submission:  

Here's the crash:

======= WeeChat backtrace =======
(written by WeeChat 0.2.7-dev, compiled on Apr 16 2009 14:47:56)
001  /home/kinabalu/weechat-devel/src/core/wee-backtrace.c:169 [function weechat_backtrace]
002  /home/kinabalu/weechat-devel/src/core/wee-debug.c:154 [function debug_sigsegv]
003  ??:0 [function killpg]
004  /home/kinabalu/weechat-devel/src/gui/gui-nicklist.c:281 [function gui_nicklist_search_nick]
005  /home/kinabalu/weechat-devel/src/plugins/scripts/python/weechat-python-api.c:4552 [function weechat_python_api_nicklist_search_nick]
addr2line: '0xb8940': No such file
addr2line: '0xb9a86': No such file
addr2line: '0x5970a': No such file
addr2line: '0x37f23': No such file
addr2line: '0x38147': No such file
addr2line: '0x3c502': No such file
012  /home/kinabalu/weechat-devel/src/plugins/scripts/python/weechat-python.c:159 [function weechat_python_exec]
013  /home/kinabalu/weechat-devel/src/plugins/scripts/python/weechat-python-api.c:2656 [function weechat_python_api_hook_command_cb]
014  /home/kinabalu/weechat-devel/src/core/wee-hook.c:646 [function hook_command_exec]
015  /home/kinabalu/weechat-devel/src/core/wee-input.c:114 [function input_exec_command]
016  /home/kinabalu/weechat-devel/src/core/wee-input.c:198 [function input_data]
017  /home/kinabalu/weechat-devel/src/gui/gui-input.c:305 [function gui_input_return]
018  /home/kinabalu/weechat-devel/src/core/wee-command.c:1632 [function command_input]
019  /home/kinabalu/weechat-devel/src/core/wee-hook.c:646 [function hook_command_exec]
020  /home/kinabalu/weechat-devel/src/core/wee-input.c:114 [function input_exec_command]
021  /home/kinabalu/weechat-devel/src/core/wee-input.c:198 [function input_data]
022  /home/kinabalu/weechat-devel/src/gui/gui-keyboard.c:502 [function gui_keyboard_pressed]
023  /home/kinabalu/weechat-devel/src/gui/curses/gui-curses-keyboard.c:321 [function gui_keyboard_flush]
024  /home/kinabalu/weechat-devel/src/gui/curses/gui-curses-keyboard.c:442 [function gui_keyboard_read_cb]
025  /home/kinabalu/weechat-devel/src/core/wee-hook.c:1127 [function hook_fd_exec]
026  /home/kinabalu/weechat-devel/src/gui/curses/gui-curses-main.c:302 [function gui_main_loop]
027  /home/kinabalu/weechat-devel/src/core/weechat.c:419 [function main]
028  ??:0 [function __libc_start_main]
029  ??:0 [function _start]
======= End of  backtrace =======
zsh: abort      /usr/local/bin/weechat-curses

Andrew Lombardi <kinabalu>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #18008:  kbtimeout.py added by kinabalu (1KiB - text/x-python-script - the nicklist_search_nick causes a core dump)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by kinabalu (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-09-06 flashcode Release3.3-dev 0.3.0
        Open/ClosedOpen Closed
    2009-04-24 flashcode StatusNeed Info Fixed
    2009-04-24 kinabalu Attached File- Added kbtimeout.py, #18008
    2009-04-24 flashcode Categoryirc plugin plugins
        StatusNone Need Info
        Assigned toNone flashcode

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code