summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-03-13 14:22:24 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-03-13 14:22:24 +0100
commit5233ceed44931393a551dfa1efeb2a7798f90fde (patch)
treee57b4b2453380e16137bd20357cc99a69213c222 /doc/en
parent86b1ab20b56568ecf7e4599daa0afe6db5f2ac98 (diff)
downloadweechat-5233ceed44931393a551dfa1efeb2a7798f90fde.zip
Add chapter "Report crashs" in user guide
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/weechat_user.en.txt99
1 files changed, 95 insertions, 4 deletions
diff --git a/doc/en/weechat_user.en.txt b/doc/en/weechat_user.en.txt
index 1dd9587d0..26e1947c9 100644
--- a/doc/en/weechat_user.en.txt
+++ b/doc/en/weechat_user.en.txt
@@ -172,7 +172,97 @@ If you're using autotools (and not cmake), execute this script:
$ ./autogen.sh
----------------------------------------
-Then follow instructions for source package (see <<source_package>>).
+Then follow instructions for source package (see
+<<source_package,source package>>).
+
+[[report_crashs]]
+Report crashs
+~~~~~~~~~~~~~
+
+If you experienced crashs, or if you want to report any future WeeChat crash,
+you have to:
+
+* compile it with debug info (or install binary package with debug info)
+* enable 'core' files on your system
+* install gdb
+
+[[debug_info]]
+Debug info
+^^^^^^^^^^
+
+If you're compiling with cmake:
+
+----------------------------------------
+$ cmake .. -DCMAKE_BUILD_TYPE=Debug
+----------------------------------------
+
+If you're compiling with autotools, debug is default (`--with-debug=1`).
+
+If you installed a binary package, then install package 'weechat-dbg'.
+
+[[core_files]]
+Core files
+^^^^^^^^^^
+
+To enable 'core' files, you have to use `ulimit` command.
+
+For example under Linux with 'bash' shell, add this line to your `~/.bashrc`:
+
+----------------------------------------
+ulimit -c unlimited
+----------------------------------------
+
+Or max size:
+
+----------------------------------------
+ulimit -c 200000
+----------------------------------------
+
+[[gdb_backtrace]]
+Get backtrace with gdb
+^^^^^^^^^^^^^^^^^^^^^^
+
+When WeeChat crashes, your system will create a file 'core' or 'core.12345'
+('12345' is process id).
+This file is created in directory where you have run WeeChat (this is *not*
+directory where WeeChat is installed!).
+
+For example if 'weechat-curses' is installed in '/usr/bin/' and 'core' file is
+in '/home/xxx/', then run gdb with this command:
+
+----------------------------------------
+gdb /usr/bin/weechat-curses /home/xxx/core
+----------------------------------------
+
+Then under gdb, use command `bt` to display backtrace.
+You will see something like that:
+
+----------------------------------------
+(gdb) bt
+#0 0xffffe424 in __kernel_vsyscall ()
+#1 0xb76208e0 in raise () from /lib/i686/cmov/libc.so.6
+#2 0xb7623e15 in abort () from /lib/i686/cmov/libc.so.6
+#3 0x08083940 in weechat_shutdown (return_code=1, crash=1) at /some_path/src/core/weechat.c:357
+#4 0x08098aaa in debug_sigsegv () at /some_path/src/core/wee-debug.c:155
+#5 <signal handler called>
+#6 0xb7656681 in vsnprintf () from /lib/i686/cmov/libc.so.6
+#7 0xb763dd22 in snprintf () from /lib/i686/cmov/libc.so.6
+#8 0xb7258674 in irc_protocol_cmd_join (server=0x8165138, command=0xb727c187 "join", argc=3, argv=0x889e840, argv_eol=0x889e858)
+ at /some_path/src/plugins/irc/irc-protocol.c:520
+#9 0xb7265c6e in irc_protocol_recv_command (server=0x8165138, entire_line=0x889e7e0 ":nick!nick@127.0.0.1 JOIN :#test",
+ command=0x889d080 "JOIN") at /some_path/src/plugins/irc/irc-protocol.c:4077
+#10 0xb726a2c6 in irc_server_msgq_flush () at /some_path/src/plugins/irc/irc-server.c:1614
+#11 0xb726a4da in irc_server_recv_cb (data=0x8165138, fd=8) at /some_path/src/plugins/irc/irc-server.c:1691
+#12 0x0809a797 in hook_fd_exec (read_fds=0xbfcf8074, write_fds=0xbfcf7ff4, exception_fds=0xbfcf7f74)
+ at /some_path/src/core/wee-hook.c:1133
+#13 0x08060af0 in gui_main_loop () at /some_path/src/gui/curses/gui-curses-main.c:330
+#14 0x08083b10 in main (argc=3, argv=0xbfcf81d4) at /some_path/src/core/weechat.c:419
+----------------------------------------
+
+You must report this trace to developers, and tell them what action caused this
+crash.
+
+Thank you for your help!
[[usage]]
@@ -206,7 +296,7 @@ Command line arguments:
Disable plugins auto-load
-s, --no-script::
- Disable scirpts auto-load
+ Disable scripts auto-load
-v, --version::
Display WeeChat version
@@ -225,7 +315,8 @@ created, with default options. The default configuration file is:
'~/.weechat/weechat.conf'.
You can edit this file at your convenience to configure WeeChat or you can set
-parameters with `/set` command in WeeChat (see <<weechat_commands>>).
+parameters with `/set` command in WeeChat (see
+<<weechat_commands,WeeChat commands>>).
[[screen_layout]]
Screen layout
@@ -1038,7 +1129,7 @@ IRC plugin
The IRC plugin is designed to chat through IRC protocol with other people.
It is multi-servers, and offers all supported IRC commands including DCC chat
-and file transfer (via xfer plugin, see <<xfer_plugin>>).
+and file transfer (via xfer plugin, see <<xfer_plugin,Xfer plugin>>).
[[irc_command_line_options]]
Command line options