1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

doc: add command to run WeeChat with address sanitizer (user's guide)

This commit is contained in:
Sébastien Helleu
2020-12-13 11:01:04 +01:00
parent 3dea65aa05
commit b95e91e1a2
6 changed files with 72 additions and 7 deletions
+13 -1
View File
@@ -397,6 +397,10 @@ Bei der Kompilierung mit CMake muss folgende Option gesetzt werden:
$ cmake .. -DCMAKE_BUILD_TYPE=Debug
----
// TRANSLATION MISSING
[[build_debug_address_sanitizer]]
==== Build with debug options and address sanitizer
Sie können zusätzlich den Adressbereiniger aktivieren, der bei Problemen sofort
zum Absturz von WeeChat führt:
@@ -408,7 +412,15 @@ $ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_C
Sie sollten die Adressbereinigung nur aktivieren, wenn Sie versuchen, einen
Absturz zu provozieren. Dies wird im produktivem Einsatz nicht empfohlen.
Wird ein Binärpaket genutzt dann muss zusätzlich das Paket _weechat-dbg_ installiert werden.
// 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 Dateien
+10 -1
View File
@@ -390,6 +390,9 @@ If you're compiling with CMake:
$ cmake .. -DCMAKE_BUILD_TYPE=Debug
----
[[build_debug_address_sanitizer]]
==== Build with debug options and address sanitizer
You can additionally enable the address sanitizer, which causes WeeChat to
crash immediately in case of problem:
@@ -401,7 +404,13 @@ $ 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.
If you installed a binary package, then install package _weechat-dbg_.
Then once compiled and installed, you must run WeeChat like this:
----
$ ASAN_OPTIONS="detect_odr_violation=0 log_path=asan.log" weechat
----
In case of crash, the backtrace is in file `asan.log`.
[[core_files]]
==== Core files
+10 -2
View File
@@ -401,6 +401,9 @@ Si vous compilez avec CMake :
$ cmake .. -DCMAKE_BUILD_TYPE=Debug
----
[[build_debug_address_sanitizer]]
==== Construction avec options de debug et la vérification des adresses
Vous pouvez aussi activer la vérification des adresses (« address sanitizer »),
ce qui provoquera immédiatement un plantage de WeeChat en cas de problème :
@@ -412,8 +415,13 @@ $ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_C
Vous ne devriez activer la vérification des adresses que si vous essayez de
provoquer un plantage, ceci n'est pas recommandé en production.
Si vous avez installé un paquet binaire, alors installez le paquet
_weechat-dbg_.
Une fois compilé et installé, vous devez lancer WeeChat comme ceci :
----
$ ASAN_OPTIONS="detect_odr_violation=0 log_path=asan.log" weechat
----
En cas de plantage, la trace est dans le fichier `asan.log`.
[[core_files]]
==== Fichiers core
+13 -1
View File
@@ -434,6 +434,10 @@ Se si compila con CMake:
$ 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:
@@ -447,7 +451,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.
Se è stato installato il pacchetto binario, installare il pacchetto _weechat-gdb_.
// 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]]
==== File core
+13 -1
View File
@@ -400,6 +400,10 @@ CMake でコンパイルする場合:
$ 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 ファイル
+13 -1
View File
@@ -399,6 +399,10 @@ Jeśli kompilujesz z użyciem CMake:
$ cmake .. -DCMAKE_BUILD_TYPE=Debug
----
// TRANSLATION MISSING
[[build_debug_address_sanitizer]]
==== Build with debug options
// TRANSLATION MISSING
You can additionally enable the address sanitizer, which causes WeeChat to
crash immediately in case of problem:
@@ -412,7 +416,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.
Jeśli zainstalowałeś pakiet binarny, doinstaluj paczkę _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]]
==== CPliki core