/[gentoo]/xml/htdocs/doc/en/bugzilla-howto.xml
Gentoo

Diff of /xml/htdocs/doc/en/bugzilla-howto.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 Revision 1.17
1<?xml version="1.0" encoding="UTF-8"?> 1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/bugzilla-howto.xml,v 1.16 2009/03/05 12:13:20 jkt Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/bugzilla-howto.xml,v 1.17 2010/02/28 06:14:00 nightmorph Exp $ -->
4 4
5<guide link="/doc/en/bugzilla-howto.xml"> 5<guide>
6<title>Gentoo Bug Reporting Guide</title> 6<title>Gentoo Bug Reporting Guide</title>
7 7
8<author title="Author"> 8<author title="Author">
9 <mail link="chriswhite@gentoo.org">Chris White</mail> 9 <mail link="chriswhite@gentoo.org">Chris White</mail>
10</author> 10</author>
18 18
19<!-- The content of this document is licensed under the CC-BY-SA license --> 19<!-- The content of this document is licensed under the CC-BY-SA license -->
20<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 20<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
21<license/> 21<license/>
22 22
23<version>1.14</version> 23<version>1.15</version>
24<date>2009-03-05</date> 24<date>2010-02-27</date>
25 25
26<chapter> 26<chapter>
27<title>Introduction</title> 27<title>Introduction</title>
28<section> 28<section>
29<title>Preface</title> 29<title>Preface</title>
49segmentation faults. Whatever the cause, the fact still remains that such a bug 49segmentation faults. Whatever the cause, the fact still remains that such a bug
50must be fixed. Here is a few examples of such bugs. 50must be fixed. Here is a few examples of such bugs.
51</p> 51</p>
52 52
53<pre caption="A run time error"> 53<pre caption="A run time error">
54$ <i>./bad_code `perl -e 'print Ax100'`</i> 54$ <i>./bad_code `perl -e 'print "A"x100'`</i>
55Segmentation fault 55Segmentation fault
56</pre> 56</pre>
57 57
58<pre caption="An emerge failure"> 58<pre caption="An emerge failure">
59/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/backward/backward_warning.h:32:2: 59/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3/backward/backward_warning.h:32:2:
175Let's say we have a program here called "bad_code". Some person claims that the 175Let's say we have a program here called "bad_code". Some person claims that the
176program crashes and provides an example. You go ahead and test it out: 176program crashes and provides an example. You go ahead and test it out:
177</p> 177</p>
178 178
179<pre caption="Breaking The Program"> 179<pre caption="Breaking The Program">
180$ <i>./bad_code `perl -e 'print Ax100'`</i> 180$ <i>./bad_code `perl -e 'print "A"x100'`</i>
181Segmentation fault 181Segmentation fault
182</pre> 182</pre>
183 183
184<p> 184<p>
185It seems this person was right. Since the program is obviously broken, we have 185It seems this person was right. Since the program is obviously broken, we have
187we run <c>gdb</c> with <c>--args</c>, then give it the full program with 187we run <c>gdb</c> with <c>--args</c>, then give it the full program with
188arguments like shown: 188arguments like shown:
189</p> 189</p>
190 190
191<pre caption="Running Our Program Through GDB"> 191<pre caption="Running Our Program Through GDB">
192$ <i>gdb --args ./bad_code `perl -e 'print Ax100'`</i> 192$ <i>gdb --args ./bad_code `perl -e 'print "A"x100'`</i>
193GNU gdb 6.3 193GNU gdb 6.3
194Copyright 2004 Free Software Foundation, Inc. 194Copyright 2004 Free Software Foundation, Inc.
195GDB is free software, covered by the GNU General Public License, and you are 195GDB is free software, covered by the GNU General Public License, and you are
196welcome to change it and/or distribute copies of it under certain conditions. 196welcome to change it and/or distribute copies of it under certain conditions.
197Type "show copying" to see the conditions. 197Type "show copying" to see the conditions.

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20