Различия
Здесь показаны различия между двумя версиями данной страницы.
Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
wiki:руководство_по_ubuntu_server:дополнения:reporting-bugs [2012/11/11 11:23] [Уведомление об ошибках с помощью ubuntu-bug] |
wiki:руководство_по_ubuntu_server:дополнения:reporting-bugs [2012/11/11 23:43] (текущий) [Ссылки] |
||
---|---|---|---|
Строка 84: | Строка 84: | ||
</code> | </code> | ||
.. После просмотра отчета вы будете снова перенаправлены в меню с вопросом что вы собираетесь делать с отчетом. | .. После просмотра отчета вы будете снова перенаправлены в меню с вопросом что вы собираетесь делать с отчетом. | ||
- | -- **Keep Report File** | + | -- **Keep Report File** Выбор сохранения файла отчета приведет к записи в файл собранной информации. Этот файл может быть использован для дальнейшей регистрации отчета об ошибке или передан для отчета иной Ubuntu системе. Чтобы передать файл отчета, просто укажите его в качестве аргумента команды **ubuntu-bug**: |
+ | .. <code> | ||
+ | What would you like to do? Your options are: | ||
+ | S: Send report (1.7 KiB) | ||
+ | V: View report | ||
+ | K: Keep report file for sending later or copying to somewhere else | ||
+ | C: Cancel | ||
+ | Please choose (S/V/K/C): k | ||
+ | Problem report file: /tmp/apport.postgresql.v4MQas.apport | ||
- | Keep Report File Selecting Keep Report File causes the gathered information to be written to a file. This file can then be used to later file a bug report or transferred to a different Ubuntu system for reporting. To submit the report file, simply give it as an argument to the ubuntu-bug command: | + | ubuntu-bug /tmp/apport.postgresql.v4MQas.apport |
- | What would you like to do? Your options are: | + | *** Send problem report to the developers? |
- | S: Send report (1.7 KiB) | + | ... |
- | V: View report | + | </code> |
- | K: Keep report file for sending later or copying to somewhere else | + | -- **Cancel** Выбор отмены приведет к тому, что собранная информация будет сброшена. |
- | C: Cancel | + | |
- | Please choose (S/V/K/C): k | + | |
- | Problem report file: /tmp/apport.postgresql.v4MQas.apport | + | |
- | + | ||
- | ubuntu-bug /tmp/apport.postgresql.v4MQas.apport | + | |
- | + | ||
- | *** Send problem report to the developers? | + | |
- | ... | + | |
- | + | ||
- | Cancel Selecting Cancel causes the collected information to be discarded. | + | |
====Уведомление о крушениях приложений==== | ====Уведомление о крушениях приложений==== | ||
- | The software package that provides the ubuntu-bug utility, apport, can be configured to trigger when applications crash. This is disabled by default, as capturing a crash can be resource intensive depending on how much memory the application that crashed was using as apport captures and processes the core dump. | + | Пакет программ, который предоставляет утилиту ubuntu-bug, **apport** может быть настроен на срабатывание при падении приложений. По умолчанию это отключено, поскольку захват падений может быть достаточно ресурсоёмким в зависимости от памяти, которую использовало упавшее приложение, а **apport** захватывает и обрабатывает память ядра. |
- | Configuring apport to capture information about crashing applications requires a couple of steps. First, gdb needs to be installed; it is not installed by default in Ubuntu Server Edition. | + | Настройка **apport** на захват информации о падении приложений требует выполнения пары шагов. Сначала требуется установить **gdb**; он не устанавливается по умолчанию при установке Ubuntu Server Edition. |
+ | <code>sudo apt-get install gdb</code> | ||
- | sudo apt-get install gdb | + | Смотрите раздел [[wiki:руководство_по_ubuntu_server:управление_пакетами|Управление пакетами]] для дополнительной информации об управлении пакетами в Ubuntu. |
- | + | ||
- | See Package Management for more information about managing packages in Ubuntu. | + | |
- | + | ||
- | Once you have ensured that gdb is installed, open the file /etc/default/apport in your text editor, and change the enabled setting to be 1 like so: | + | |
+ | Как только вы убедитесь, что **gdb** установлен, откройте файл /etc/default/apport в вашем текстовом редакторе и измените настройку **enabled** в 1, как показано ниже: | ||
+ | <code> | ||
# set this to 0 to disable apport, or to 1 to enable it | # set this to 0 to disable apport, or to 1 to enable it | ||
# you can temporarily override this with | # you can temporarily override this with | ||
Строка 122: | Строка 119: | ||
# set maximum core dump file size (default: 209715200 bytes == 200 MB) | # set maximum core dump file size (default: 209715200 bytes == 200 MB) | ||
maxsize=209715200 | maxsize=209715200 | ||
+ | </code> | ||
- | Once you have completed editing /etc/default/apport, start the apport service: | + | Как только вы завершите редактирование /etc/default/apport, запустите сервис: |
- | + | <code>sudo start apport</code> | |
- | sudo start apport | + | |
- | + | ||
- | After an application crashes, use the apport-cli command to search for the existing saved crash report information: | + | |
+ | После падения приложения используйте команду **apport-cli** для поиска информации о сохраненном отчете падения: | ||
+ | <code> | ||
apport-cli | apport-cli | ||
Строка 143: | Строка 140: | ||
C: Cancel | C: Cancel | ||
Please choose (R/I/C): | Please choose (R/I/C): | ||
+ | </code> | ||
- | Selecting Report Problem will walk you through similar steps as when using ubuntu-bug. One important difference is that a crash report will be marked as private when filed on Launchpad, meaning that it will be visible to only a limited set of bug triagers. These triagers will review the gathered data for private information before making the bug report publicly visible. | + | Выбор **Report Problem** (сообщить о проблеме) проведет вас по шагам, аналогичным при использовании **ubuntu-bug**. Одним важным отличием будет то, что отчет о падении будет помечен как частный (private) при регистрации на Launchpad, что означает что он будет виден только ограниченному количеству сортировщиков. Эти сортировщики будут просматривать собранные данные на наличие частной информации перед тем как отчет об ошибке станет публично доступным. |
====Ссылки==== | ====Ссылки==== | ||
- | See the Reporting Bugs Ubuntu wiki page. | + | -- Посетите страницу [[https://help.ubuntu.com/community/ReportingBugs|Reporting Bugs Ubuntu wiki]]. |
- | + | -- Также смотрите страницу [[https://wiki.ubuntu.com/Apport|Apport]] для дополнительной полезной информации. Часть информации касается использования графического интерфейса. | |
- | Also, the Apport page has some useful information. Though some of it pertains to using a GUI. | + | |
---- | ---- |