OpenPGP card stopped working

Micah Anderson micah at riseup.net
Wed Apr 23 04:07:41 CEST 2008


I have an OmniKey CardMan 4040 and it was working fine for the last two
months that I've had the OpenPGP card. Suddenly, it seems to think there
is no card present. I never needed pcscd running as I could just use the
internal driver (I just needed libpcsclite1 installed). Did my card die
already? Or is there something else going on?

Two things I noticed in the strace output (included below) that jumped
out at my untrained eye: 

write(3, "SCD SERIALNO openpgp", 20)    = 20
write(3, "\n", 1)                       = 1
read(3, "ERR 100663356 Not supported <SCD>\n", 1002) = 34

And the attempted access to /dev/cmx0:

open("/dev/cmx0", O_RDWR|O_LARGEFILE)   = -1 EBUSY (Device or resource
busy)

(although earlier in the strace stack, it was seemingly communicating).

Thanks for any ideas or mechanisms I can use for debug. 
Micah


$ gpg --card-status
gpg: apdu_send_simple(0) failed: no card
Please insert the card and hit return or enter 'c' to cancel: 
gpg: pcsc_establish_context failed: no service (0x8010001d)
gpg: card reader not available
gpg: OpenPGP card not available: general error

$ gpg --debug 2048 --debug-ccid-driver -v --card-status
gpg: reading options from `/home/micah/.gnupg/gpg.conf'
gpg: DBG: ccid-driver: setting up transport for CardMan 4040
gpg: DBG: ccid-driver: using CCID reader 0 (ID=0000:0001:/dev/cmx0:0)
gpg: DBG: ccid-driver: status: 41  error: FE  octet[9]: 00
               data:
gpg: DBG: ccid-driver: CCID command failed: CCID timed out while talking to the ICC
gpg: reader slot 0: using ccid driver
gpg: DBG: send apdu: c=00 i=A4 p0=04 p1=00 lc=6 le=-1
gpg: DBG: ccid-driver: status: 41  error: FE  octet[9]: 00
               data:
gpg: DBG: ccid-driver: CCID command failed: CCID timed out while talking to the ICC
gpg: apdu_send_simple(0) failed: card inactive
gpg: DBG: ccid-driver: status: 01  error: 00  octet[9]: 01
               data:
gpg: DBG: ccid-driver: no CCID reader with ID 0000:0001:/dev/cmx0:0
Please insert the card and hit return or enter 'c' to cancel: 
gpg: DBG: ccid-driver: no CCID reader with number 0
gpg: pcsc_establish_context failed: no service (0x8010001d)
gpg: card reader not available
gpg: OpenPGP card not available: general error
secmem usage: 0/0 bytes in 0/0 blocks of pool 0/32768

execve("/usr/bin/gpg", ["gpg", "--card-status"], [/* 43 vars */]) = 0
brk(0)                                  = 0x8111000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f7e000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=94031, ...}) = 0
mmap2(NULL, 94031, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f67000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libresolv.so.2", 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@!\0\0004\0\0\0\310\2\1\0\0\0\0\0004\0 \0\10"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=67408, ...}) = 0
mmap2(NULL, 75972, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f54000
mmap2(0xb7f63000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xb7f63000
mmap2(0xb7f65000, 6340, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f65000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/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\3\0\1\0\0\0\300\30\0\0004\0\0\0\0248\1\0\0\0\0\0004\0 "..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=81012, ...}) = 0
mmap2(NULL, 83740, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f3f000
mmap2(0xb7f53000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7f53000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libbz2.so.1.0", 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\360\20\0\0004\0\0\0\374\376\0\0\0\0\0\0004"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=66276, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f3e000
mmap2(NULL, 65092, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f2e000
mmap2(0xb7f3d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xb7f3d000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libreadline.so.5", 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\260\316\0\0004\0\0\0\234\373\2\0\0\0\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=196484, ...}) = 0
mmap2(NULL, 199764, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7efd000
mmap2(0xb7f29000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2c) = 0xb7f29000
mmap2(0xb7f2d000, 3156, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f2d000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libdl.so.2", 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\0p\n\0\0004\0\0\0L!\0\0\0\0\0\0004\0 \0\10\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9684, ...}) = 0
mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ef9000
mmap2(0xb7efb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7efb000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libusb-0.1.so.4", 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`\23\0\0004\0\0\0\320k\0\0\0\0\0\0004\0 \0\4"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=28560, ...}) = 0
mmap2(NULL, 31544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ef1000
mmap2(0xb7ef7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0xb7ef7000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/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\260e\1\0004\0\0\0\4\267\24\0\0\0\0\0004\0 "..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1360292, ...}) = 0
mmap2(NULL, 1365616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7da3000
mmap2(0xb7eeb000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x148) = 0xb7eeb000
mmap2(0xb7eee000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7eee000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/libncurses.so.5", 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\0p\242\0\0004\0\0\0\244\370\2\0\0\0\0\0004\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=195724, ...}) = 0
mmap2(NULL, 199636, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d72000
mmap2(0xb7da0000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2d) = 0xb7da0000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d71000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d70000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d706b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7eeb000, 4096, PROT_READ)   = 0
munmap(0xb7f67000, 94031)               = 0
fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
brk(0)                                  = 0x8111000
brk(0x8132000)                          = 0x8132000
setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=0}) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x80764f0, [], 0}, NULL, 8) = 0
rt_sigaction(SIGHUP, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x80764f0, [], 0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x80764f0, [], 0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {0x80764f0, [], 0}, NULL, 8) = 0
rt_sigaction(SIGSEGV, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGSEGV, {0x80764f0, [], 0}, NULL, 8) = 0
rt_sigaction(SIGUSR1, {0x8076310, [], 0}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1282816, ...}) = 0
mmap2(NULL, 1282816, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c36000
close(3)                                = 0
mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f76000
getuid32()                              = 1000
mlock(0xb7f76000, 32768)                = 0
geteuid32()                             = 1000
getuid32()                              = 1000
geteuid32()                             = 1000
access("/home/micah/.gnupg/gpg.conf-1.4.6", R_OK) = -1 ENOENT (No such file or directory)
access("/home/micah/.gnupg/gpg.conf-1.4", R_OK) = -1 ENOENT (No such file or directory)
access("/home/micah/.gnupg/gpg.conf-1", R_OK) = -1 ENOENT (No such file or directory)
access("/home/micah/.gnupg/gpg.conf", R_OK) = 0
access("/home/micah/.gnupg/options", R_OK) = -1 ENOENT (No such file or directory)
stat64("~/.gnupg", 0xbfeee32c)          = -1 ENOENT (No such file or directory)
stat64("/home/micah/.gnupg/gpg.conf", {st_mode=S_IFREG|0600, st_size=8276, ...}) = 0
stat64("/home/micah/.gnupg", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
getuid32()                              = 1000
getuid32()                              = 1000
open("/home/micah/.gnupg/gpg.conf", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0600, st_size=8276, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f75000
read(3, "# Options for GnuPG\n# Copyright 1998, 1999, 2000, "..., 4096) = 4096
read(3, " proxies (keyserver option honor-http-proxy)\n#\n# M"..., 4096) = 4096
read(3, "ent-info=<path>:<pid>:1\n#\n# may be used to overrid"..., 4096) = 84
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7f75000, 4096)                = 0
access("/home/micah/.gnupg/random_seed", F_OK) = 0
open("/home/micah/.gnupg/secring.gpg", O_RDONLY|O_LARGEFILE) = 3
<snip>
access("/home/micah/.gnupg/secring.gpg", F_OK) = 0
open("/home/micah/.gnupg/pubring.gpg", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0600, st_size=15103776, ...}) = 0
<snip>
access("/home/micah/.gnupg/pubring.gpg", F_OK) = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_FILE, path="/tmp/gpg-Slfdao/S.gpg-agent"}, 29) = 0
read(3, "OK Pleased to meet you\n", 1002) = 23
write(3, "OPTION display=:0.0", 19)     = 19
write(3, "\n", 1)                       = 1
read(3, "OK\n", 1002)                   = 3
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
readlink("/proc/self/fd/0", "/dev/pts/1", 4095) = 10
write(3, "OPTION ttyname=/dev/pts/1", 25) = 25
write(3, "\n", 1)                       = 1
read(3, "OK\n", 1002)                   = 3
write(3, "OPTION ttytype=dumb", 19)     = 19
write(3, "\n", 1)                       = 1
read(3, "OK\n", 1002)                   = 3
write(3, "OPTION lc-ctype=en_US.UTF-8", 27) = 27
write(3, "\n", 1)                       = 1
read(3, "OK\n", 1002)                   = 3
write(3, "OPTION lc-messages=en_US.UTF-8", 30) = 30
write(3, "\n", 1)                       = 1
read(3, "OK\n", 1002)                   = 3
write(3, "SCD SERIALNO openpgp", 20)    = 20
write(3, "\n", 1)                       = 1
read(3, "ERR 100663356 Not supported <SCD>\n", 1002) = 34
write(3, "BYE", 3)                      = 3
write(3, "\n", 1)                       = 1
close(3)                                = 0
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents(3, /* 6 entries */, 4096)      = 96
close(3)                                = 0
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents(3, /* 6 entries */, 4096)      = 96
getdents(3, /* 0 entries */, 4096)      = 0
close(3)                                = 0
open("/dev/bus/usb/004", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents(3, /* 3 entries */, 4096)      = 48
open("/dev/bus/usb/004/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/004/001", O_RDONLY)  = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xbfeedd14) = -1 EPERM (Operation not permitted)
read(4, "\22\1\0\2\t\0\1@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(4, "\t\2\31\0\1\1\0\340", 8)       = 8
read(4, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f", 17) = 17
close(4)                                = 0
getdents(3, /* 0 entries */, 4096)      = 0
close(3)                                = 0
open("/dev/bus/usb/004/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/004/001", O_RDONLY)  = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfeedd10)    = -1 EPERM (Operation not permitted)
close(3)                                = 0
open("/dev/bus/usb/003", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents(3, /* 3 entries */, 4096)      = 48
open("/dev/bus/usb/003/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/003/001", O_RDONLY)  = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xbfeedd14) = -1 EPERM (Operation not permitted)
read(4, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(4, "\t\2\31\0\1\1\0\340", 8)       = 8
read(4, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(4)                                = 0
getdents(3, /* 0 entries */, 4096)      = 0
close(3)                                = 0
open("/dev/bus/usb/003/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/003/001", O_RDONLY)  = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfeedd10)    = -1 EPERM (Operation not permitted)
close(3)                                = 0
open("/dev/bus/usb/002", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents(3, /* 3 entries */, 4096)      = 48
open("/dev/bus/usb/002/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/002/001", O_RDONLY)  = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xbfeedd14) = -1 EPERM (Operation not permitted)
read(4, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(4, "\t\2\31\0\1\1\0\340", 8)       = 8
read(4, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(4)                                = 0
getdents(3, /* 0 entries */, 4096)      = 0
close(3)                                = 0
open("/dev/bus/usb/002/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/002/001", O_RDONLY)  = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfeedd10)    = -1 EPERM (Operation not permitted)
close(3)                                = 0
open("/dev/bus/usb/001", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents(3, /* 3 entries */, 4096)      = 48
open("/dev/bus/usb/001/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/001", O_RDONLY)  = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xbfeedd14) = -1 EPERM (Operation not permitted)
read(4, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(4, "\t\2\31\0\1\1\0\340", 8)       = 8
read(4, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(4)                                = 0
getdents(3, /* 0 entries */, 4096)      = 0
close(3)                                = 0
open("/dev/bus/usb/001/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/001", O_RDONLY)  = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfeedd10)    = -1 EPERM (Operation not permitted)
close(3)                                = 0
open("/dev/cmx0", O_RDWR|O_LARGEFILE)   = 3
write(3, "e\0\0\0\0\0\0\0\0\0", 10)     = 10
read(3, "\201\0\0\0\0\0\0\1\0\1", 100)  = 10
write(3, "b\0\0\0\0\0\1\0\0\0", 10)     = 10
read(3, "\200\0\0\0\0\0\1A\376\0", 100) = 10
write(3, "e\0\0\0\0\0\2\0\0\0", 10)     = 10
read(3, "\201\0\0\0\0\0\2\1\0\1", 100)  = 10
write(3, "b\0\0\0\0\0\3\0\0\0", 10)     = 10
read(3, "\200\0\0\0\0\0\3A\376\0", 100) = 10
write(2, "gpg: ", 5gpg: )                    = 5
write(2, "apdu_send_simple(0) failed: card inactive\n", 42apdu_send_simple(0) failed: card inactive
) = 42
write(3, "c\0\0\0\0\0\4\0\0\0", 10)     = 10
read(3, "\201\0\0\0\0\0\4\1\0\1", 100)  = 10
close(3)                                = 0
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents(3, /* 6 entries */, 4096)      = 96
getdents(3, /* 0 entries */, 4096)      = 0
close(3)                                = 0
open("/dev/bus/usb/004", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents(3, /* 3 entries */, 4096)      = 48
open("/dev/bus/usb/004/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/004/001", O_RDONLY)  = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xbfeede74) = -1 EPERM (Operation not permitted)
read(4, "\22\1\0\2\t\0\1@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(4, "\t\2\31\0\1\1\0\340", 8)       = 8
read(4, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f", 17) = 17
close(4)                                = 0
getdents(3, /* 0 entries */, 4096)      = 0
close(3)                                = 0
open("/dev/bus/usb/004/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/004/001", O_RDONLY)  = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfeede70)    = -1 EPERM (Operation not permitted)
close(3)                                = 0
open("/dev/bus/usb/003", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents(3, /* 3 entries */, 4096)      = 48
open("/dev/bus/usb/003/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/003/001", O_RDONLY)  = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xbfeede74) = -1 EPERM (Operation not permitted)
read(4, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(4, "\t\2\31\0\1\1\0\340", 8)       = 8
read(4, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(4)                                = 0
getdents(3, /* 0 entries */, 4096)      = 0
close(3)                                = 0
open("/dev/bus/usb/003/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/003/001", O_RDONLY)  = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfeede70)    = -1 EPERM (Operation not permitted)
close(3)                                = 0
open("/dev/bus/usb/002", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents(3, /* 3 entries */, 4096)      = 48
open("/dev/bus/usb/002/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/002/001", O_RDONLY)  = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xbfeede74) = -1 EPERM (Operation not permitted)
read(4, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(4, "\t\2\31\0\1\1\0\340", 8)       = 8
read(4, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(4)                                = 0
getdents(3, /* 0 entries */, 4096)      = 0
close(3)                                = 0
open("/dev/bus/usb/002/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/002/001", O_RDONLY)  = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfeede70)    = -1 EPERM (Operation not permitted)
close(3)                                = 0
open("/dev/bus/usb/001", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents(3, /* 3 entries */, 4096)      = 48
open("/dev/bus/usb/001/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/001", O_RDONLY)  = 4
ioctl(4, USBDEVFS_CONNECTINFO, 0xbfeede74) = -1 EPERM (Operation not permitted)
read(4, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(4, "\t\2\31\0\1\1\0\340", 8)       = 8
read(4, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(4)                                = 0
getdents(3, /* 0 entries */, 4096)      = 0
close(3)                                = 0
open("/dev/bus/usb/001/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/001", O_RDONLY)  = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfeede70)    = -1 EPERM (Operation not permitted)
close(3)                                = 0
open("/dev/cmx0", O_RDWR|O_LARGEFILE)   = 3
open("/usr/share/locale/locale.alias", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f75000
read(4, "# Locale name alias data base.\n# Copyright (C) 199"..., 4096) = 2586
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0xb7f75000, 4096)                = 0
open("/locale/en_US.UTF-8/LC_MESSAGES/gnupg.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/locale/en_US.utf8/LC_MESSAGES/gnupg.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/locale/en_US/LC_MESSAGES/gnupg.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/locale/en.UTF-8/LC_MESSAGES/gnupg.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/locale/en.utf8/LC_MESSAGES/gnupg.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/locale/en/LC_MESSAGES/gnupg.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/tty", O_RDWR|O_LARGEFILE)    = 4
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=25700, ...}) = 0
mmap2(NULL, 25700, PROT_READ, MAP_SHARED, 5, 0) = 0xb7f6f000
close(5)                                = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
stat64("/home/micah/.terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/home/micah/.terminfo/d/dumb", R_OK) = -1 ENOENT (No such file or directory)
stat64("/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/etc/terminfo/d/dumb", R_OK)    = -1 ENOENT (No such file or directory)
stat64("/lib/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/lib/terminfo/d/dumb", R_OK)    = 0
open("/lib/terminfo/d/dumb", O_RDONLY|O_LARGEFILE) = 5
read(5, "\32\1\30\0\2\0\1\0\202\0\10\0dumb|80-column dumb tty\0\0\1P\0\377\377\0\0\2\0\377\377\377\377"..., 4097) = 308
close(5)                                = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=0, ws_col=0, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(4, TIOCGWINSZ, {ws_row=0, ws_col=0, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(4, TIOCGWINSZ, {ws_row=0, ws_col=0, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(4, TIOCSWINSZ, {ws_row=0, ws_col=0, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
stat64("/home/micah/.inputrc", 0xbfeedf74) = -1 ENOENT (No such file or directory)
stat64("/etc/inputrc", {st_mode=S_IFREG|0644, st_size=1698, ...}) = 0
open("/etc/inputrc", O_RDONLY)          = 5
read(5, "# /etc/inputrc - global inputrc for libreadline\n# "..., 1698) = 1698
close(5)                                = 0
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(4, TIOCGWINSZ, {ws_row=0, ws_col=0, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(4, TIOCSWINSZ, {ws_row=0, ws_col=0, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
ioctl(4, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGWINCH, {0xb7f1bc40, [], SA_RESTART}, {SIG_DFL}, 8) = 0
fstat64(4, {st_mode=S_IFCHR|0666, st_rdev=makedev(5, 0), ...}) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f6e000
write(4, "Please insert the card and hit return or enter \'c\'"..., 62Please insert the card and hit return or enter 'c' to cancel: ) = 62
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(4, 
"\n", 1)                        = 1
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(4, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon -echo ...}) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGWINCH, {SIG_DFL}, {0xb7f1bc40, [], SA_RESTART}, 8) = 0
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 5
fstat64(5, {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
getdents(5, /* 6 entries */, 4096)      = 96
getdents(5, /* 0 entries */, 4096)      = 0
close(5)                                = 0
open("/dev/bus/usb/004", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 5
fstat64(5, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
getdents(5, /* 3 entries */, 4096)      = 48
open("/dev/bus/usb/004/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/004/001", O_RDONLY)  = 6
ioctl(6, USBDEVFS_CONNECTINFO, 0xbfeedd14) = -1 EPERM (Operation not permitted)
read(6, "\22\1\0\2\t\0\1@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(6, "\t\2\31\0\1\1\0\340", 8)       = 8
read(6, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\4\0\f", 17) = 17
close(6)                                = 0
getdents(5, /* 0 entries */, 4096)      = 0
close(5)                                = 0
open("/dev/bus/usb/004/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/004/001", O_RDONLY)  = 5
ioctl(5, USBDEVFS_IOCTL, 0xbfeedd10)    = -1 EPERM (Operation not permitted)
close(5)                                = 0
open("/dev/bus/usb/003", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 5
fstat64(5, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
getdents(5, /* 3 entries */, 4096)      = 48
open("/dev/bus/usb/003/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/003/001", O_RDONLY)  = 6
ioctl(6, USBDEVFS_CONNECTINFO, 0xbfeedd14) = -1 EPERM (Operation not permitted)
read(6, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(6, "\t\2\31\0\1\1\0\340", 8)       = 8
read(6, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(6)                                = 0
getdents(5, /* 0 entries */, 4096)      = 0
close(5)                                = 0
open("/dev/bus/usb/003/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/003/001", O_RDONLY)  = 5
ioctl(5, USBDEVFS_IOCTL, 0xbfeedd10)    = -1 EPERM (Operation not permitted)
close(5)                                = 0
open("/dev/bus/usb/002", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 5
fstat64(5, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
getdents(5, /* 3 entries */, 4096)      = 48
open("/dev/bus/usb/002/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/002/001", O_RDONLY)  = 6
ioctl(6, USBDEVFS_CONNECTINFO, 0xbfeedd14) = -1 EPERM (Operation not permitted)
read(6, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(6, "\t\2\31\0\1\1\0\340", 8)       = 8
read(6, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(6)                                = 0
getdents(5, /* 0 entries */, 4096)      = 0
close(5)                                = 0
open("/dev/bus/usb/002/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/002/001", O_RDONLY)  = 5
ioctl(5, USBDEVFS_IOCTL, 0xbfeedd10)    = -1 EPERM (Operation not permitted)
close(5)                                = 0
open("/dev/bus/usb/001", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 5
fstat64(5, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
getdents(5, /* 3 entries */, 4096)      = 48
open("/dev/bus/usb/001/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/001", O_RDONLY)  = 6
ioctl(6, USBDEVFS_CONNECTINFO, 0xbfeedd14) = -1 EPERM (Operation not permitted)
read(6, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(6, "\t\2\31\0\1\1\0\340", 8)       = 8
read(6, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(6)                                = 0
getdents(5, /* 0 entries */, 4096)      = 0
close(5)                                = 0
open("/dev/bus/usb/001/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/001", O_RDONLY)  = 5
ioctl(5, USBDEVFS_IOCTL, 0xbfeedd10)    = -1 EPERM (Operation not permitted)
close(5)                                = 0
open("/dev/cmx0", O_RDWR|O_LARGEFILE)   = -1 EBUSY (Device or resource busy)
open("/dev/cmx1", O_RDWR|O_LARGEFILE)   = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=94031, ...}) = 0
mmap2(NULL, 94031, PROT_READ, MAP_PRIVATE, 5, 0) = 0xb7c1f000
close(5)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libpcsclite.so.1", 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\360\30\0\0004\0\0\0\20\203\0\0\0\0\0\0004\0"..., 512) = 512
fstat64(5, {st_mode=S_IFREG|0644, st_size=34512, ...}) = 0
mmap2(NULL, 35972, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0xb7c16000
mmap2(0xb7c1e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x8) = 0xb7c1e000
close(5)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libpthread.so.0", 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\20H\0\0004\0\0\0\330C\1\0\0\0\0\0004\0 \0\t"..., 512) = 512
fstat64(5, {st_mode=S_IFREG|0755, st_size=112354, ...}) = 0
mmap2(NULL, 94688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0xb7bfe000
mmap2(0xb7c12000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x13) = 0xb7c12000
mmap2(0xb7c14000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7c14000
close(5)                                = 0
set_tid_address(0xb7d706f8)             = 25583
set_robust_list(0xb7d70700, 0xc)        = 0
futex(0xbfeedc10, 0x81 /* FUTEX_??? */, 1) = 0
rt_sigaction(SIGRTMIN, {0xb7c022c0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb7c02340, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
uname({sys="Linux", node="lillypad", ...}) = 0
munmap(0xb7c1f000, 94031)               = 0
stat64("/var/run/pcscd/pcscd.pub", 0xbfeed604) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
write(2, "gpg: ", 5gpg: )                    = 5
write(2, "pcsc_establish_context failed: no service (0x80100"..., 55pcsc_establish_context failed: no service (0x8010001d)
) = 55
write(2, "gpg: ", 5gpg: )                    = 5
write(2, "card reader not available\n", 26card reader not available
) = 26
write(2, "gpg: ", 5gpg: )                    = 5
write(2, "OpenPGP card not available: general error\n", 42OpenPGP card not available: general error
) = 42
munmap(0xb7f76000, 32768)               = 0
exit_group(2)                           = ?
Process 25583 detached




More information about the Gnupg-users mailing list