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

 
 

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

Submitted by:  Andrew Lombardi <kinabalu>
Submitted on:  Fri 24 Apr 2009 05:27:53 AM UTC  
 
Category: pluginsSeverity: 3 - Normal
Item Group: crashStatus: Fixed
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Open/Closed: Closed
Release: 0.3.0IRC nick: kinabalu

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

Now empty pointer values are checked in nicklist API functions.

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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
  • -unavailable- added by flashcode (Posted a comment)
  • -unavailable- added by kinabalu (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 06 Sep 2009 06:43:32 PM UTCflashcodeRelease2.1-dev=>0.3.0
      Open/ClosedOpen=>Closed
    Fri 24 Apr 2009 07:43:04 PM UTCflashcodeStatusNeed Info=>Fixed
    Fri 24 Apr 2009 04:22:15 PM UTCkinabaluAttached File-=>Added kbtimeout.py, #18008
    Fri 24 Apr 2009 08:42:56 AM UTCflashcodeCategoryirc plugin=>plugins
      StatusNone=>Need Info
      Assigned toNone=>flashcode

    Back to the top


    Powered by Savane 3.1-cleanup1