On Tue, Apr 04, 2006 at 06:22:01PM +0100, Ian Jackson wrote:
> I'm investigating this further now, and have another test case.  On a
> system with an appropriate sound device:
> 
> -anarres:~> strace -e exit_group,open,dup,read bash /dev/mixer
> ...
> open("/dev/mixer", O_RDONLY|O_LARGEFILE) = 3
> dup2(3, 255)                            = 255
> read(255, 0x80ec1f8, 1)                 = -1 EINVAL (Invalid argument)
> exit_group(0)                           = ?
> -anarres:~> 
Interesting; I get:

|open("/etc/ld.so.cache", O_RDONLY)      = 5
|open("/lib/libncurses.so.5", O_RDONLY)  = 5
|read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\343\0"..., 512) = 512
|open("/lib/tls/i686/cmov/libdl.so.2", O_RDONLY) = 5
|read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\f\0"..., 512) = 512
|open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 5
|read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260O\1"..., 512) = 512
|open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 5
|open("/etc/mtab", O_RDONLY)             = 5
|read(5, "/dev/hda1 / ext3 rw,noatime,erro"..., 4096) = 246
|open("/proc/meminfo", O_RDONLY)         = 5
|read(5, "MemTotal:       127064 kB\nMemFre"..., 1024) = 598
|open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 5
|read(5, "65536\n", 31)                  = 6
|open("/dev/mixer", O_RDONLY|O_LARGEFILE) = 5
|read(5, 0xbf9c1c4c, 80)                 = -1 EINVAL (Invalid argument)
|/dev/mixer: /dev/mixer: Invalid argument
|exit_group(126)                         = ?

crw-rw----  1 root audio 14, 0 Mar 26 07:56 /dev/mixer
bash 3.1-4

Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to