Package: cdebootstrap Version: 0.5.5ubuntu2 Severity: normal Hi,
sorry for reporting a bug in an ubuntu version. But I think this could also happen in debian. Attached is a strace output from cdebootstrap on lucid and for lucid. It seems the fork to run wget goes haywire and does not consider revents=POLLNVAL as an error. Instead it just loops poll() calls endlessly untill killed manualy. MfG Goswin PS: I've added lucid do /usr/share/cdebootstrap/suites. Please add that and maveric there. -- System Information: Debian Release: squeeze/sid APT prefers lucid-updates APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-23-server (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages cdebootstrap depends on: ii debian-archive-keyring 2009.01.31ubuntu1 GnuPG archive keys of the Debian a ii gpgv 1.4.10-2ubuntu1 GNU privacy guard - signature veri ii libc6 2.11.1-0ubuntu7.2 Embedded GNU C Library: Shared lib ii libdebian-installer-ex 0.68ubuntu3 Library of some extra debian-insta ii libdebian-installer4 0.68ubuntu3 Library of common debian-installer ii wget 1.12-1.1ubuntu2 retrieves files from the web cdebootstrap recommends no packages. cdebootstrap suggests no packages. -- no debconf information
execve("/usr/bin/cdebootstrap", ["cdebootstrap", "--debug", "-v", "-aamd64", "-q", "--keyring", "/scratch/ramdisk/build/build/chr"..., "lucid", "/scratch/ramdisk/build/build/chr"..., "http://ql-bak/debmirror/lucid/re"..., "-f", "minimal", "--include", "autofs", "--include", "binutils", ...], [/* 14 vars */]) = 0 brk(0) = 0x21e7000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb94a238000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=32778, ...}) = 0 mmap(NULL, 32778, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb94a22f000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libdebian-installer-extra.so.4", O_RDONLY) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\16\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=10544, ...}) = 0 mmap(NULL, 2105560, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb949e17000 mprotect(0x7fb949e19000, 2093056, PROT_NONE) = 0 mmap(0x7fb94a018000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7fb94a018000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libdebian-installer.so.4", O_RDONLY) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200P\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=53712, ...}) = 0 mmap(NULL, 2148904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb949c0a000 mprotect(0x7fb949c15000, 2097152, PROT_NONE) = 0 mmap(0x7fb949e15000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7fb949e15000 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\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\355\1\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1572232, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb94a22e000 mmap(NULL, 3680296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb949887000 mprotect(0x7fb949a01000, 2093056, PROT_NONE) = 0 mmap(0x7fb949c00000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x179000) = 0x7fb949c00000 mmap(0x7fb949c05000, 18472, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb949c05000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb94a22d000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb94a22c000 arch_prctl(ARCH_SET_FS, 0x7fb94a22d700) = 0 mprotect(0x7fb949c00000, 16384, PROT_READ) = 0 mprotect(0x7fb949e15000, 4096, PROT_READ) = 0 mprotect(0x7fb94a018000, 4096, PROT_READ) = 0 mprotect(0x60a000, 4096, PROT_READ) = 0 mprotect(0x7fb94a23a000, 4096, PROT_READ) = 0 munmap(0x7fb94a22f000, 32778) = 0 rt_sigaction(SIGHUP, {0x404900, [HUP], SA_RESTORER|SA_RESTART, 0x7fb9498baaf0}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGINT, {0x404900, [INT], SA_RESTORER|SA_RESTART, 0x7fb9498baaf0}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x7fb9498baaf0}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGTERM, {0x404900, [TERM], SA_RESTORER|SA_RESTART, 0x7fb9498baaf0}, {SIG_DFL, [], 0}, 8) = 0 brk(0) = 0x21e7000 brk(0x2208000) = 0x2208000 umask(022) = 022 getuid() = 0 stat("/scratch/ramdisk/build/build/chroot-amd64", {st_mode=S_IFDIR|0775, st_size=26, ...}) = 0 statfs("/scratch/ramdisk/build/build/chroot-amd64", {f_type=0x58465342, f_bsize=4096, f_blocks=3112960, f_bfree=781086, f_bavail=781086, f_files=12582912, f_ffree=12490677, f_fsid={64259, 0}, f_namelen=255, f_frsize=4096}) = 0 stat("/scratch/ramdisk/build/build/chroot-amd64", {st_mode=S_IFDIR|0775, st_size=26, ...}) = 0 open("/proc/mounts", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb94a237000 read(3, "rootfs / rootfs rw 0 0\nnone /sys"..., 1024) = 1024 read(3, "relatime,attr2,noquota 0 0\nauto."..., 1024) = 1024 read(3, "r=192.168.55.101 0 0\n", 1024) = 21 read(3, "", 1024) = 0 lseek(3, 0, SEEK_SET) = 0 read(3, "rootfs / rootfs rw 0 0\nnone /sys"..., 1024) = 1024 read(3, "relatime,attr2,noquota 0 0\nauto."..., 1024) = 1024 stat("/scratch", {st_mode=S_IFDIR|0755, st_size=116, ...}) = 0 close(3) = 0 munmap(0x7fb94a237000, 4096) = 0 lstat("/scratch", {st_mode=S_IFDIR|0755, st_size=116, ...}) = 0 lstat("/scratch/ramdisk", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0 lstat("/scratch/ramdisk/build", {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...}) = 0 lstat("/scratch/ramdisk/build/build", {st_mode=S_IFDIR|0775, st_size=79, ...}) = 0 lstat("/scratch/ramdisk/build/build/chroot-amd64", {st_mode=S_IFDIR|0775, st_size=26, ...}) = 0 fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb94a237000 write(1, "D: Init suite lucid\n", 20D: Init suite lucid ) = 20 open("/usr/share/cdebootstrap/suites", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=1209, ...}) = 0 mmap(NULL, 1209, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb94a236000 madvise(0x7fb94a236000, 1209, MADV_SEQUENTIAL) = 0 munmap(0x7fb94a236000, 1209) = 0 close(3) = 0 open("/usr/share/cdebootstrap/generic-ubuntu/action", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=704, ...}) = 0 mmap(NULL, 704, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb94a236000 madvise(0x7fb94a236000, 704, MADV_SEQUENTIAL) = 0 munmap(0x7fb94a236000, 704) = 0 close(3) = 0 open("/usr/share/cdebootstrap/generic-ubuntu/sections", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=268, ...}) = 0 mmap(NULL, 268, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb94a236000 madvise(0x7fb94a236000, 268, MADV_SEQUENTIAL) = 0 munmap(0x7fb94a236000, 268) = 0 close(3) = 0 open("/usr/share/cdebootstrap/generic-ubuntu/packages", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=314, ...}) = 0 mmap(NULL, 314, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb94a236000 madvise(0x7fb94a236000, 314, MADV_SEQUENTIAL) = 0 munmap(0x7fb94a236000, 314) = 0 close(3) = 0 stat("/scratch/ramdisk/build/build/chroot-amd64/etc/apt/trusted.gpg", {st_mode=S_IFREG|0600, st_size=601, ...}) = 0 write(1, "D: Using keyring /scratch/ramdis"..., 79D: Using keyring /scratch/ramdisk/build/build/chroot-amd64/etc/apt/trusted.gpg ) = 79 mkdir("/scratch/ramdisk/build/build/chroot-amd64//var", 0755) = -1 EEXIST (File exists) mkdir("/scratch/ramdisk/build/build/chroot-amd64//var/cache", 0755) = -1 EEXIST (File exists) mkdir("/scratch/ramdisk/build/build/chroot-amd64//var/cache/bootstrap", 0755) = -1 EEXIST (File exists) mkdir("/scratch/ramdisk/build/build/chroot-amd64//var", 0755) = -1 EEXIST (File exists) mkdir("/scratch/ramdisk/build/build/chroot-amd64//var/lib", 0755) = -1 EEXIST (File exists) mkdir("/scratch/ramdisk/build/build/chroot-amd64//var/lib/dpkg", 0755) = -1 EEXIST (File exists) open("/scratch/ramdisk/build/build/chroot-amd64//var/lib/dpkg/available", O_WRONLY|O_CREAT|O_TRUNC, 0644) = 3 close(3) = 0 open("/scratch/ramdisk/build/build/chroot-amd64//var/lib/dpkg/diversions", O_WRONLY|O_CREAT|O_TRUNC, 0644) = 3 close(3) = 0 open("/scratch/ramdisk/build/build/chroot-amd64//var/lib/dpkg/status", O_WRONLY|O_CREAT|O_TRUNC, 0644) = 3 close(3) = 0 mkdir("/scratch/ramdisk/build/build/chroot-amd64//var", 0755) = -1 EEXIST (File exists) mkdir("/scratch/ramdisk/build/build/chroot-amd64//var/log", 0755) = -1 EEXIST (File exists) open("/scratch/ramdisk/build/build/chroot-amd64/var/log/bootstrap.log", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb94a236000 write(3, "P: Retrieving Release\n", 22) = 22 write(1, "P: Retrieving Release\n", 22P: Retrieving Release ) = 22 write(1, "D: Execute \"wget -q -O /scratch/"..., 167D: Execute "wget -q -O /scratch/ramdisk/build/build/chroot-amd64/var/cache/bootstrap/_dists_._Release http://ql-bak/debmirror/lucid/release-amd64/dists/lucid/Release" ) = 167 open("/dev/null", O_RDWR) = 4 pipe([5, 6]) = 0 fcntl(6, F_SETFD, FD_CLOEXEC) = 0 pipe([7, 8]) = 0 pipe([9, 10]) = 0 clone(Process 24600 attached child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fb94a22d9d0) = 24600 [pid 24599] close(4) = 0 [pid 24600] close(5) = 0 [pid 24599] close(6 <unfinished ...> [pid 24600] close(7 <unfinished ...> [pid 24599] <... close resumed> ) = 0 [pid 24600] <... close resumed> ) = 0 [pid 24599] close(8 <unfinished ...> [pid 24600] close(9 <unfinished ...> [pid 24599] <... close resumed> ) = 0 [pid 24600] <... close resumed> ) = 0 [pid 24599] close(10 <unfinished ...> [pid 24600] close(4 <unfinished ...> [pid 24599] <... close resumed> ) = 0 [pid 24600] <... close resumed> ) = 0 [pid 24599] fcntl(7, F_SETFL, O_RDONLY|O_NONBLOCK <unfinished ...> [pid 24600] close(6 <unfinished ...> [pid 24599] <... fcntl resumed> ) = 0 [pid 24600] <... close resumed> ) = 0 [pid 24599] fcntl(9, F_SETFL, O_RDONLY|O_NONBLOCK <unfinished ...> [pid 24600] close(8 <unfinished ...> [pid 24599] <... fcntl resumed> ) = 0 [pid 24600] <... close resumed> ) = 0 [pid 24599] poll([{fd=5, events=POLLIN}], 1, -1 <unfinished ...> [pid 24600] close(10 <unfinished ...> [pid 24599] <... poll resumed> ) = 1 ([{fd=5, revents=POLLHUP}]) [pid 24600] <... close resumed> ) = 0 [pid 24599] fcntl(7, F_GETFL <unfinished ...> [pid 24600] fcntl(7, F_SETFL, O_RDONLY|O_NONBLOCK <unfinished ...> [pid 24599] <... fcntl resumed> ) = 0x800 (flags O_RDONLY|O_NONBLOCK) [pid 24600] <... fcntl resumed> ) = -1 EBADF (Bad file descriptor) [pid 24599] fstat(7, <unfinished ...> [pid 24600] fcntl(9, F_SETFL, O_RDONLY|O_NONBLOCK <unfinished ...> [pid 24599] <... fstat resumed> {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 [pid 24600] <... fcntl resumed> ) = -1 EBADF (Bad file descriptor) [pid 24599] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 <unfinished ...> [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1 <unfinished ...> [pid 24599] <... mmap resumed> ) = 0x7fb94a235000 [pid 24600] <... poll resumed> ) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24599] lseek(7, 0, SEEK_CUR <unfinished ...> [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1 <unfinished ...> [pid 24599] <... lseek resumed> ) = -1 ESPIPE (Illegal seek) [pid 24600] <... poll resumed> ) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24599] fcntl(9, F_GETFL <unfinished ...> [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1 <unfinished ...> [pid 24599] <... fcntl resumed> ) = 0x800 (flags O_RDONLY|O_NONBLOCK) [pid 24600] <... poll resumed> ) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24599] fstat(9, <unfinished ...> [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1 <unfinished ...> [pid 24599] <... fstat resumed> {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 [pid 24600] <... poll resumed> ) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24599] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 <unfinished ...> [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1 <unfinished ...> [pid 24599] <... mmap resumed> ) = 0x7fb94a234000 [pid 24600] <... poll resumed> ) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1 <unfinished ...> [pid 24599] lseek(9, 0, SEEK_CUR <unfinished ...> [pid 24600] <... poll resumed> ) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24599] <... lseek resumed> ) = -1 ESPIPE (Illegal seek) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24599] poll([{fd=7, events=POLLIN}, {fd=9, events=POLLIN}], 2, -1 <unfinished ...> [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1 <unfinished ...> [pid 24599] <... poll resumed> ) = 2 ([{fd=7, revents=POLLHUP}, {fd=9, revents=POLLHUP}]) [pid 24600] <... poll resumed> ) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24599] wait4(24600, Process 24599 suspended <unfinished ...> [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) .... [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLNVAL}]) [pid 24600] --- SIGTERM (Terminated) @ 0 (0) --- [pid 24600] write(3, "E: Got signal: Terminated, clean"..., 39) = 39 [pid 24600] write(2, "E: Got signal: Terminated, clean"..., 39E: Got signal: Terminated, cleaning up ) = 39 [pid 24600] umount("/scratch/ramdisk/build/build/chr"..., MNT_DETACH) = -1 ENOENT (No such file or directory) [pid 24600] umount("/scratch/ramdisk/build/build/chr"..., MNT_DETACH) = -1 ENOENT (No such file or directory) [pid 24600] exit_group(1) = ? Process 24599 resumed Process 24600 detached <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 24600 --- SIGCHLD (Child exited) @ 0 (0) --- close(5) = 0 close(7) = 0 close(9) = 0 write(1, "D: Status: 256\n", 15D: Status: 256 ) = 15 write(3, "E: Couldn't download Release!\n", 30) = 30 write(2, "E: Couldn't download Release!\n", 30E: Couldn't download Release! ) = 30 umount("/scratch/ramdisk/build/build/chr"..., MNT_DETACH) = -1 ENOENT (No such file or directory) umount("/scratch/ramdisk/build/build/chr"..., MNT_DETACH) = -1 ENOENT (No such file or directory) exit_group(1) = ?