diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-12-13 11:01:04 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-12-13 11:01:04 +0100 |
commit | b95e91e1a212be4515b236d46e9d9917b0bd8a1e (patch) | |
tree | 803030704319c6a9a7b120bd34f2099fc37dd73d /doc/ja | |
parent | 3dea65aa05ed662269ca847e7557e5c4f85e5d8e (diff) | |
download | weechat-b95e91e1a212be4515b236d46e9d9917b0bd8a1e.zip |
doc: add command to run WeeChat with address sanitizer (user's guide)
Diffstat (limited to 'doc/ja')
-rw-r--r-- | doc/ja/weechat_user.ja.adoc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/ja/weechat_user.ja.adoc b/doc/ja/weechat_user.ja.adoc index 8341c4f55..23f0104ff 100644 --- a/doc/ja/weechat_user.ja.adoc +++ b/doc/ja/weechat_user.ja.adoc @@ -401,6 +401,10 @@ $ cmake .. -DCMAKE_BUILD_TYPE=Debug ---- // TRANSLATION MISSING +[[build_debug_address_sanitizer]] +==== Build with debug options and address sanitizer + +// TRANSLATION MISSING You can additionally enable the address sanitizer, which causes WeeChat to crash immediately in case of problem: @@ -413,7 +417,15 @@ $ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_C You should enable address sanitizer only if you're trying to cause a crash, this is not recommended in production. -バイナリパッケージをインストールする場合は、_weechat-dbg_ パッケージをインストールしてください。 +// TRANSLATION MISSING +Then once compiled and installed, you must run WeeChat like this: + +---- +$ ASAN_OPTIONS="detect_odr_violation=0 log_path=asan.log" weechat +---- + +// TRANSLATION MISSING +In case of crash, the backtrace is in file `asan.log`. [[core_files]] ==== Core ファイル |