bugAVR C Runtime Library - Bugs: bug #18509, strtod.S crashes due to stack...

 
 

bug #18509: strtod.S crashes due to stack problem with atmega 2560

Submitted by:  None
Submitted on:  Tue 12 Dec 2006 08:12:59 PM UTC  
 
Category: LibrarySeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPercent Complete: 100%
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 30 Dec 2006 11:26:53 PM UTC, comment #1:

Fixed in CVS HEAD. The fix is to pop and restore EIND before
calling _prologue_saves_ in the 3-byte PC case. Unfortunately,
this causes a couple of header file changes in order to expose
the actual value of EIND while compiling avr-libc.

Entirely closing the tracker item is pending a merge into the 1.4
branch.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Tue 12 Dec 2006 08:12:59 PM UTC, original submission:

Hi,

This section of code in the strtod.S file only pops off 2 bytes from the stack. I did a quick fix which doesn't use the prologue macro which I have attached as a patch file. The patch was originally done for version 1.43 library.

.L_strtod_prologue:
clr XL ; no locals
clr XH
pop ZH
pop ZL
PROLOGUE_SAVES(6)

Best regards

Brent

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #11509:  strtod.diff added by None (693B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by arcanum (Updated the item)
  • -unavailable- added by joerg_wunsch (Posted a comment)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 May 2007 08:25:58 PM UTCarcanumPrivacyPrivate=>Public
    Mon 01 Jan 2007 09:44:09 PM UTCjoerg_wunschStatusNone=>Fixed
      Percent Complete90%=>100%
      Open/ClosedOpen=>Closed
    Sat 30 Dec 2006 11:26:53 PM UTCjoerg_wunschPercent Complete0%=>90%
      Assigned toNone=>joerg_wunsch
    Tue 12 Dec 2006 08:12:59 PM UTCNoneAttached File-=>Added strtod.diff, #11509

    Back to the top


    Powered by Savane 3.1-cleanup1