* Michael Vogt <[EMAIL PROTECTED]> [2006-05-11 12:18]: > > What do you mean exactly? A strace? > > The crash in the http method is strange because the code in there > didn't change from 0.6.43.3 to 0.6.44. A strace might be good
attached. > the output of: > # apt-get update -o Debug::PkgAcquire=true > as well. sh-3.1# apt-get update -o Debug::PkgAcquire=true Fetching http://ftp.es.debian.org/debian/dists/sid/Release.gpg to /var/lib/apt/lists/partial/ftp.es.debian.org_debian_dists_sid_Release.gpg Queue is: http:ftp.es.debian.org Get:1 http://ftp.es.debian.org sid Release.gpg [189B] Dequeuing /var/lib/apt/lists/partial/ftp.es.debian.org_debian_dists_sid_Release.gpg E: Method http has died unexpectedly! sh-3.1# > If it segfauls a gdb backtrace (if possible). apt-get itself doesn't segfault - it just prints an error. Or is there a separate program that apt-get calls which might segfault? > Access to a sparc machine might be good as well if the above does > not give us a clue. If the strace isn't helpful, I can give you access to the chroot on the sparc machine which shows this problem. > Does it help if it is run with: > # apt-get update -o Acquire::PDiffs=true No: sh-3.1# apt-get update -o Acquire::PDiffs=true Get:1 http://ftp.es.debian.org sid Release.gpg [189B] E: Method http has died unexpectedly! sh-3.1# -- Martin Michlmayr http://www.cyrius.com/
execve("/usr/bin/apt-get", ["apt-get", "update"], [/* 14 vars */]) = 0 uname({sys="Linux", node="bilbao", ...}) = 0 brk(0) = 0x3f150 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=13915, ...}) = 0 mmap(NULL, 13915, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7001c000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libapt-pkg-libc6.3-6.so.3.11", O_RDONLY) = 3 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\1\263"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=677292, ...}) = 0 mmap(NULL, 742080, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7002c000 mprotect(0x700ce000, 78528, PROT_NONE) = 0 mmap(0x700dc000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa0000) = 0x700dc000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libstdc++.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\3\357"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=879376, ...}) = 0 mmap(NULL, 966816, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x700e4000 mprotect(0x701b6000, 106656, PROT_NONE) = 0 mmap(0x701c4000, 32768, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd0000) = 0x701c4000 mmap(0x701cc000, 16544, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x701cc000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libm.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\0\232"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=543180, ...}) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7001a000 mmap(NULL, 607472, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x701d4000 mprotect(0x70256000, 74992, PROT_NONE) = 0 mmap(0x70264000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x80000) = 0x70264000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libgcc_s.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\0\30"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=43024, ...}) = 0 mmap(NULL, 107776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7026c000 mprotect(0x70276000, 66816, PROT_NONE) = 0 mmap(0x70286000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa000) = 0x70286000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\2\0\0\0\1\0\1\312"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1190940, ...}) = 0 mmap(NULL, 1260632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x70288000 mprotect(0x703a2000, 105560, PROT_NONE) = 0 mmap(0x703b2000, 32768, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11a000) = 0x703b2000 mmap(0x703ba000, 7256, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x703ba000 close(3) = 0 mprotect(0x703b2000, 8192, PROT_READ) = 0 mprotect(0x70264000, 8192, PROT_READ) = 0 mprotect(0x701c4000, 8192, PROT_READ) = 0 munmap(0x7001c000, 13915) = 0 brk(0) = 0x3f150 brk(0x61150) = 0x61150 brk(0x62000) = 0x62000 open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/usr/share/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en_US/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en.utf8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/locale/en/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/var/lib/apt/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("/etc/apt/apt.conf.d/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/etc/apt/apt.conf.d/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x4) = 4 fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 getdents64(4, /* 3 entries */, 8192) = 80 stat64("/etc/apt/apt.conf.d/70debconf", {st_mode=S_IFREG|0644, st_size=182, ...}) = 0 getdents64(4, /* 0 entries */, 8192) = 0 close(4) = 0 open("/etc/apt/apt.conf.d/70debconf", O_RDONLY|O_LARGEFILE) = 4 read(4, "// Pre-configure all packages wi"..., 8191) = 182 read(4, "", 8191) = 0 close(4) = 0 stat64("/etc/apt/apt.conf", 0xeffff768) = -1 ENOENT (No such file or directory) stat64("/var/lib/dpkg/status", {st_mode=S_IFREG|0644, st_size=131690, ...}) = 0 stat64("/usr/bin/dpkg", {st_mode=S_IFREG|0755, st_size=326084, ...}) = 0 stat64("/etc/debian_version", {st_mode=S_IFREG|0644, st_size=17, ...}) = 0 ioctl(1, TCSETAF or SNDCTL_TMR_SELECT, 0xeffff924) = -1 ENOTTY (Inappropriate ioctl for device) rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 0x702b9d84, 4294967295) = 0 rt_sigaction(SIGWINCH, {0x14324, [WINCH], SA_RESTART}, {SIG_DFL}, 0x702b9d84, 4294967295) = 0 ioctl(1, 0x40087468, 0xeffff9d0) = -1 ENOTTY (Inappropriate ioctl for device) stat64("/etc/apt/sources.list", {st_mode=S_IFREG|0644, st_size=94, ...}) = 0 open("/etc/apt/sources.list", O_RDONLY|O_LARGEFILE) = 4 read(4, "deb http://ftp.es.debian.org/deb"..., 8191) = 94 read(4, "", 8191) = 0 close(4) = 0 stat64("/etc/apt/sources.list.d/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/etc/apt/sources.list.d/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x4) = 4 fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 getdents64(4, /* 2 entries */, 8192) = 48 getdents64(4, /* 0 entries */, 8192) = 0 close(4) = 0 open("/var/lib/apt/lists/lock", O_RDWR|O_CREAT|O_TRUNC, 0640) = 4 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 fcntl64(4, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0 gettimeofday({1147344853, 852794}, NULL) = 0 gettimeofday({1147344853, 853118}, NULL) = 0 stat64("/var/lib/apt/lists/partial/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("/var/cache/apt/archives/partial/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 unlink("/var/lib/apt/lists/partial/ftp.es.debian.org_debian_dists_sid_Release.gpg") = 0 stat64("/var/lib/apt/lists/ftp.es.debian.org_debian_dists_sid_Release.gpg", 0xeffff148) = -1 ENOENT (No such file or directory) stat64("/usr/lib/apt/methods/http", {st_mode=S_IFREG|0755, st_size=36576, ...}) = 0 pipe([5, 6]) = 5 pipe([7, 8]) = 7 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 fcntl64(7, F_SETFD, FD_CLOEXEC) = 0 fcntl64(8, F_SETFD, FD_CLOEXEC) = 0 fork() = 15721 fcntl64(5, F_GETFL) = 0 (flags O_RDONLY) fcntl64(5, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 fcntl64(8, F_GETFL) = 0x1 (flags O_WRONLY) fcntl64(8, F_SETFL, O_WRONLY|O_NONBLOCK) = 0 close(6) = 0 close(7) = 0 select(6, [5], NULL, NULL, NULL) = 1 (in [5]) read(5, "100 Capabilities\nVersion: 1.2\nPi"..., 64000) = 64 close(5) = 0 close(8) = 0 --- SIGCHLD (Child exited) @ 0 (0) --- kill(15721, SIGINT) = 0 waitpid(15721, [{WIFEXITED(s) && WEXITSTATUS(s) == 100}], 0) = 15721 stat64("/usr/lib/apt/methods/http", {st_mode=S_IFREG|0755, st_size=36576, ...}) = 0 pipe([5, 6]) = 5 pipe([7, 8]) = 7 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 fcntl64(7, F_SETFD, FD_CLOEXEC) = 0 fcntl64(8, F_SETFD, FD_CLOEXEC) = 0 fork() = 15730 fcntl64(5, F_GETFL) = 0 (flags O_RDONLY) fcntl64(5, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 fcntl64(8, F_GETFL) = 0x1 (flags O_WRONLY) fcntl64(8, F_SETFL, O_WRONLY|O_NONBLOCK) = 0 close(6) = 0 close(7) = 0 select(6, [5], NULL, NULL, NULL) = 1 (in [5]) read(5, "100 Capabilities\nVersion: 1.2\nPi"..., 64000) = 64 stat64("/var/lib/apt/lists/partial/ftp.es.debian.org_debian_dists_sid_Release.gpg", 0xefffefa8) = -1 ENOENT (No such file or directory) gettimeofday({1147344853, 959769}, NULL) = 0 gettimeofday({1147344853, 959999}, NULL) = 0 select(9, [5], [8], NULL, {0, 500000}) = 1 (out [8], left {0, 500000}) write(8, "601 Configuration\nConfig-Item: A"..., 1257) = 1257 select(6, [5], [], NULL, {0, 500000}) = 1 (in [5], left {0, 490000}) read(5, "102 Status\nURI: http://ftp.es.de"..., 64000) = 112 select(6, [5], [], NULL, {0, 500000}) = 0 (Timeout) select(6, [5], [], NULL, {0, 500000}) = 0 (Timeout) select(6, [5], [], NULL, {0, 500000}) = 0 (Timeout) select(6, [5], [], NULL, {0, 500000}) = 1 (in [5], left {0, 200000}) read(5, "102 Status\nURI: http://ftp.es.de"..., 64000) = 128 select(6, [5], [], NULL, {0, 500000}) = 1 (in [5], left {0, 410000}) read(5, "102 Status\nURI: http://ftp.es.de"..., 64000) = 100 select(6, [5], [], NULL, {0, 500000}) = 1 (in [5], left {0, 410000}) --- SIGCHLD (Child exited) @ 0 (0) --- read(5, "200 URI Start\nURI: http://ftp.es"..., 64000) = 129 fstat64(1, {st_mode=S_IFREG|0644, st_size=10559, ...}) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7001c000 write(1, "Get:1 http://ftp.es.debian.org s"..., 54Get:1 http://ftp.es.debian.org sid Release.gpg [189B] ) = 54 stat64("/var/lib/apt/lists/partial/ftp.es.debian.org_debian_dists_sid_Release.gpg", {st_mode=S_IFREG|0644, st_size=189, ...}) = 0 select(6, [5], [], NULL, {0, 500000}) = 1 (in [5], left {0, 500000}) read(5, "", 64000) = 0 waitpid(15730, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGBUS}], 0) = 15730 close(5) = 0 close(8) = 0 gettimeofday({1147344855, 976613}, NULL) = 0 close(-1) = -1 EBADF (Bad file descriptor) close(-1) = -1 EBADF (Bad file descriptor) close(4) = 0 write(2, "E: ", 3E: ) = 3 write(2, "Method http has died unexpectedl"..., 34Method http has died unexpectedly!) = 34 write(2, "\n", 1 ) = 1 close(3) = 0 munmap(0x7001c000, 8192) = 0 exit_group(100) = ?