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

 
 

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

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

Submitted by:  Doug S <rickyrockrat>
Submitted on:  Sun 16 Oct 2011 04:23:53 AM UTC  
 
Category: NonePriority: 5 - Normal
Status: DuplicatePrivacy: Public
Assigned to: Rene Liebscher <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>
Project MemberIn charge of this item.
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>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 11 Feb 2012 07:56:56 PM UTCrliebscherStatusNone=>Duplicate
      Assigned toNone=>rliebscher
      Open/ClosedOpen=>Closed
    Sun 16 Oct 2011 04:23:53 AM UTCrickyrockratAttached File-=>Added avrdude-fixlock-privatedata-5.11.1.patch, #24156

    Back to the top


    Powered by Savane 3.1-cleanup