bugAVR Downloader/UploaDEr - Bugs: bug #46618, Arithmetic exception (SIGFPE) in...

 
 

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

bug #46618: Arithmetic exception (SIGFPE) in ser_setspeed

Submitted by:  None
Submitted on:  Sun 06 Dec 2015 08:10:30 PM UTC  
Votes:  1  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: DuplicatePrivacy: Public
Assigned to: NoneOriginator Name: Tom Hall
Originator Email: -unavailable-Open/Closed: Closed
Release: NoneProgrammer hardware: 
Device type: 

Wed 09 Dec 2015 10:38:24 PM UTC, comment #2:

Duplicate of bug #46610.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Sun 06 Dec 2015 08:31:06 PM UTC, comment #1:

I have confirmed that this bug does not exist in avrdude 6.1, which appears to use a lookup table in ser_setspeed instead of calculating baud rates.

Tom Hall <thall>
Sun 06 Dec 2015 08:10:30 PM UTC, original submission:

Note: possible duplicate of #46610, but I can't say for sure, so I'll submit it as a separate report and leave it to those who know to mark duplicates.

Using Arch Linux arm on an arm Cortex-A9 (armv7h). avrdude is version 6.2.

Attempting to program an arduino micro using the arduino-mk makefiles. It calls avrdude with the following arguments:
avrdude -q -V -p atmega32u4 -D -c avr109 -b 57600 -P /dev/ttyACM0 -U flash:w:build-micro/ardmk-test.hex:i

This caused a floating point exception, so I rebuilt avrdude with debug symbols and obtained a backtrace (attached). The exception occurs in ser_setspeed on line 158 when it attempts to divide by ss.custom_divisor, having calculated custom_divisor as zero:

In this instance, ss.baud_base == 1200 (I assume the ioctl call put it there), speed == 57600 (from command line args), so custom_divisor is calculated as zero (would be ~0.52 if they were real numbers instead of ints).

Anonymous

 

Attached Files
file #35654:  Backtrace 1.txt added by None (9KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by thall (Posted a comment)
  • -unavailable- added by thall (Voted in favor of this item)
  • -unavailable- added by None (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 1 encouragement 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
    Wed 09 Dec 2015 10:38:24 PM UTCjoerg_wunschStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Sun 06 Dec 2015 08:31:06 PM UTCthallCarbon-Copy-=>Added thall
    Sun 06 Dec 2015 08:10:30 PM UTCNoneAttached File-=>Added Backtrace 1.txt, #35654

    Back to the top


    Powered by Savane 3.1-cleanup1