strace doesn't work on 2.4.0-testX
Hi,
now that the 2.4.0-testX kernel series seems to stabilize (famous last words...), I am trying to understand some of the basic showstoppers. One of them is the impossibility to use the loop device for mounting files as filesystems, for example ramdisk images.
I would like to know whether this is a problem with mount (since one cannot mount hfs CDs either) or with the loop device which used to be broken for a long time. In order to see anything, I am trying to use strace.
The problem is that strace stopped working somewhere between 2.4.0-test1-ac18 and -ac21 (I have both kernels and verified just moments ago). It still doesn't work with 2.4.0-test5-pre2. Is this a known problem or am I doing something wrong? I haven't seen anything on the linux-kernel list (in the l-k archives, the last message with a similar subject is from 1996), so it could be a ppc-related problem.
What strace is doing now looks like:
[root@chezmoi /tmp]# strace mount -o loop ramdisk.image /mnt/ram1execve("/bin/mount", ["mount", "-o", "loop", "ramdisk.image", "/mnt/ram1"], [/* 29 vars */]) = 0
memlock: Invalid argument
Couldn't lock into memory, exiting.
That is, it just repeats the command and gives the output. In pre-ac18, there were 48 lines, looking like
execve("/bin/mount", ["mount", "-o", "loop", "ramdisk.image", "/mnt/ram1"], [/*
25 vars */]) = 0
brk(0) = 0x10022470open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
[and so on, up to:]write(2, "memlock: Invalid argument\n", 26memlock: Invalid argument ) = 26
write(2, "Couldn\'t lock into memory, exiti"..., 36Couldn't lock into memory, ex
iting.
) = 36
exit(1) = ?
Any ideas?
--
Martin
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 6 lines · Martin Costabel
The problem is that strace stopped working somewhere between 2.4.0-test1-ac18 and -ac21 (I have both kernels and verified just moments ago). It still doesn't work with 2.4.0-test5-pre2. Is this a known problem or am I doing something wrong? I haven't seen anything on the linux-kernel list (in the l-k archives, the last message with a similar subject is from 1996), so it could be a ppc-related problem.
IIRC this is a known problem, caused by some changes in the ptrace() syscall.
But IIRC, I did see an announce that someone did fix it on PPC. Or was that on MIPS?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/