On Fri, Jul 08, 2005 at 11:08:20AM +0900, Chris White wrote:
> After seeing the strange and unusual postings that we get sometimes in
> bugzilla.. We've had it!
Some comments after reading it.

Flags:
------
Please provide an example of CFLAGS/CXXFLAGS for users, possibly in the
code listing of 'Re-emergeing a package with debugging'.

FEATURES="nostrip" CFLAGS="-O2 -pipe -ggdb3" CXXFLAGS="-O2 -pipe -ggdb3" emerge 
package

-ggdb3 is more useful that just plain -g (-g expands to -ggdb1 on most
arches), as it includes #define stuff and some C++ things that can
be very hard to decipher with just plain -g.

Core dumps:
-----------
Also, please point out the value of setting the core-dump ulimit to a
reasonable size, and backtracing a core-dump instead of the application
directly. This is esp. applicable for things like mod_php where you
can't really run the binary directly under gdb.

Just basically set the core-dump ulimit (either commandline or via the
ulimit configurations), and then run the application, and afterwards do:
gdb ./bad_core COREFILE

Emerge errors:
--------------
Some builds, esp. PHP include a message in the final emerge message
(prefixed with !!) telling you to include a specific file (config.log
most often) with your bug report. Please mention this, and remind users
it is important!

-- 
Robin Hugh Johnson
E-Mail     : [EMAIL PROTECTED]
Home Page  : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ#       : 30269588 or 41961639
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

Attachment: pgpGzQOXTccfH.pgp
Description: PGP signature

Reply via email to