URL:
  <http://savannah.nongnu.org/bugs/?40142>

                 Summary: Floating point exception on Ubuntu 10.04
                 Project: AVR Downloader/UploaDEr
            Submitted by: jeffryr
            Submitted on: Sun 29 Sep 2013 09:43:59 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Jeffry R. Abramson
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?40142>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to