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

/script update causes a crash if the source of a script is being viewed #177

nyuszika7h opened this Issue Aug 21, 2014 · 0 comments


None yet
2 participants
Copy link

nyuszika7h commented Aug 21, 2014

I did /script update while a script buffer was open with the source of a script, and WeeChat crashed.


#0  0x00007fcb5c1dc545 in raise () from /lib/x86_64-linux-gnu/
No symbol table info available.
#1  0x00007fcb5c1df7c0 in abort () from /lib/x86_64-linux-gnu/
No symbol table info available.
#2  0x000000000042630b in weechat_shutdown (return_code=1, crash=1) at /home/nyuszika7h/src/github/weechat/weechat/src/core/weechat.c:487
No locals.
#3  0x000000000044a630 in debug_sigsegv () at /home/nyuszika7h/src/github/weechat/weechat/src/core/wee-debug.c:170
No locals.
#4  <signal handler called>
No symbol table info available.
#5  0x00007fcb598fff48 in script_buffer_display_detail_script (script=0xb5d99f0) at /home/nyuszika7h/src/github/weechat/weechat/src/plugins/script/script-buffer.c:587
        tm = 0x48e0cb
        str_time = "0\373Rb\377\177\000\000 \352R\\\313\177", '\000' <repeats 11 times>, "S\026\001\000\000\000\000З\273\004\000\000\000\000\377\371Rb\377\177\000\000Y\340\026\001\000\000\000\000\300\363\345\\\313\177\000\000\000\000\000\000\000\000\000\000\b\000\000\000\000\000\000\000tm\305\\\313\177\000\000/\215)\\\313\177\000\000(\000\000\000\060\000\000\000\020\372Rb\377\177\000\000P\371Rb\377\177\000\000%S\026\001\000\000\000\000%S\026\001\000\000\000\000\240\371Rb\377\177\000\000%S\026\001\000\000\000\000%S\026\001\000\000\000\000\003", '\000' <repeats 15 times>, "P\000\000\000\000\000\000\000\b", '\000' <repeats 13 times>, "51\000\371Rb\377\177\000\000?\000\000\000\000\000\000\000\000S\026\001\000\000\000\000З\273\004\000\000\000\000p\372Rb\377\177\000\000"...
        labels = {0x7fcb5990a3d1 "Script", 0x7fcb5990a3d8 "Version", 0x7fcb5990a3e0 "Version loaded", 0x7fcb5990a3ef "Author", 0x7fcb5990a3f6 "License", 0x7fcb5990a3fe "Description", 0x7fcb5990a40a "Tags",
          0x7fcb5990a40f "Status", 0x7fcb5990a416 "Date added", 0x7fcb5990a421 "Date updated", 0x7fcb5990a42e "URL", 0x7fcb5990a432 "MD5", 0x7fcb5990a436 "Requires", 0x7fcb5990a43f "Min WeeChat", 0x7fcb5990a44b "Max WeeChat",
        i = 15
        length = 11
        max_length = 14
        line = 0
        list = 0x7fff6252fcf0
        ptr_item = 0xb9c64c0
#6  0x00007fcb59900c7d in script_buffer_refresh (clear=1) at /home/nyuszika7h/src/github/weechat/weechat/src/plugins/script/script-buffer.c:759
        ptr_script = 0xad60e20
        line = 0
        str_title = "Alt+key/input: v=back to list d=jump to diff", '\000' <repeats 12 times>, "(\000o\000\000\000\000\000\066\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000d\000\000\000\000\000\000\000\220\342\026\001\000\000\000\000\360\n\000\000\000\000\000\000\232\313!\\\313\177\000\000\000\000\000\000\000\000\000\000\360\n\000\000\000\000\000\000\300\321\304\\\313\177\000\000\362\321\304\\\313\177\000\000\001\000\000\000\000\000\000\000\065", '\000' <repeats 15 times>, "\032\324\304\\\313\177\000\000P\304\026\001\000\000\000\000\000$\277H\214\021\062\000\300\321\304\\\313\177\000\000p\374\345\\\313\177\000\000\000\000\000\000\000\000\000\000\065\000\000\000\000\000\000\000\b\000\000\000\000\000\000\000(\000o"...
#7  0x00007fcb599086b6 in script_repo_file_update_process_cb (data=0x0, command=0xb7d33a0 "\220H;\a", return_code=0, out=0x0, err=0x0) at /home/nyuszika7h/src/github/weechat/weechat/src/plugins/script/script-repo.c:1427
        quiet = 0
#8  0x0000000000453606 in hook_process_send_buffers (hook_process=0x8f77420, callback_rc=0) at /home/nyuszika7h/src/github/weechat/weechat/src/core/wee-hook.c:1628
        size = 0
#9  0x0000000000453993 in hook_process_timer_cb (arg_hook_process=0x8f77420, remaining_calls=300) at /home/nyuszika7h/src/github/weechat/weechat/src/core/wee-hook.c:1763
        hook_process = 0x8f77420
        status = 0
        rc = 0
#10 0x000000000045262b in hook_timer_exec () at /home/nyuszika7h/src/github/weechat/weechat/src/core/wee-hook.c:1141
        tv_time = {tv_sec = 1408648178, tv_usec = 213926}
        ptr_hook = 0xb859c10
        next_hook = 0x0
#11 0x0000000000473023 in gui_main_loop () at /home/nyuszika7h/src/github/weechat/weechat/src/gui/curses/gui-curses-main.c:390
        hook_fd_keyboard = 0x4bb9730
        tv_timeout = {tv_sec = 0, tv_usec = 0}
        read_fds = {fds_bits = {0 <repeats 16 times>}}
        write_fds = {fds_bits = {0 <repeats 16 times>}}
        except_fds = {fds_bits = {0 <repeats 16 times>}}
        max_fd = 205
        ready = 0
#12 0x000000000042556b in main (argc=5, argv=0x7fff625305d8) at /home/nyuszika7h/src/github/weechat/weechat/src/gui/curses/main.c:41

@flashcode flashcode added the bug label Aug 21, 2014

@nyuszika7h nyuszika7h changed the title Crash with /script update with 'script' buffer open /script update causes a crash if the source of a script is being viewed Aug 21, 2014

@flashcode flashcode added this to the 1.0.1 milestone Aug 21, 2014

@flashcode flashcode self-assigned this Aug 21, 2014

flashcode added a commit that referenced this issue Aug 22, 2014

script: fix crash on "/script update" if a script detail is displayed…
… in buffer (closes #177)

(cherry picked from commit 067f310)

@flashcode flashcode closed this in 067f310 Aug 22, 2014

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.