patchAVR Downloader/UploaDEr - Patches: patch #7635, Fix avrftdi.c/h Random...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #7635: Fix avrftdi.c/h Random lockup/moved globals to private data against 5.11.1

Submitter:  Doug S <rickyrockrat>
Submitted:  Sun 16 Oct 2011 04:23:53 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Duplicate Privacy:  Public
Assigned to:  rliebscher Open/Closed:  Closed

Sun 05 Feb 2012 12:27:11 PM UTC, comment #1: 

see also patch #7718 Merge global data of avrftdi in a private data structure

Rene Liebscher <rliebscher>
Group Member
Sun 16 Oct 2011 04:23:53 AM UTC, original submission:  

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 temporarily unavailable)

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.


Doug S <rickyrockrat>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rliebscher (Posted a comment)
  • -email is unavailable- added by rickyrockrat (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-02-11 rliebscher StatusNone Duplicate
        Assigned toNone rliebscher
        Open/ClosedOpen Closed
    2011-10-16 rickyrockrat Attached File- Added avrdude-fixlock-privatedata-5.11.1.patch, #24156

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code