Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202499 - sys-devel/gdb-6.7.1 attempts to access files in /var/tmp/portage when issued a list command
Summary: sys-devel/gdb-6.7.1 attempts to access files in /var/tmp/portage when issued ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-16 18:20 UTC by Michael Sullivan
Modified: 2007-12-17 01:18 UTC (History)
0 users

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 Michael Sullivan 2007-12-16 18:20:03 UTC
sys-devel/gdb attempts to access files in /var/tmp/portage (long since deleted) when issued a 'list' command.

Reproducible: Always

Steps to Reproduce:
1. I open my battle executable (personal project)
2. Issue 'list'
3.

Actual Results:  
michael@camille ourrpg $ gdb battle
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) list
1       /var/tmp/portage/sys-libs/glibc-2.5-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/csu/crti.S: No such file or directory.
        in /var/tmp/portage/sys-libs/glibc-2.5-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/csu/crti.S
(gdb)
Comment 1 SpanKY gentoo-dev 2007-12-16 20:19:53 UTC
you built things with -g and so the file paths contained in the debug data refers to where the source files were when compiled -- in /var/tmp/portage
Comment 2 Michael Sullivan 2007-12-16 20:22:13 UTC
How do I build things without -g?  I just use emerge...
Comment 3 SpanKY gentoo-dev 2007-12-16 21:03:57 UTC
-g is a CFLAG.  if you didnt use it, it may just always happen.  either way, it isnt a bug, it's expected behavior.
Comment 4 Michael Sullivan 2007-12-16 22:51:12 UTC
How do I fix it?
Comment 5 SpanKY gentoo-dev 2007-12-17 01:18:03 UTC
why dont you actually run to a file you care about.  when you first run an ELF application, the entry point is the crt code of glibc.  this is not a bug, this is exactly how it's supposed to be.  do a "b main" and run to your main function or wherever and then do a list *from that context*.

if you need help using gdb, please ask on the forums.  bugzilla is not a support forum.