Bug#227447: Wishlist: apt-get should be strace-able
> Can you be a bit more specific? stracing apt works fine for me.
Here is a log (generated from within an emacs shell) of what happens when
I call strace on apt... Final result is a hanging process that does not
return to the shell and can only be killed by a -9. But I also have seen
different results where even starting the http apt access method did not
work.
System is a recent Debian Woody, kernel 2.4.24-grsec, grsecurity ACLs
disabled for update, platform i386.
However, I also just managed to strace an "apt-get install binstats" -
this gave a few I/O errors like the one below, but seemed to work
otherwise.
fortress:/home/tf# strace -f -o /tmp/apt.trace -e trace=file apt-get update
setbpt: ptrace(PTRACE_POKETEXT, ...): Input/output error
Process 26574 attached
Process 26574 detached
setbpt: ptrace(PTRACE_POKETEXT, ...): Input/output error
Process 63 attached
setbpt: ptrace(PTRACE_POKETEXT, ...): Input/output error
Process 26557 attached
setbpt: ptrace(PTRACE_POKETEXT, ...): Input/output error
Process 17242 attached
0% [Working]
Hit http://non-us.debian.org stable/non-US/main Packages
3% [Connecting to ftp.de.debian.org (141.76.2.4)] [Connecting to security.debian
Hit http://non-us.debian.org stable/non-US/main Release
6% [Connecting to ftp.de.debian.org (141.76.2.4)] [Connecting to security.debian
Hit http://non-us.debian.org stable/non-US/contrib Packages
9% [Connecting to ftp.de.debian.org (141.76.2.4)] [Connecting to security.debian
Hit http://non-us.debian.org stable/non-US/contrib Release
12% [Connecting to ftp.de.debian.org (141.76.2.4)] [Connecting to security.debia
Hit http://non-us.debian.org stable/non-US/non-free Packages
Hit http://non-us.debian.org stable/non-US/non-free Release
Hit http://non-us.debian.org stable/non-US/main Sources
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/contrib Sources
Hit http://non-us.debian.org stable/non-US/contrib Release
32% [Connecting to ftp.de.debian.org (141.76.2.4)] [Waiting for file] [Connectin
Hit http://non-us.debian.org stable/non-US/non-free Sources
35% [Waiting for file] [Waiting for file]
Hit http://non-us.debian.org stable/non-US/non-free Release
38% [Waiting for file] [Waiting for file]
Hit http://ftp.de.debian.org stable/main Packages
41% [Waiting for file]
Hit http://ftp.de.debian.org stable/main Release
Hit http://ftp.de.debian.org stable/non-free Packages
Hit http://ftp.de.debian.org stable/non-free Release
Hit http://ftp.de.debian.org stable/contrib Packages
Hit http://ftp.de.debian.org stable/contrib Release
Hit http://ftp.de.debian.org stable/main Sources
Hit http://ftp.de.debian.org stable/main Release
Hit http://ftp.de.debian.org stable/non-free Sources
Hit http://ftp.de.debian.org stable/non-free Release
Get:1 http://security.debian.org stable/updates/main Packages [173kB]
1% [1 Packages 2392/173kB 1%]
Hit http://ftp.de.debian.org stable/contrib Sources
4% [1 Packages 7864/173kB 4%]
Hit http://ftp.de.debian.org stable/contrib Release
4% [1 Packages 7864/173kB 4%]setbpt: ptrace(PTRACE_POKETEXT, ...): Input/output error
Process 18403 attached
Process 18403 detached
Process 10603 suspended
Process 26557 detached
Process 17242 detached
Process 63 detached
Reply to: