[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] [patch #7635] Fix avrftdi.c/h Random lockup/moved globals
[avrdude-dev] [patch #7635] Fix avrftdi.c/h Random lockup/moved globals to private data against 5.11.1
Sun, 16 Oct 2011 04:23:54 +0000
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:188.8.131.52) Gecko/20110905 Ubuntu/10.04 (lucid) Firefox/3.6.22
Summary: Fix avrftdi.c/h Random lockup/moved globals to
private data against 5.11.1
Project: AVR Downloader/UploaDEr
Submitted by: rickyrockrat
Submitted on: Sun 16 Oct 2011 04:23:53 AM GMT
Priority: 5 - Normal
Assigned to: None
Discussion Lock: Any
I found a strange lockup with avrftdi on writes - verifys and reads work with
no problem. I had a hardware change (new mother board) so I thought at first
that was it, but it happens on at least two different computers.
At random places while writting, it will lock up and loop forever.
strace gives this (forever, AFAIK):
ioctl(3, USBDEVFS_REAPURBNDELAY, 0x7fff2a91b1e8) = -1 EAGAIN (Resource
Removing the purge buffers seems to fix the problem. I'm not sure what all
ramifications the purge has, since I didn't bother to delve into the ftdi
code, but I found one other example, and I noticed they had found this problem
and removed the purge call as well.
This patch also moves the globals to a private structure, as per Joerg's last
request to do so.
Date: Sun 16 Oct 2011 04:23:53 AM GMT Name:
avrdude-fixlock-privatedata-5.11.1.patch Size: 19kB By: rickyrockrat
Reply to this item at:
Message sent via/by Savannah
- [avrdude-dev] [patch #7635] Fix avrftdi.c/h Random lockup/moved globals to private data against 5.11.1,
Doug S <=