Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command "/plugin reload" crashes WeeChat #364

Closed
flashcode opened this Issue Mar 20, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@flashcode
Copy link
Member

flashcode commented Mar 20, 2015

The command /plugin reload (or /plugin unload followed by /plugin autoload) crashes WeeChat version 1.2-dev (git: v1.1-161-g26f415f).

The backtrace shows a problem in Ruby plugin:

(gdb) bt
#0  0x00007ff57c0ace2c in _IO_vfprintf_internal (s=s@entry=0x15d3490, format=<optimized out>, 
    format@entry=0x4cb480 "  plugin. . . . . . . . . : 0x%lx ('%s')", ap=ap@entry=0x15d3608) at vfprintf.c:1642
#1  0x00007ff57c0d4459 in _IO_vsnprintf (string=0x1518580 "  plugin. . . . . . . . . : 0x1504f80 ('(null)')", maxlen=<optimized out>, 
    format=0x4cb480 "  plugin. . . . . . . . . : 0x%lx ('%s')", args=0x15d3608) at vsnprintf.c:119
#2  0x000000000045718a in log_printf (message=0x4cb480 "  plugin. . . . . . . . . : 0x%lx ('%s')")
    at /home/flashcode/src/weechat/dev/src/core/wee-log.c:142
#3  0x0000000000453b27 in hook_print_log () at /home/flashcode/src/weechat/dev/src/core/wee-hook.c:4263
#4  0x000000000044483a in debug_dump (crash=1) at /home/flashcode/src/weechat/dev/src/core/wee-debug.c:109
#5  0x00000000004448da in debug_sigsegv () at /home/flashcode/src/weechat/dev/src/core/wee-debug.c:153
#6  <signal handler called>
#7  0x00007ff5777e8fc9 in ?? ()
#8  0x00007ff5774de356 in ?? () from /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1
#9  0x00007ff5774e24c9 in rb_funcallv () from /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1
#10 0x00007ff57740186f in rb_io_write () from /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1
#11 0x00007ff5774076d4 in ?? () from /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1
#12 0x00007ff5773d4a5e in rb_warn () from /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1
#13 0x00007ff5774c27d9 in rb_const_set () from /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1
#14 0x00007ff57832b794 in weechat_plugin_init (plugin=0x1d52200, argc=0, argv=0x0)
    at /home/flashcode/src/weechat/dev/src/plugins/ruby/weechat-ruby.c:1158
#15 0x00000000004adfe0 in plugin_call_init (plugin=0x1d52200, argc=0, argv=0x0)
    at /home/flashcode/src/weechat/dev/src/plugins/plugin.c:368
#16 0x00000000004aff3a in plugin_auto_load (argc=0, argv=0x0) at /home/flashcode/src/weechat/dev/src/plugins/plugin.c:1052
#17 0x000000000042e0ad in command_plugin (data=0x0, buffer=0x14d9a30, argc=2, argv=0x1d8eec0, argv_eol=0x1d4cf80)
    at /home/flashcode/src/weechat/dev/src/core/wee-command.c:4453
#18 0x000000000044cb07 in hook_command_exec (buffer=0x14d9a30, any_plugin=1, plugin=0x0, string=0x1d4d010 "/plugin reload")
    at /home/flashcode/src/weechat/dev/src/core/wee-hook.c:803
#19 0x0000000000456133 in input_exec_command (buffer=0x14d9a30, any_plugin=1, plugin=0x0, string=0x1d91450 "/plugin reload ")
    at /home/flashcode/src/weechat/dev/src/core/wee-input.c:107
#20 0x00000000004565d9 in input_data (buffer=0x14d9a30, data=0x1d91430 "/plugin reload ")
    at /home/flashcode/src/weechat/dev/src/core/wee-input.c:270
#21 0x000000000049beb1 in gui_input_return (buffer=0x14d9a30) at /home/flashcode/src/weechat/dev/src/gui/gui-input.c:440
#22 0x0000000000429a95 in command_input (data=0x0, buffer=0x14d9a30, argc=2, argv=0x1d4a940, argv_eol=0x1d4aaf0)
    at /home/flashcode/src/weechat/dev/src/core/wee-command.c:2931
#23 0x000000000044cb07 in hook_command_exec (buffer=0x14d9a30, any_plugin=1, plugin=0x0, string=0x1d913f0 "/input return")
    at /home/flashcode/src/weechat/dev/src/core/wee-hook.c:803
#24 0x0000000000456133 in input_exec_command (buffer=0x14d9a30, any_plugin=1, plugin=0x0, string=0x1d8ef20 "/input return")
    at /home/flashcode/src/weechat/dev/src/core/wee-input.c:107
#25 0x00000000004565d9 in input_data (buffer=0x14d9a30, data=0x1d8ef00 "/input return")
    at /home/flashcode/src/weechat/dev/src/core/wee-input.c:270
#26 0x00000000004a0785 in gui_key_pressed (key_str=0x6ed780 <key_str> "\001M")
    at /home/flashcode/src/weechat/dev/src/gui/gui-key.c:1375
#27 0x000000000046d0a0 in gui_key_flush (paste=0) at /home/flashcode/src/weechat/dev/src/gui/curses/gui-curses-key.c:424
#28 0x000000000046d5a9 in gui_key_read_cb (data=0x0, fd=0) at /home/flashcode/src/weechat/dev/src/gui/curses/gui-curses-key.c:593
#29 0x000000000044dab7 in hook_fd_exec (read_fds=0x7fff0a45d920, write_fds=0x7fff0a45d8a0, exception_fds=0x7fff0a45d820)
    at /home/flashcode/src/weechat/dev/src/core/wee-hook.c:1356
#30 0x000000000046e056 in gui_main_loop () at /home/flashcode/src/weechat/dev/src/gui/curses/gui-curses-main.c:424
#31 0x0000000000420425 in main (argc=3, argv=0x7fff0a45dae8) at /home/flashcode/src/weechat/dev/src/gui/curses/main.c:41

@flashcode flashcode added the bug label Mar 20, 2015

@flashcode flashcode self-assigned this Mar 20, 2015

@flashcode flashcode added this to the 1.2 milestone Mar 20, 2015

@flashcode flashcode closed this in 6865892 Mar 21, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.