bugAVR Downloader/UploaDEr - Bugs: bug #40142, Floating point exception on Ubuntu...


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

bug #40142: Floating point exception on Ubuntu 10.04

Submitted by:  Jeffry R. Abramson <jeffryr>
Submitted on:  Sun Sep 29 21:43:59 2013  
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Ready For TestPrivacy: Public
Assigned to: Rene Liebscher <rliebscher>Originator Name: Jeffry R. Abramson
Open/Closed: OpenRelease: None
Programmer hardware: Device type: 

Fri Nov 14 10:23:57 2014, comment #3:

Fixed with svn revision 1340.
Tested by trying to write an empty eeprom file.

Rene Liebscher <rliebscher>
Project MemberIn charge of this item.
Tue Oct 1 00:46:35 2013, comment #2:

Attached are

This is an edge case as there is no eeprom data to upload with blink.c so there is no real need for the -U eeprom:w:blink.eep arguments. It looks like this causes report_progress(nread, npages, NULL) to be called with npages still equal to 0. Compiling the attached eeprom.c and uploading the results works without generating any errors. Uploading the blink.c results with the 5.10 version of avrdude that came with Ubuntu 10.04 also works without error.

(file #29273, file #29274, file #29275, file #29276)

Jeffry R. Abramson <jeffryr>
Mon Sep 30 12:33:04 2013, comment #1:

You are certainly right that adding a sanity check there is
a good idea. Anyway, it only masks the real problem: this
situation is not supposed to happen.

I cannot reproduce this in any way. What is your input data?

It displays a "Reading" message. Do you know which memory
region it belongs to, does it already crash when trying to
read the signature?

Try running with -vvv, that might give us some better idea
what action is being performed by the time it crashes.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Sun Sep 29 21:43:59 2013, original submission:

avrdude 6.0.1 generates a floating point exception when uploading a program to an ATmega328p through a usbasp. When run through gdb, the error is as follows:

Reading | | 0% 0.00s
Program received signal SIGFPE, Arithmetic exception.
0x0000000000407ae8 in report_progress (completed=<value optimized out>,
total=0, hdr=0x0) at avr.c:1241
1241 int percent = (completed * 100) / total;
(gdb) bt
#0 0x0000000000407ae8 in report_progress (completed=<value optimized out>,
total=0, hdr=0x0) at avr.c:1241
#1 0x000000000040854c in avr_read (pgm=0x6c1200, p=<value optimized out>,
memtype=<value optimized out>, v=<value optimized out>) at avr.c:423
#2 0x000000000041d332 in do_op (pgm=0x6c1200, p=0x8012b0, upd=0x66a530,
flags=<value optimized out>) at update.c:348
#3 0x000000000040535f in main (argc=<value optimized out>,
argv=<value optimized out>) at main.c:1217

Checking for total == 0 before computing percent in report_progress() at least works around the problem.

Jeffry R. Abramson <jeffryr>


Attached Files
file #29273:  blink.c added by jeffryr (603B - text/x-csrc - Attachments)
file #29274:  make_results.txt added by jeffryr (2kB - text/plain - Attachments)
file #29275:  avrdude.txt added by jeffryr (24kB - text/plain - Attachments)
file #29276:  eeprom.c added by jeffryr (992B - text/x-csrc - Attachments)


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 joerg_wunsch (Posted a comment)
  • -unavailable- added by jeffryr (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Nov 14 10:23:57 2014rliebscherStatusNone=>Ready For Test
      Assigned toNone=>rliebscher
    Tue Oct 1 00:46:35 2013jeffryrAttached File-=>Added blink.c, #29273
      Attached File-=>Added make_results.txt, #29274
      Attached File-=>Added avrdude.txt, #29275
      Attached File-=>Added eeprom.c, #29276

    Back to the top

    Powered by Savane 3.1-cleanup1