特殊:Badtitle/NS100:DebuggingProgramCrash:修订间差异
小 正在重定向到 UbuntuWiki:DebuggingProgramCrash |
小无编辑摘要 |
||
(未显示同一用户的4个中间版本) | |||
第1行: | 第1行: | ||
#REDIRECT [[UbuntuWiki:DebuggingProgramCrash]] | #REDIRECT [[UbuntuWiki:DebuggingProgramCrash]] | ||
<!-- | <!-- | ||
<ol><li>Check if the package has a debugging version available. In general, debugging packages will be named with a `-dbg` suffix | |||
</li><li>If not, you can generally* build one this way:</li></ol> | |||
a. Install the development scripts: | * Something to keep in mind: if you would like to create a build you're going to need to have the relevant deb-src lines in your /etc/apt/sources.list | ||
<pre><nowiki> | <ol><li>Install the development scripts: <pre><nowiki> | ||
sudo apt-get install devscripts | sudo apt-get install devscripts | ||
</nowiki></pre> | </nowiki></pre> | ||
</li><li>Install the build-time dependencies for the package: <pre><nowiki> | |||
<pre><nowiki> | |||
sudo apt-get build-dep <package> | sudo apt-get build-dep <package> | ||
</nowiki></pre> | </nowiki></pre> | ||
</li><li>Build .debs for debugging: <pre><nowiki> | |||
<pre><nowiki> | |||
export DEB_BUILD_OPTIONS="debug nostrip noopt" | export DEB_BUILD_OPTIONS="debug nostrip noopt" | ||
sudo apt-get source -b <package> | sudo apt-get source -b <package> | ||
</nowiki></pre> | </nowiki></pre> | ||
</li><li>Install the needed .debs (they will be in the current working directory if the build succeeded): <pre><nowiki> | |||
<pre><nowiki> | |||
sudo debi <package>*.changes | sudo debi <package>*.changes | ||
</nowiki></pre> | </nowiki></pre> | ||
<ol><li>Now you make a [[UbuntuWiki:Backtrace|Backtrace]]. | |||
</li><li>You can also run [[UbuntuWiki:Valgrind|Valgrind]], if the program crashes with a "Segmentation fault" or "Bus error". | |||
</li><li>Optionally, you may be asked to produce an [[UbuntuWiki:Strace|Strace]].</li></ol> | |||
* most of the packages support the build of debugging version in this way. If that doesn't work for a package you can open a bug against it. | * most of the packages support the build of debugging version in this way. If that doesn't work for a package you can open a bug against it. | ||
--> | --> | ||
{{From|https://help.ubuntu.com/community/DebuggingProgramCrash}} | {{From|https://help.ubuntu.com/community/DebuggingProgramCrash}} |
2009年5月12日 (二) 16:22的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/DebuggingProgramCrash }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/af | • {{#if: UbuntuHelp:DebuggingProgramCrash|Afrikaans| [[::DebuggingProgramCrash/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/ar | • {{#if: UbuntuHelp:DebuggingProgramCrash|العربية| [[::DebuggingProgramCrash/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/az | • {{#if: UbuntuHelp:DebuggingProgramCrash|azərbaycanca| [[::DebuggingProgramCrash/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/bcc | • {{#if: UbuntuHelp:DebuggingProgramCrash|جهلسری بلوچی| [[::DebuggingProgramCrash/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/bg | • {{#if: UbuntuHelp:DebuggingProgramCrash|български| [[::DebuggingProgramCrash/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/br | • {{#if: UbuntuHelp:DebuggingProgramCrash|brezhoneg| [[::DebuggingProgramCrash/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/ca | • {{#if: UbuntuHelp:DebuggingProgramCrash|català| [[::DebuggingProgramCrash/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/cs | • {{#if: UbuntuHelp:DebuggingProgramCrash|čeština| [[::DebuggingProgramCrash/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/de | • {{#if: UbuntuHelp:DebuggingProgramCrash|Deutsch| [[::DebuggingProgramCrash/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/el | • {{#if: UbuntuHelp:DebuggingProgramCrash|Ελληνικά| [[::DebuggingProgramCrash/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/es | • {{#if: UbuntuHelp:DebuggingProgramCrash|español| [[::DebuggingProgramCrash/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/fa | • {{#if: UbuntuHelp:DebuggingProgramCrash|فارسی| [[::DebuggingProgramCrash/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/fi | • {{#if: UbuntuHelp:DebuggingProgramCrash|suomi| [[::DebuggingProgramCrash/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/fr | • {{#if: UbuntuHelp:DebuggingProgramCrash|français| [[::DebuggingProgramCrash/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/gu | • {{#if: UbuntuHelp:DebuggingProgramCrash|ગુજરાતી| [[::DebuggingProgramCrash/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/he | • {{#if: UbuntuHelp:DebuggingProgramCrash|עברית| [[::DebuggingProgramCrash/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/hu | • {{#if: UbuntuHelp:DebuggingProgramCrash|magyar| [[::DebuggingProgramCrash/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/id | • {{#if: UbuntuHelp:DebuggingProgramCrash|Bahasa Indonesia| [[::DebuggingProgramCrash/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/it | • {{#if: UbuntuHelp:DebuggingProgramCrash|italiano| [[::DebuggingProgramCrash/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/ja | • {{#if: UbuntuHelp:DebuggingProgramCrash|日本語| [[::DebuggingProgramCrash/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/ko | • {{#if: UbuntuHelp:DebuggingProgramCrash|한국어| [[::DebuggingProgramCrash/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/ksh | • {{#if: UbuntuHelp:DebuggingProgramCrash|Ripoarisch| [[::DebuggingProgramCrash/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/mr | • {{#if: UbuntuHelp:DebuggingProgramCrash|मराठी| [[::DebuggingProgramCrash/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/ms | • {{#if: UbuntuHelp:DebuggingProgramCrash|Bahasa Melayu| [[::DebuggingProgramCrash/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/nl | • {{#if: UbuntuHelp:DebuggingProgramCrash|Nederlands| [[::DebuggingProgramCrash/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/no | • {{#if: UbuntuHelp:DebuggingProgramCrash|norsk| [[::DebuggingProgramCrash/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/oc | • {{#if: UbuntuHelp:DebuggingProgramCrash|occitan| [[::DebuggingProgramCrash/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/pl | • {{#if: UbuntuHelp:DebuggingProgramCrash|polski| [[::DebuggingProgramCrash/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/pt | • {{#if: UbuntuHelp:DebuggingProgramCrash|português| [[::DebuggingProgramCrash/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/ro | • {{#if: UbuntuHelp:DebuggingProgramCrash|română| [[::DebuggingProgramCrash/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/ru | • {{#if: UbuntuHelp:DebuggingProgramCrash|русский| [[::DebuggingProgramCrash/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/si | • {{#if: UbuntuHelp:DebuggingProgramCrash|සිංහල| [[::DebuggingProgramCrash/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/sq | • {{#if: UbuntuHelp:DebuggingProgramCrash|shqip| [[::DebuggingProgramCrash/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/sr | • {{#if: UbuntuHelp:DebuggingProgramCrash|српски / srpski| [[::DebuggingProgramCrash/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/sv | • {{#if: UbuntuHelp:DebuggingProgramCrash|svenska| [[::DebuggingProgramCrash/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/th | • {{#if: UbuntuHelp:DebuggingProgramCrash|ไทย| [[::DebuggingProgramCrash/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/tr | • {{#if: UbuntuHelp:DebuggingProgramCrash|Türkçe| [[::DebuggingProgramCrash/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/vi | • {{#if: UbuntuHelp:DebuggingProgramCrash|Tiếng Việt| [[::DebuggingProgramCrash/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/yue | • {{#if: UbuntuHelp:DebuggingProgramCrash|粵語| [[::DebuggingProgramCrash/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/zh | • {{#if: UbuntuHelp:DebuggingProgramCrash|中文| [[::DebuggingProgramCrash/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/zh-hans | • {{#if: UbuntuHelp:DebuggingProgramCrash|中文(简体)| [[::DebuggingProgramCrash/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DebuggingProgramCrash | UbuntuHelp:DebuggingProgramCrash | {{#if: | :}}DebuggingProgramCrash}}/zh-hant | • {{#if: UbuntuHelp:DebuggingProgramCrash|中文(繁體)| [[::DebuggingProgramCrash/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:DebuggingProgramCrash|:DebuggingProgramCrash|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :DebuggingProgramCrash/zh | | {{#ifexist: DebuggingProgramCrash/zh | | {{#ifeq: {{#titleparts:DebuggingProgramCrash|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:DebuggingProgramCrash|1|-1|}} | zh | | }}