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

 
 

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

bug #40142: Floating point exception on Ubuntu 10.04

Submitter:  Jeffry R. Abramson <jeffryr>
Submitted:  Sun 29 Sep 2013 09:43:59 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Ready For Test Privacy:  Public
Assigned to:  rliebscher Originator Name:  Jeffry R. Abramson
Open/Closed:  Open Release:  None
Programmer hardware:  Device type: 

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

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

Rene Liebscher <rliebscher>
Group Member
Tue 01 Oct 2013 12:46:35 AM UTC, 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 30 Sep 2013 12:33:04 PM UTC, 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>
Group administrator
Sun 29 Sep 2013 09:43:59 PM UTC, 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>

 

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

Attached Files
file #29273:  blink.c added by jeffryr (603B - text/x-csrc - Attachments)
file #29274:  make_results.txt added by jeffryr (2KiB - text/plain - Attachments)
file #29275:  avrdude.txt added by jeffryr (24KiB - 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
  • -email is unavailable- added by rliebscher (Posted a comment)
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by jeffryr (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-11-14 rliebscher StatusNone Ready For Test
        Assigned toNone rliebscher
    2013-10-01 jeffryr Attached 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.13-f8d8.
    Corresponding source code