W wrote:
> ini output awal strace di avt32, perhatikan ada ioctl yang return nya : EBADF:
> 
> 
> ioctl(2147483647, TCGETS, 0×7fa78b3c) = -1 EBADF (Bad file descriptor)
> 

  Ya, ini ada file descriptor yang tidak sesuai. TCGETS digunakan pada
waktu ada command yang akan diikutkan dengan argument 0x7fa78b3c ke kernel.

Baca ini :

http://www.lafn.org/~dave/linux/Serial-Programming-HOWTO.txt


> ---cut -----------
> bash-3.2# strace cryptsetup -y �Ccipher plain luksFormat /dev/mmcblk0p2
> execve("/usr/sbin/cryptsetup", ["cryptsetup", "-y", "�Ccipher",
> "plain", "luksFormat", "/dev/mmcblk0p2″], [/* 8 vars */]) = 0

  Bisa tidak diubah cipher-nya jika memang by default tidak dibaca?
  pilih saja yang ada di /proc/crypto

> mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> = 0×2aab0000
> 
> stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=64, …}) = 0
> 
> open("/etc/ld.so.cache", O_RDONLY) = 3
> 
> mmap(NULL, 64, PROT_READ, MAP_SHARED, 3, 0) = 0×2aab1000
> 
> close(3) = 0
> 
> open("/lib/libpopt.so.0″, O_RDONLY) = -1 ENOENT (No such file or directory)

  Check library untuk ini.

> open("/lib/libpopt.so.0″, O_RDONLY) = -1 ENOENT (No such file or directory)
> 
  Check juga lib untuk ini.

> open("/usr/lib/libpopt.so.0″, O_RDONLY) = 3
> 
> fstat(3, {st_mode=S_IFREG|0755, st_size=18052, …}) = 0
> 
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0×2aab2000
> 
> read(3, "\177ELF\1\2\1\3\30\255\1″…, 4096) = 4096
> 
> mmap(NULL, 24576, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0×2aab3000
> 
> mmap(0×2aab3000, 16388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
> 0) = 0×2aab3000
> 
> mmap(0×2aab8000, 824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
> 0×4) = 0×2aab8000
> 
> close(3) = 0
> 
> munmap(0×2aab2000, 4096) = 0
> 
> open("/lib/libcryptsetup.so.0″, O_RDONLY) = -1 ENOENT (No such file or
> directory)
>
  Check lib ini.

> open("/lib/libcryptsetup.so.0″, O_RDONLY) = -1 ENOENT (No such file or
> directory)

  Check lib ini.

> open("/usr/lib/libcryptsetup.so.0″, O_RDONLY) = 3
> 
> fstat(3, {st_mode=S_IFREG|0755, st_size=38524, …}) = 0
> 
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0×2aab2000
> 
> read(3, "\177ELF\1\2\1\3\30\255\1″…, 4096) = 4096
> 
> mmap(NULL, 45056, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0×2aab9000
> 
> mmap(0×2aab9000, 36096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
> 0) = 0×2aab9000
> 
> mmap(0×2aac2000, 4696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
> 0×8) = 0×2aac2000
> 
> close(3) = 0
> 
> munmap(0×2aab2000, 4096) = 0
> 
> open("/lib/libdevmapper.so.1.02″, O_RDONLY) = -1 ENOENT (No such file
> or directory)
> open("/lib/libdevmapper.so.1.02″, O_RDONLY) = -1 ENOENT (No such file
> or directory)

  check 2 lib di atas.

> 
> open("/usr/lib/libdevmapper.so.1.02″, O_RDONLY) = 3
> 
> fstat(3, {st_mode=S_IFREG|0644, st_size=64250, …}) = 0
> 
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0×2aab2000
> 
> read(3, "\177ELF\1\2\1\3\30\255\1″…, 4096) = 4096
> 
> mmap(NULL, 53248, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0×2aac4000
> 
> mmap(0×2aac4000, 41748, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3,
> 0) = 0×2aac4000
> 
> mmap(0×2aacf000, 6928, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
> 0xa) = 0×2aacf000
> 
> close(3) = 0
> 
> munmap(0×2aab2000, 4096) = 0
> 
> open("/lib/libc.so.0″, O_RDONLY) = 3
> 
> fstat(3, {st_mode=S_IFREG|0644, st_size=206164, …}) = 0
> 
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0×2aab2000
> 
> read(3, "\177ELF\1\2\1\3\30\255\1″…, 4096) = 4096
> 
> mmap(NULL, 229376, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0×2aad1000
> 
> mmap(0×2aad1000, 200900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED,
> 3, 0) = 0×2aad1000
> 
> mmap(0×2ab03000, 4164, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
> 0×31) = 0×2ab03000
> 
> mmap(0×2ab05000, 14948, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0×2ab05000
> 
> close(3) = 0
> 
> munmap(0×2aab2000, 4096) = 0
> 
> open("/lib/libc.so.0″, O_RDONLY) = 3
> 
> fstat(3, {st_mode=S_IFREG|0644, st_size=206164, …}) = 0
> 
> close(3) = 0
> 
> open("/lib/libdevmapper.so.1.02″, O_RDONLY) = -1 ENOENT (No such file
> or directory)
> 
> open("/lib/libdevmapper.so.1.02″, O_RDONLY) = -1 ENOENT (No such file
> or directory)

  Check 2 lib di atas.

> open("/usr/lib/libdevmapper.so.1.02″, O_RDONLY) = 3
> 
> fstat(3, {st_mode=S_IFREG|0644, st_size=64250, …}) = 0
> 
> close(3) = 0
> 
> open("/lib/libc.so.0″, O_RDONLY) = 3
> 
> fstat(3, {st_mode=S_IFREG|0644, st_size=206164, …}) = 0
> 
> close(3) = 0
> 
> open("/lib/libc.so.0″, O_RDONLY) = 3
> 
> fstat(3, {st_mode=S_IFREG|0644, st_size=206164, …}) = 0
> 
> close(3) = 0
> 
> munmap(0×2aab1000, 64) = 0
> 
> stat("/lib/ld-uClibc.so.0″, {st_mode=S_IFREG|0755, st_size=13532, …}) = 0
> 
> ioctl(0, TCGETS, {B115200 opost isig icanon echo …}) = 0
> ioctl(1, TCGETS, {B115200 opost isig icanon echo …}) = 0

   Harusnya menunjuk ke arg tertentu bukan B115200 dst...

> brk(0) = 0×5000
> 
> brk(0×6000) = 0×6000
> 
> brk(0×7000) = 0×7000
> 
> ioctl(2147483647, TCGETS, 0×7fa78b3c) = -1 EBADF (Bad file descriptor)
> 
> brk(0×8000) = 0×8000
> 
> ioctl(0, TCGETS, {B115200 opost isig icanon echo …}) = 0
> 
> write(2, "\nWARNING!\n========\n", 19
> 
> WARNING!
> 

  Ini agak aneh menurut saya, sebelumnya dengan ldd ada beberapa library
  yang sudah seharusnya dikenali. We'll see...

 Doni

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke