Re: Problems with file conduit and Treo 680

Adam C Powell IV <[email protected]>
Newsgroups gmane.comp.gnome.apps.pilot
Organization Debian GNU/Linux
Message-ID <[email protected]>
On Sun, 2007-09-23 at 21:56 +0100, Matt Davey wrote:
> > I have the same timing issues with a Treo 700p, but worse, because if I
> > don't pause the gpilotd daemon before plugging in to charge (no
> > hotsync), it infinite-loops.  With pilot-xfer, I need to hit hotsync 1-5
> > seconds before running pilot-xfer.  This is with libusb instead of
> > visor, I can't get visor to work at all with the 700p.
> 
> Adam,
> 
> Do you get into an infinite loop if you start pilot-xfer before plugging
> in the 700p?  If not, we should try to find out how gpilotd gets
> stuck.  Have you tried attaching with gdb and seeing what bit of code
> it is in via a stack trace?
> 
> I guess the pilot-link people should try to see how they can distinguish
> the charging connection from a sync attempt...

Okay, with gpilotd and the applet dead, I run "pilot-xfer -p usb: -l",
and strace (attached) gets to the "futex(... NULL".  Then I hit hotsync
on the 700p, and pilot-xfer goes up to max CPU but with no further
strace output.

Then I do "gdb pilot-xfer" and "run -p usb: -l", wait a bit, and again
the pilot-xfer process goes to max CPU.  Hmm, oh well, no debugging
symbols, this is Debian. :-(

I can try rebuilding pilot-link with dh_strip removed, but don't have
time now.  Does the strace output help?

-Adam
-- 
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Engineering consulting using open source tools
http://www.opennovation.com/

_______________________________________________
gnome-pilot-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-pilot-list
pilot-xfer-strace (text/plain, 10 KB)
execve("/usr/bin/pilot-xfer", ["pilot-xfer", "-p", "usb:", "-l"], [/* 44 vars */]) = 0
uname({sys="Linux", node="doorstop", ...}) = 0
brk(0)                                  = 0x8056000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f19000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f18000
open("/home/hazelsct/i486-linux/lib/tls/i686/cmov/libpisock.so.9", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/home/hazelsct/i486-linux/lib/tls/i686/cmov", 0xbf823148) = -1 ENOENT (No such file or directory)
open("/home/hazelsct/i486-linux/lib/tls/i686/libpisock.so.9", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/home/hazelsct/i486-linux/lib/tls/i686", 0xbf823148) = -1 ENOENT (No such file or directory)
open("/home/hazelsct/i486-linux/lib/tls/cmov/libpisock.so.9", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/home/hazelsct/i486-linux/lib/tls/cmov", 0xbf823148) = -1 ENOENT (No such file or directory)
open("/home/hazelsct/i486-linux/lib/tls/libpisock.so.9", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/home/hazelsct/i486-linux/lib/tls", 0xbf823148) = -1 ENOENT (No such file or directory)
open("/home/hazelsct/i486-linux/lib/i686/cmov/libpisock.so.9", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/home/hazelsct/i486-linux/lib/i686/cmov", 0xbf823148) = -1 ENOENT (No such file or directory)
open("/home/hazelsct/i486-linux/lib/i686/libpisock.so.9", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/home/hazelsct/i486-linux/lib/i686", 0xbf823148) = -1 ENOENT (No such file or directory)
open("/home/hazelsct/i486-linux/lib/cmov/libpisock.so.9", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/home/hazelsct/i486-linux/lib/cmov", 0xbf823148) = -1 ENOENT (No such file or directory)
open("/home/hazelsct/i486-linux/lib/libpisock.so.9", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/home/hazelsct/i486-linux/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=68969, ...}) = 0
mmap2(NULL, 68969, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f07000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libpisock.so.9", 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\20`\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=208320, ...}) = 0
mmap2(NULL, 223760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ed0000
mmap2(0xb7eff000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2f) = 0xb7eff000
mmap2(0xb7f03000, 14864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f03000
close(3)                                = 0
open("/home/hazelsct/i486-linux/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libpthread.so.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\240H\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=89370, ...}) = 0
mmap2(NULL, 70104, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ebe000
mmap2(0xb7ecc000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0xb7ecc000
mmap2(0xb7ece000, 4568, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ece000
close(3)                                = 0
open("/home/hazelsct/i486-linux/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/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\240O\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1241392, ...}) = 0
mmap2(NULL, 1247388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d8d000
mmap2(0xb7eb4000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x127) = 0xb7eb4000
mmap2(0xb7ebb000, 10396, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ebb000
close(3)                                = 0
open("/home/hazelsct/i486-linux/lib/libusb-0.1.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
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\200\22"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=28740, ...}) = 0
mmap2(NULL, 31768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d85000
mmap2(0xb7d8b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0xb7d8b000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d84000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d83000
mprotect(0xb7eb4000, 20480, PROT_READ)  = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d836c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7f07000, 68969)               = 0
set_tid_address(0xb7d83708)             = 14102
rt_sigaction(SIGRTMIN, {0xb7ec24c0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb7ec2420, [], 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="doorstop", ...}) = 0
brk(0)                                  = 0x8056000
brk(0x8077000)                          = 0x8077000
open("/dev/null", O_RDWR)               = 3
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
getdents64(4, /* 3 entries */, 4096)    = 72
close(4)                                = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf823008) = -1 ENOTTY (Inappropriate ioctl for device)
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
getdents64(4, /* 3 entries */, 4096)    = 72
getdents64(4, /* 0 entries */, 4096)    = 0
close(4)                                = 0
open("/dev/bus/usb/001", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
fstat64(4, {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
getdents64(4, /* 6 entries */, 4096)    = 144
open("/dev/bus/usb/001/016", O_RDWR)    = 5
ioctl(5, USBDEVFS_CONNECTINFO, 0xbf822f34) = 0
read(5, "\22\1\20\1\0\0\0\0200\10a\0\0\1\1\2\5\1", 18) = 18
read(5, "\t\2.\0\1\1\0\300", 8)         = 8
read(5, "\372\t\4\0\0\4\377\0\0\0\7\5\201\2@\0\n\7\5\2\2@\0\0\7"..., 38) = 38
close(5)                                = 0
open("/dev/bus/usb/001/003", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/003", O_RDONLY)  = 5
ioctl(5, USBDEVFS_CONNECTINFO, 0xbf822f34) = -1 EPERM (Operation not permitted)
read(5, "\22\1\20\1\0\0\0\10F\10\20A2\1\0\0\0\1", 18) = 18
read(5, "\t\2\'\0\1\1\0\200", 8)        = 8
read(5, "\372\t\4\0\0\3\377\377\377\0\7\5\201\2@\0\0\7\5\2\2@\0"..., 31) = 31
close(5)                                = 0
open("/dev/bus/usb/001/002", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/002", O_RDONLY)  = 5
ioctl(5, USBDEVFS_CONNECTINFO, 0xbf822f34) = -1 EPERM (Operation not permitted)
read(5, "\22\1\20\1\t\0\0\10Q\4F %\1\0\0\0\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8)       = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\1\0\377", 17) = 17
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_CONNECTINFO, 0xbf822f34) = -1 EPERM (Operation not permitted)
read(5, "\22\1\20\1\t\0\0@\0\0\0\0\6\2\3\2\1\1", 18) = 18
read(5, "\t\2\31\0\1\1\0\340", 8)       = 8
read(5, "\0\t\4\0\0\1\t\0\0\0\7\5\201\3\2\0\377", 17) = 17
close(5)                                = 0
getdents64(4, /* 0 entries */, 4096)    = 0
close(4)                                = 0
open("/dev/bus/usb/001/016", O_RDWR)    = 4
ioctl(4, USBDEVFS_IOCTL, 0xbf822f30)    = -1 ENOTTY (Inappropriate ioctl for device)
close(4)                                = 0
open("/dev/bus/usb/001/003", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/003", O_RDONLY)  = 4
ioctl(4, USBDEVFS_IOCTL, 0xbf822f30)    = -1 EPERM (Operation not permitted)
close(4)                                = 0
open("/dev/bus/usb/001/002", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/002", O_RDONLY)  = 4
ioctl(4, USBDEVFS_IOCTL, 0xbf822f30)    = -1 EPERM (Operation not permitted)
close(4)                                = 0
open("/dev/bus/usb/001/001", O_RDWR)    = -1 EACCES (Permission denied)
open("/dev/bus/usb/001/001", O_RDONLY)  = 4
ioctl(4, USBDEVFS_IOCTL, 0xbf822f30)    = -1 EPERM (Operation not permitted)
close(4)                                = 0
open("/dev/bus/usb/001/016", O_RDWR)    = 4
ioctl(4, USBDEVFS_CONTROL, 0xbf822ecc)  = -1 EPROTO (Protocol error)
ioctl(4, USBDEVFS_CONTROL, 0xbf822ecc)  = -1 EPROTO (Protocol error)
ioctl(4, USBDEVFS_CLAIMINTERFACE, 0xbf822fa4) = 0
mmap2(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7582000
mprotect(0xb7582000, 4096, PROT_NONE)   = 0
clone(child_stack=0xb7d824c4, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID|CLONE_DETACHED, parent_tidptr=0xb7d82bf8, {entry_number:6, base_addr:0xb7d82bb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb7d82bf8) = 14103
gettimeofday({1190587079, 259337}, NULL) = 0
futex(0xb7eff724, FUTEX_WAIT, 1, NULL <unfinished ...>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.