This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug corefiles/15810] New: gdb 7.3.1/7.5 unlink files
- From: "kdevel at vogtner dot de" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 01 Aug 2013 12:16:16 +0000
- Subject: [Bug corefiles/15810] New: gdb 7.3.1/7.5 unlink files
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15810
Bug ID: 15810
Summary: gdb 7.3.1/7.5 unlink files
Product: gdb
Version: 7.5
Status: NEW
Severity: normal
Priority: P2
Component: corefiles
Assignee: unassigned at sourceware dot org
Reporter: kdevel at vogtner dot de
./configure --prefix=/tmp/loc2
make
make install
strace -fFeunlink /tmp/loc2/bin/gdb
Output:
unlink("/tmp/loc2/share/gdb/python/gdb/command/__init__.pyc") = 0
unlink("/tmp/loc2/share/gdb/python/gdb/command/explore.pyc") = 0
unlink("/tmp/loc2/share/gdb/python/gdb/command/prompt.pyc") = 0
unlink("/tmp/loc2/share/gdb/python/gdb/prompt.pyc") = 0
unlink("/tmp/loc2/share/gdb/python/gdb/command/pretty_printers.pyc") = 0
Starting or running gdb shall never unlink files in the fs subtree where
software is installed. gdb at least of version 7.3.1 performs some additional
unlinks in the part of the filesystem where the compiler is installed when the
"run" command is issued:
unlink </.../gcc-4.6.4/lib64/../share/gcc-4.6.4/python/libstdcxx/__init__.pyc>
unlink
</.../gcc-4.6.4/lib64/../share/gcc-4.6.4/python/libstdcxx/v6/__init__.pyc>
unlink
</.../gcc-4.6.4/lib64/../share/gcc-4.6.4/python/libstdcxx/v6/printers.pyc>
which cannot be straced but be intercepted with a preloaded shared object.
All this can be circumvented by using "--with-python=no" as configuration
parameter.
--
You are receiving this mail because:
You are on the CC list for the bug.