View Single Post
Old 08-22-2012, 03:18 PM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Thumbs down Grep Gripes on FAT Fail. Busted or what?

um. now I'm no expert but grep should not just hang...

[root@kindle bin]# strace grep -l "/usr/bin/perl"

Spoiler:
Code:
execve("/bin/grep", ["grep", "-l", "/usr/bin/perl"], [/* 33 vars */]) = 0
brk(0)                                  = 0x7e000
uname({sys="Linux", node="kindle", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001b000
open("/mnt/us/usr/lib/libz.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\354\27\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=143358, ...}) = 0
mmap2(NULL, 162384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40025000
mprotect(0x40045000, 28672, PROT_NONE)  = 0
mmap2(0x4004c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f) = 0x4004c000
close(3)                                = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/v6l/fast-mult/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/v6l/fast-mult/half", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/v6l/fast-mult/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/v6l/fast-mult", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/v6l/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/v6l/half", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/v6l/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/v6l", 0xbed45f50)  = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/fast-mult/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/fast-mult/half", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/fast-mult/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/fast-mult", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/half", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls", 0xbed45f50)      = -1 ENOENT (No such file or directory)
open("/usr/lib/v6l/fast-mult/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/v6l/fast-mult/half", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/usr/lib/v6l/fast-mult/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/v6l/fast-mult", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/usr/lib/v6l/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/v6l/half", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/usr/lib/v6l/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/v6l", 0xbed45f50)      = -1 ENOENT (No such file or directory)
open("/usr/lib/fast-mult/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/fast-mult/half", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/usr/lib/fast-mult/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/fast-mult", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/usr/lib/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/half", 0xbed45f50)     = -1 ENOENT (No such file or directory)
open("/usr/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=7168, ...}) = 0
open("/lib/tls/v6l/fast-mult/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v6l/fast-mult/half", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/lib/tls/v6l/fast-mult/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v6l/fast-mult", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/lib/tls/v6l/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v6l/half", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/lib/tls/v6l/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/v6l", 0xbed45f50)      = -1 ENOENT (No such file or directory)
open("/lib/tls/fast-mult/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/fast-mult/half", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/lib/tls/fast-mult/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/fast-mult", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/lib/tls/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/half", 0xbed45f50)     = -1 ENOENT (No such file or directory)
open("/lib/tls/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", 0xbed45f50)          = -1 ENOENT (No such file or directory)
open("/lib/v6l/fast-mult/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v6l/fast-mult/half", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/lib/v6l/fast-mult/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v6l/fast-mult", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/lib/v6l/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v6l/half", 0xbed45f50)     = -1 ENOENT (No such file or directory)
open("/lib/v6l/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/v6l", 0xbed45f50)          = -1 ENOENT (No such file or directory)
open("/lib/fast-mult/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/fast-mult/half", 0xbed45f50) = -1 ENOENT (No such file or directory)
open("/lib/fast-mult/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/fast-mult", 0xbed45f50)    = -1 ENOENT (No such file or directory)
open("/lib/half/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/half", 0xbed45f50)         = -1 ENOENT (No such file or directory)
open("/lib/libcrypt.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\20\7\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=26525, ...}) = 0
mmap2(NULL, 213304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4004d000
mprotect(0x40052000, 28672, PROT_NONE)  = 0
mmap2(0x40059000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0x40059000
mmap2(0x4005b000, 155960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4005b000
close(3)                                = 0
open("/usr/lib/libm.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0`2\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=496558, ...}) = 0
mmap2(NULL, 475320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40082000
mprotect(0x400ee000, 28672, PROT_NONE)  = 0
mmap2(0x400f5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6b) = 0x400f5000
close(3)                                = 0
open("/usr/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0L\"\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=42348, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
mmap2(NULL, 72588, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400f7000
mprotect(0x40101000, 28672, PROT_NONE)  = 0
mmap2(0x40108000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9) = 0x40108000
close(3)                                = 0
open("/usr/lib/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\250J\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1348230, ...}) = 0
mmap2(NULL, 1135004, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40109000
mprotect(0x40212000, 28672, PROT_NONE)  = 0
mmap2(0x40219000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x108) = 0x40219000
mmap2(0x4021c000, 8604, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4021c000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001d000
set_tls(0x4001ced0, 0x4001ced0, 0x40024058, 0x4001d5a8, 0x40) = 0
mprotect(0x40219000, 8192, PROT_READ)   = 0
mprotect(0x400f5000, 4096, PROT_READ)   = 0
mprotect(0x40059000, 4096, PROT_READ)   = 0
getuid32()                              = 0
brk(0)                                  = 0x7e000
brk(0x9f000)                            = 0x9f000
fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001e000
read(0,


and then it hangs. forever...

htop has it at 0 cpu... 0.2 mem so it doesn't bomb. just hangs ???

anyone ACTUALLY used the kindles grep - or am I making a new one - that works? Thanks

Last edited by twobob; 08-22-2012 at 03:19 PM. Reason: BOLD
twobob is offline   Reply With Quote