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

Bug#264482: more info



OK. This is definitely busybox's fault. So, to recap:

# mount -t tmpfs -o size=100M none /mnt
mount: Mounting none on /mnt failed: Bad address

But, if fstab contains:

none    /mnt    tmpfs   size=100M

and I issue
# mount /mnt

It works perfectly.

What's going on here?

Here are strace logs of mount: infstab.log is typing mount /proc using
the entry in fstab, and then mount -t proc none /proc is manual.log.

Hope this can be quickly fixed?

-- 
Joshua Kwan
execve("bin/mount", ["bin/mount", "/proc"], [/* 3 vars */]) = 0
uname({sys="Linux", node="(none)", ...}) = 0
brk(0)                                  = 0x14e000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = -1 ENOENT (No such file or directory)
open("/lib/v9/libc.so.6", O_RDONLY)     = -1 ENOENT (No such file or directory)
stat64("/lib/v9", 0xeffff390)           = -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\316"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1291740, ...}) = 0
mmap(NULL, 1361656, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x7002c000
mprotect(0x70160000, 100088, PROT_NONE) = 0
mmap(0x7016c000, 40960, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0x130000) = 0x7016c000
mmap(0x70176000, 9976, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x70176000
close(3)                                = 0
brk(0)                                  = 0x14e000
brk(0x170000)                           = 0x170000
brk(0)                                  = 0x170000
stat64("/proc", {st_mode=S_IFDIR|0777, st_size=1024, ...}) = 0
open("/etc/fstab", O_RDONLY)            = 3
fstat64(3, {st_mode=S_IFREG|0666, st_size=188, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7017a000
read(3, "/dev/floppy/0\t/floppy\t\tauto\tnoau"..., 8192) = 188
mount("none", "/proc", "proc", 0xc0ed0000, 0xffffffff) = 0
close(3)                                = 0
munmap(0x7017a000, 8192)                = 0
sysconf(0 <unfinished ... exit status 0>
execve("bin/mount", ["bin/mount", "-t", "proc", "none", "/proc"], [/* 3 vars */]) = 0
uname({sys="Linux", node="(none)", ...}) = 0
brk(0)                                  = 0x14e000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = -1 ENOENT (No such file or directory)
open("/lib/v9/libc.so.6", O_RDONLY)     = -1 ENOENT (No such file or directory)
stat64("/lib/v9", 0xeffff380)           = -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\316"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1291740, ...}) = 0
mmap(NULL, 1361656, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x7002c000
mprotect(0x70160000, 100088, PROT_NONE) = 0
mmap(0x7016c000, 40960, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0x130000) = 0x7016c000
mmap(0x70176000, 9976, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x70176000
close(3)                                = 0
brk(0)                                  = 0x14e000
brk(0x170000)                           = 0x170000
brk(0)                                  = 0x170000
stat64("none", 0xeffffd10)              = -1 ENOENT (No such file or directory)
mount("none", "/proc", "proc", 0xc0ed0000, 0xffffffff) = -1 EFAULT (Bad address)
write(2, "mount: ", 7mount: )                  = 7
write(2, "Mounting none on /proc failed", 29Mounting none on /proc failed) = 29
write(2, ": Bad address\n", 14: Bad address
)         = 14
sysconf(0x1 <unfinished ... exit status 1>

Attachment: signature.asc
Description: Digital signature


Reply to: