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:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Privacy:  Public
Assigned to:  None Originator Name:  Tom Hall
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Programmer 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).



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
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by thall (Posted a comment)
  • -email is unavailable- added by thall (Voted in favor of this item)
  • -email is unavailable- added by None (Submitted the item)

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

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-09 joerg_wunsch StatusNone => Duplicate
        Open/ClosedOpen => Closed
    2015-12-06 thall Carbon-Copy- => Added thall
    2015-12-06 None Attached File- => Added Backtrace 1.txt, #35654

    Back to the top

    Powered by Savane 3.3