Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288531 - hardened: gdb can't resolve symbols
Summary: hardened: gdb can't resolve symbols
Status: RESOLVED DUPLICATE of bug 265693
Alias: None
Product: Documentation
Classification: Unclassified
Component: Project-specific documentation (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-11 10:14 UTC by kavol
Modified: 2009-10-11 20:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kavol 2009-10-11 10:14:47 UTC
Hi.

Recently, I started to experience a segfault in Apache when accessing Trac (using mod_python method). As the logs do not show anything useful, I wanted to get at least a backtrace to provide to the developers. But I am unable to get anything useful.

After reading http://www.gentoo.org/proj/en/hardened/hardenedfaq.xml#hardeneddebug I've added LDFLAGS="-nopie" to make.conf

I also have "-ggdb" in CFLAGS and "splitdebug" in FEATURES.

I've recompiled the packages using emerge -e mod_python

Now when I run Apache under gdb, cause it to crash and use the backtrace command, still I get only a bunch of question marks instead of function names.

Please, update the documentation so that it includes steps that actually work to get a meaningful backtrace.
Comment 1 Thomas Sachau gentoo-dev 2009-10-11 12:19:52 UTC
Which packages where compiled without pie, with ggdb CFLAG and with splitdebug FEATURE?
Comment 2 kavol 2009-10-11 17:48:22 UTC
(In reply to comment #1)
> Which packages where compiled without pie, with ggdb CFLAG and with splitdebug
> FEATURE?

this is the list:

# emerge -pve mod_python                        

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/portage-2.1.6.13  USE="-build -doc -epydoc (-selinux)" LINGUAS="-pl" 0 kB
[ebuild   R   ] sys-libs/ncurses-5.6-r2  USE="unicode -debug -doc -gpm -minimal -nocxx -profile -trace" 0 kB
[ebuild   R   ] sys-libs/zlib-1.2.3-r1  0 kB                                                                
[ebuild   R   ] virtual/libintl-0  0 kB                                                                     
[ebuild   R   ] sys-devel/gnuconfig-20090203  0 kB                                                          
[ebuild   R   ] dev-libs/expat-2.0.1-r2  0 kB                                                               
[ebuild   R   ] virtual/libiconv-0  0 kB                                                                    
[ebuild   R   ] app-misc/pax-utils-0.1.19  USE="-caps" 0 kB                                                 
[ebuild   R   ] app-admin/python-updater-0.7  0 kB                                                          
[ebuild   R   ] sys-devel/autoconf-wrapper-6  0 kB                                                          
[ebuild   R   ] sys-devel/automake-wrapper-3-r1  0 kB                                                       
[ebuild   R   ] app-arch/lzma-utils-4.32.7  USE="-nocxx" 0 kB                                               
[ebuild   R   ] app-misc/mime-types-7  0 kB                                                                 
[ebuild   R   ] dev-db/sqlite-2.8.16-r4  USE="nls -doc -tcl" 0 kB                                           
[ebuild   R   ] dev-db/mysql-init-scripts-1.2  0 kB                                                         
[ebuild   R   ] dev-util/pkgconfig-0.23  USE="hardened" 0 kB                                                
[ebuild   R   ] app-shells/bash-4.0_p28  USE="net nls -afs -bashlogger -examples -plugins -vanilla" 0 kB    
[ebuild   R   ] sys-apps/sandbox-1.6-r2  0 kB                                                               
[ebuild   R   ] sys-devel/m4-1.4.12  USE="-examples" 0 kB                                                   
[ebuild   R   ] sys-process/procps-3.2.7  USE="(-n32)" 0 kB                                                 
[ebuild   R   ] sys-apps/debianutils-3.1.3  USE="-static" 0 kB                                              
[ebuild   R   ] virtual/acl-0  0 kB                                                                         
[ebuild   R   ] app-admin/perl-cleaner-1.05  0 kB                                                           
[ebuild   R   ] sys-devel/binutils-config-1.9-r4  0 kB                                                      
[ebuild   R   ] virtual/mysql-5.0  0 kB                                                                     
[ebuild   R   ] virtual/perl-Sys-Syslog-0.27  0 kB                                                          
[ebuild   R   ] virtual/perl-Storable-2.18  0 kB                                                            
[ebuild   R   ] dev-lang/perl-5.8.8-r5  USE="berkdb -build -debug -doc -gdbm -ithreads -perlsuid" 0 kB
[ebuild   R   ] perl-core/Test-Harness-3.10  0 kB
[ebuild   R   ] perl-core/PodParser-1.35  0 kB
[ebuild   R   ] perl-core/Sys-Syslog-0.27  0 kB
[ebuild   R   ] perl-core/Storable-2.18  0 kB
[ebuild   R   ] dev-perl/Net-Daemon-0.43  0 kB
[ebuild   R   ] dev-perl/PlRPC-0.2020-r1  0 kB
[ebuild   R   ] dev-perl/DBI-1.601  0 kB
[ebuild   R   ] sys-devel/autoconf-2.63-r1  USE="-emacs" 0 kB
[ebuild   R   ] sys-devel/automake-1.10.2  0 kB
[ebuild   R   ] sys-devel/gettext-0.17  USE="acl nls -doc -emacs -nocxx -openmp" 0 kB
[ebuild   R   ] sys-apps/texinfo-4.13  USE="nls -static" 0 kB
[ebuild   R   ] dev-libs/popt-1.14  USE="nls" 0 kB
[ebuild   R   ] sys-apps/diffutils-2.8.7-r2  USE="nls -static" 0 kB
[ebuild   R   ] sys-devel/flex-2.5.35  USE="nls -static" 0 kB
[ebuild   R   ] sys-apps/findutils-4.4.0  USE="nls (-selinux) -static" 0 kB
[ebuild   R   ] dev-perl/Locale-gettext-1.05  0 kB
[ebuild   R   ] sys-devel/binutils-2.18-r3  USE="nls (-gold) -multislot -multitarget -test -vanilla" 0 kB
[ebuild   R   ] sys-apps/help2man-1.36.4  USE="nls" 0 kB
[ebuild   R   ] sys-apps/ed-1.0  0 kB
[ebuild   R   ] sys-devel/libtool-2.2.6a  USE="-test -vanilla" 0 kB
[ebuild   R   ] sys-libs/readline-6.0_p3  0 kB
[ebuild   R   ] sys-libs/db-4.7.25_p4  USE="-doc -java -nocxx -tcl -test" 0 kB
[ebuild   R   ] sys-apps/attr-2.4.43  USE="nls" 0 kB
[ebuild   R   ] dev-libs/apr-1.3.8  USE="urandom -debug -doc -older-kernels-compatibility" 0 kB
[ebuild   R   ] dev-libs/libpcre-7.9-r1  USE="cxx (unicode) zlib -bzip2 -doc -static-libs" 0 kB
[ebuild   R   ] sys-apps/acl-2.2.47  USE="nls (-nfs)" 0 kB
[ebuild   R   ] dev-db/sqlite-3.6.17  USE="readline threadsafe -debug -doc -soundex -tcl" 0 kB
[ebuild   R   ] sys-devel/libperl-5.8.8-r2  USE="berkdb -debug -gdbm -ithreads" 0 kB
[ebuild   R   ] sys-apps/coreutils-7.5  USE="acl nls -caps -gmp (-selinux) -static -vanilla -xattr" 0 kB
[ebuild   R   ] sys-apps/sed-4.2  USE="acl nls -static" 0 kB
[ebuild   R   ] net-misc/rsync-3.0.6  USE="acl iconv -ipv6 -static -xattr -xinetd" 0 kB
[ebuild   R   ] dev-libs/openssl-0.9.8k  USE="zlib -bindist -gmp -kerberos -sse2 -test" 0 kB
[ebuild   R   ] app-misc/ca-certificates-20090709  0 kB
[ebuild   R   ] dev-db/mysql-5.0.70-r1  USE="berkdb perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal (-selinux) -static" 0 kB
[ebuild   R   ] dev-libs/apr-util-1.3.9  USE="berkdb mysql sqlite -doc -freetds -gdbm -ldap -odbc -postgres -sqlite3" 0 kB
[ebuild   R   ] dev-perl/DBD-mysql-4.00.5  0 kB
[ebuild   R   ] app-admin/apache-tools-2.2.11  USE="ssl" 0 kB
[ebuild   R   ] www-servers/apache-2.2.11-r2  USE="ssl -debug -doc -ldap (-selinux) -sni -static -suexec -threads" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker" 0 kB
[ebuild   R   ] app-admin/eselect-1.2.3  USE="bash-completion -doc" 0 kB
[ebuild   R   ] app-admin/eselect-python-20090824  0 kB
[ebuild   R   ] dev-lang/python-2.6.2-r1  USE="berkdb ncurses readline sqlite ssl threads xml -build -doc -examples -gdbm -ipv6 -tk -ucs2 -wininst" 0 kB
[ebuild   R   ] sys-apps/file-5.03  USE="python" 0 kB
[ebuild   R   ] dev-libs/libxml2-2.7.3-r2  USE="python readline -debug -doc -examples -ipv6 -test" 0 kB
[ebuild   R   ] www-apache/mod_python-3.3.1-r1  0 kB

Total: 72 packages (72 reinstalls), Size of downloads: 0 kB
Comment 3 Thomas Sachau gentoo-dev 2009-10-11 20:03:31 UTC

*** This bug has been marked as a duplicate of bug 265693 ***