[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
possible bug? (or my buggy hardware more likely)
From: |
Dom |
Subject: |
possible bug? (or my buggy hardware more likely) |
Date: |
Tue, 20 Jan 2004 09:40:27 -0800 (PST) |
hi, im running debian woody and i did this:
localhost:/mnt# cat /dev/sg0
Segmentation fault
then cat segfaulted. i played with it and could not
get it to reproduce itself except one time. at the
time i was messing with ide-scsi in the kernel (2.6.1)
i did however manage to run an strace as the next
thing i did, here is the result:
execve("/bin/cat", ["cat", "/dev/sg0"], [/* 16 vars
*/]) = 0
uname({sys="Linux", node="localhost", ...}) = 0
brk(0) = 0x804c000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
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) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=51254, ...})
= 0
old_mmap(NULL, 51254, PROT_READ, MAP_PRIVATE, 3, 0) =
0x40018000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT
(No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200X\1"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1270908,
...}) = 0
old_mmap(NULL, 1281292, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 3, 0) = 0x40025000
old_mmap(0x40153000, 36864, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x12d000) = 0x40153000
old_mmap(0x4015c000, 7436, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =
0x4015c000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4015e000
shutdown(-1073743580, 1 /* send */) = 0
munmap(0x40018000, 51254) = 0
brk(0) = 0x804c000
brk(0x806d000) = 0x806d000
brk(0) fstat64(1, {st_mode=S_IFCHR|0600,
st_rdev=makedev(136, 0), ...}) = 0
open("/dev/sg0", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(21,
0), ...}) = 0
read(3, <unfinished ...>
+++ killed by SIGSEGV +++
localhost:/mnt# strace cat /dev/sg0
execve("/bin/cat", ["cat", "/dev/sg0"], [/* 16 vars
*/]) = 0
uname({sys="Linux", node="localhost", ...}) = 0
brk(0) = 0x804c000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
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) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=51254, ...})
= 0
old_mmap(NULL, 51254, PROT_READ, MAP_PRIVATE, 3, 0) =
0x40018000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT
(No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200X\1"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1270908,
...}) = 0
old_mmap(NULL, 1281292, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 3, 0) = 0x40025000
= 0x806d000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4015e000
shutdown(-1073743580, 1 /* send */) = 0
munmap(0x40018000, 51254) = 0
brk(0) = 0x804c000
brk(0x806d000) = 0x806d000
brk(0) = 0x806d000
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136,
0), ...}) = 0
open("/dev/sg0", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(21,
0), ...}) = 0
read(3, <unfinished ...>
+++ killed by SIGSEGV +++
localhost:/mnt# cat --version
cat (GNU textutils) 2.0
weird.. but now if i do cat /dev/sg0 nothing bad
happens i just get 'no such device' i suspect it is
my hardware or kernel and not the cat program itself,
but i found it suspicious that it would cause a
segfault/
later
-Dom
=====
Dominic C. [binary1230(AT)yahoo.com]
http://einsteinsbreakfast.com
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- possible bug? (or my buggy hardware more likely),
Dom <=