[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#539744: chroot to lenny /target in debootstrap segfaults



On Monday 03 August 2009, Ferenc Wagner wrote:
> I can't see anything strange in it now, but it would be interesting to
> know whether it depends on the contents of /target/etc/mtab (what if
> you delete it before the mount?).  Having an strace of a second
> (successful) run might also provide a clue.

Interesting. /target/etc/mtab does not exist yet at that point.
A 'touch /target/etc/mtab' before the chroot mount gets rid of the 
segfault...

And fun, fun, fun, after mount has segfaulted the file has magically been 
created (empty), which explains why a second attempt does not segfault.

So, what the @$#@ has changed that makes a Lenny install suddenly fail 
when a Squeeze D-I is used instead of a Lenny D-I?

If I do the exact same thing with a lenny netinst then I see that
/target/etc/mtab *also* does *not* exist, but mount does not segfault (it  
creates the file also).

Attached an strace from a successful mount without /etc/mtab present using 
the _lenny netinst_. There are some differences, but again someone else 
will have to divine their meaning.

13894 22:07:06.030433 execve("/usr/sbin/chroot", ["chroot", "/target/", "mount", "-t", "proc", "proc", "/proc"], [/* 10 vars */]) = 0
13894 22:07:06.033443 brk(0)            = 0x9cd4000
13894 22:07:06.033926 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
13894 22:07:06.034336 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f22000
13894 22:07:06.034699 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
13894 22:07:06.035016 open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.035265 open("/lib/tls/i686/sse2/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.035452 stat64("/lib/tls/i686/sse2/cmov", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.035667 open("/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.035850 stat64("/lib/tls/i686/sse2", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.036029 open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.036211 stat64("/lib/tls/i686/cmov", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.036391 open("/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.036571 stat64("/lib/tls/i686", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.036749 open("/lib/tls/sse2/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.037028 stat64("/lib/tls/sse2/cmov", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.037213 open("/lib/tls/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.037394 stat64("/lib/tls/sse2", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.037573 open("/lib/tls/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.037754 stat64("/lib/tls/cmov", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.037933 open("/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.038113 stat64("/lib/tls", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.038292 open("/lib/i686/sse2/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.038475 stat64("/lib/i686/sse2/cmov", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.038656 open("/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.038838 stat64("/lib/i686/sse2", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.039018 open("/lib/i686/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.039201 stat64("/lib/i686/cmov", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.039380 open("/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.039560 stat64("/lib/i686", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.039739 open("/lib/sse2/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.039921 stat64("/lib/sse2/cmov", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.040101 open("/lib/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.040281 stat64("/lib/sse2", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.040460 open("/lib/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.040640 stat64("/lib/cmov", 0xbfd3da24) = -1 ENOENT (No such file or directory)
13894 22:07:06.040819 open("/lib/libc.so.6", O_RDONLY) = 3
13894 22:07:06.041131 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260e\1\0004\0\0\0T"..., 512) = 512
13894 22:07:06.041440 fstat64(3, {st_mode=S_IFREG|0755, st_size=1294500, ...}) = 0
13894 22:07:06.041740 mmap2(NULL, 1300080, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7de4000
13894 22:07:06.041907 mmap2(0xb7f1c000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x138) = 0xb7f1c000
13894 22:07:06.042644 mmap2(0xb7f1f000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f1f000
13894 22:07:06.042902 close(3)          = 0
13894 22:07:06.043241 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7de3000
13894 22:07:06.043469 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7de38c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
13894 22:07:06.044332 mprotect(0xb7f1c000, 4096, PROT_READ) = 0
13894 22:07:06.044978 getuid32()        = 0
13894 22:07:06.045320 chroot("/target/") = 0
13894 22:07:06.045586 chdir("/")        = 0
13894 22:07:06.045931 execve("/sbin/mount", ["mount", "-t", "proc", "proc", "/proc"], [/* 10 vars */]) = -1 ENOENT (No such file or directory)
13894 22:07:06.046157 execve("/usr/sbin/mount", ["mount", "-t", "proc", "proc", "/proc"], [/* 10 vars */]) = -1 ENOENT (No such file or directory)
13894 22:07:06.046369 execve("/bin/mount", ["mount", "-t", "proc", "proc", "/proc"], [/* 10 vars */]) = 0
13894 22:07:06.048623 brk(0)            = 0x86d3000
13894 22:07:06.048985 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
13894 22:07:06.049279 mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f2c000
13894 22:07:06.049457 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
13894 22:07:06.049613 open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.049738 open("/lib/tls/i686/sse2/cmov/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.049844 stat64("/lib/tls/i686/sse2/cmov", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.049935 open("/lib/tls/i686/sse2/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.050027 stat64("/lib/tls/i686/sse2", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.050116 open("/lib/tls/i686/cmov/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.050208 stat64("/lib/tls/i686/cmov", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.050297 open("/lib/tls/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.050388 stat64("/lib/tls/i686", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.050476 open("/lib/tls/sse2/cmov/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.050568 stat64("/lib/tls/sse2/cmov", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.050657 open("/lib/tls/sse2/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.050747 stat64("/lib/tls/sse2", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.050835 open("/lib/tls/cmov/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.050925 stat64("/lib/tls/cmov", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.051013 open("/lib/tls/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.051102 stat64("/lib/tls", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.051189 open("/lib/i686/sse2/cmov/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.051281 stat64("/lib/i686/sse2/cmov", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.051370 open("/lib/i686/sse2/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.051462 stat64("/lib/i686/sse2", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.051549 open("/lib/i686/cmov/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.051641 stat64("/lib/i686/cmov", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.051729 open("/lib/i686/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.051818 stat64("/lib/i686", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.051905 open("/lib/sse2/cmov/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.052000 stat64("/lib/sse2/cmov", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.052088 open("/lib/sse2/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.052177 stat64("/lib/sse2", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.052264 open("/lib/cmov/libblkid.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
13894 22:07:06.052353 stat64("/lib/cmov", 0xbfc48154) = -1 ENOENT (No such file or directory)
13894 22:07:06.052440 open("/lib/libblkid.so.1", O_RDONLY) = 3
13894 22:07:06.052559 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320!\0\0004\0\0\0L"..., 512) = 512
13894 22:07:06.052711 fstat64(3, {st_mode=S_IFREG|0644, st_size=38020, ...}) = 0
13894 22:07:06.052907 mmap2(NULL, 40824, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f22000
13894 22:07:06.053039 mmap2(0xb7f2b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0xb7f2b000
13894 22:07:06.053189 close(3)          = 0
13894 22:07:06.053333 open("/lib/libuuid.so.1", O_RDONLY) = 3
13894 22:07:06.053435 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\17\0\0004\0\0\0\350"..., 512) = 512
13894 22:07:06.053553 fstat64(3, {st_mode=S_IFREG|0644, st_size=12912, ...}) = 0
13894 22:07:06.053695 mmap2(NULL, 15624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f1e000
13894 22:07:06.053785 mmap2(0xb7f21000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7f21000
13894 22:07:06.053921 close(3)          = 0
13894 22:07:06.054036 open("/lib/libselinux.so.1", O_RDONLY) = 3
13894 22:07:06.054128 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260B\0\0004\0\0\0\314"..., 512) = 512
13894 22:07:06.054245 fstat64(3, {st_mode=S_IFREG|0644, st_size=95964, ...}) = 0
13894 22:07:06.054353 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f1d000
13894 22:07:06.054477 mmap2(NULL, 101276, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f04000
13894 22:07:06.054566 mmap2(0xb7f1b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16) = 0xb7f1b000
13894 22:07:06.054783 close(3)          = 0
13894 22:07:06.054926 open("/lib/libc.so.6", O_RDONLY) = 3
13894 22:07:06.055064 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260e\1\0004\0\0\0t"..., 512) = 512
13894 22:07:06.055173 fstat64(3, {st_mode=S_IFREG|0755, st_size=1294572, ...}) = 0
13894 22:07:06.055282 mmap2(NULL, 1300080, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dc6000
13894 22:07:06.055371 mmap2(0xb7efe000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x138) = 0xb7efe000
13894 22:07:06.055502 mmap2(0xb7f01000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f01000
13894 22:07:06.055671 close(3)          = 0
13894 22:07:06.055821 open("/lib/libdl.so.2", O_RDONLY) = 3
13894 22:07:06.055927 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\0004\0\0\0H"..., 512) = 512
13894 22:07:06.056034 fstat64(3, {st_mode=S_IFREG|0644, st_size=9680, ...}) = 0
13894 22:07:06.056143 mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dc2000
13894 22:07:06.056232 mmap2(0xb7dc4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7dc4000
13894 22:07:06.056446 close(3)          = 0
13894 22:07:06.056694 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7dc1000
13894 22:07:06.056817 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7dc1730, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
13894 22:07:06.057662 mprotect(0xb7efe000, 4096, PROT_READ) = 0
13894 22:07:06.058552 brk(0)            = 0x86d3000
13894 22:07:06.058634 brk(0x86f4000)    = 0x86f4000
13894 22:07:06.058972 open("/etc/selinux/config", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
13894 22:07:06.060028 statfs64("/selinux", 84, {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=972473, f_bfree=926693, f_bavail=877294, f_files=247008, f_ffree=241679, f_fsid={807597228, 1792922905}, f_namelen=255, f_frsize=4096}) = 0
13894 22:07:06.060148 open("/proc/mounts", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
13894 22:07:06.061691 umask(022)        = 022
13894 22:07:06.061869 open("/dev/null", O_RDWR|O_LARGEFILE) = 3
13894 22:07:06.062099 close(3)          = 0
13894 22:07:06.062370 getuid32()        = 0
13894 22:07:06.062540 geteuid32()       = 0
13894 22:07:06.062770 lstat64("/etc/mtab", 0xbfc48868) = -1 ENOENT (No such file or directory)
13894 22:07:06.062990 rt_sigaction(SIGHUP, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.063220 rt_sigaction(SIGINT, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.063405 rt_sigaction(SIGQUIT, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.063588 rt_sigaction(SIGILL, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.063771 rt_sigaction(SIGTRAP, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.063954 rt_sigaction(SIGABRT, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.064136 rt_sigaction(SIGBUS, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.064319 rt_sigaction(SIGFPE, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.064502 rt_sigaction(SIGKILL, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = -1 EINVAL (Invalid argument)
13894 22:07:06.064688 rt_sigaction(SIGUSR1, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.064907 rt_sigaction(SIGSEGV, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.065003 rt_sigaction(SIGUSR2, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.065096 rt_sigaction(SIGPIPE, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.065188 rt_sigaction(SIGALRM, {0x804d950, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.065281 rt_sigaction(SIGTERM, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.065373 rt_sigaction(SIGSTKFLT, {0x804e3c0, ~[RTMIN RT_1], 0}, NULL, 8) = 0
13894 22:07:06.065466 getpid()          = 13894
13894 22:07:06.065639 open("/etc/mtab~13894", O_WRONLY|O_CREAT|O_LARGEFILE, 0600) = 3
13894 22:07:06.065780 close(3)          = 0
13894 22:07:06.065897 gettimeofday({1249337226, 65960}, NULL) = 0
13894 22:07:06.066047 link("/etc/mtab~13894", "/etc/mtab~") = 0
13894 22:07:06.066650 open("/etc/mtab~", O_WRONLY|O_LARGEFILE) = 3
13894 22:07:06.066777 fcntl64(3, F_SETLK64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 0xbfc4889c) = 0
13894 22:07:06.067392 unlink("/etc/mtab~13894") = 0
13894 22:07:06.067550 umask(077)        = 022
13894 22:07:06.067635 open("/etc/mtab", O_RDWR|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 4
13894 22:07:06.067768 umask(022)        = 077
13894 22:07:06.067849 umask(077)        = 022
13894 22:07:06.067930 open("/etc/fstab", O_RDONLY|O_LARGEFILE) = 5
13894 22:07:06.068019 umask(022)        = 077
13894 22:07:06.068189 fstat64(5, {st_mode=S_IFREG|0644, st_size=492, ...}) = 0
13894 22:07:06.068330 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7dc0000
13894 22:07:06.068419 read(5, "# /etc/fstab: static file system "..., 4096) = 492
13894 22:07:06.068648 read(5, ""..., 4096) = 0
13894 22:07:06.068768 close(5)          = 0
13894 22:07:06.068840 munmap(0xb7dc0000, 4096) = 0
13894 22:07:06.069069 readlink("/dev", 0xbfc4686b, 4096) = -1 EINVAL (Invalid argument)
13894 22:07:06.069163 readlink("/dev/hda1", 0xbfc4686b, 4096) = -1 ENOENT (No such file or directory)
13894 22:07:06.069265 fstat64(4, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
13894 22:07:06.069402 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7dc0000
13894 22:07:06.069490 fstat64(4, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
13894 22:07:06.069629 _llseek(4, 0, [0], SEEK_SET) = 0
13894 22:07:06.069762 fchmod(4, 0644)   = 0
13894 22:07:06.069853 write(4, "/dev/hda1 / ext3 rw,errors=remoun"..., 42) = 42
13894 22:07:06.069999 close(4)          = 0
13894 22:07:06.070081 munmap(0xb7dc0000, 4096) = 0
13894 22:07:06.070684 close(3)          = 0
13894 22:07:06.070766 unlink("/etc/mtab~") = 0
13894 22:07:06.070909 stat64("/sbin/mount.proc", 0xbfc485c0) = -1 ENOENT (No such file or directory)
13894 22:07:06.071008 rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
13894 22:07:06.071137 stat64("/sbin/mount.proc", 0xbfc48590) = -1 ENOENT (No such file or directory)
13894 22:07:06.071263 mount("proc", "/proc", "proc", MS_MGC_VAL, NULL) = 0
13894 22:07:06.072018 readlink("/proc", 0xbfc4661b, 4096) = -1 EINVAL (Invalid argument)
13894 22:07:06.072110 open("/etc/mtab", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 3
13894 22:07:06.072200 close(3)          = 0
13894 22:07:06.072284 open("/etc/mtab~13894", O_WRONLY|O_CREAT|O_LARGEFILE, 0600) = 3
13894 22:07:06.072387 close(3)          = 0
13894 22:07:06.072467 gettimeofday({1249337226, 72497}, NULL) = 0
13894 22:07:06.072549 link("/etc/mtab~13894", "/etc/mtab~") = 0
13894 22:07:06.073210 open("/etc/mtab~", O_WRONLY|O_LARGEFILE) = 3
13894 22:07:06.073477 fcntl64(3, F_SETLK64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 0xbfc4861c) = 0
13894 22:07:06.073571 unlink("/etc/mtab~13894") = 0
13894 22:07:06.073668 umask(077)        = 022
13894 22:07:06.073750 open("/etc/mtab", O_RDWR|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 4
13894 22:07:06.073841 umask(022)        = 077
13894 22:07:06.073922 fstat64(4, {st_mode=S_IFREG|0644, st_size=42, ...}) = 0
13894 22:07:06.074030 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7dc0000
13894 22:07:06.074116 fstat64(4, {st_mode=S_IFREG|0644, st_size=42, ...}) = 0
13894 22:07:06.074222 _llseek(4, 0, [0], SEEK_SET) = 0
13894 22:07:06.074306 read(4, "/dev/hda1 / ext3 rw,errors=remoun"..., 42) = 42
13894 22:07:06.074453 write(4, "proc /proc proc rw 0 0\n"..., 23) = 23
13894 22:07:06.074551 close(4)          = 0
13894 22:07:06.074632 munmap(0xb7dc0000, 4096) = 0
13894 22:07:06.074745 close(3)          = 0
13894 22:07:06.074827 unlink("/etc/mtab~") = 0
13894 22:07:06.074927 rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
13894 22:07:06.075107 exit_group(0)     = ?

Reply to: