bugAVR C Runtime Library - Bugs: bug #21841, Add CLI to exit() and abort() loops

 
 

bug #21841: Add CLI to exit() and abort() loops

Submitted by:  Joerg Wunsch <joerg_wunsch>
Submitted on:  Tue 18 Dec 2007 08:55:46 PM UTC  
 
Category: LibrarySeverity: 3 - Normal
Priority: 5 - NormalItem Group: libc code
Status: FixedPercent Complete: 0%
Assigned to: Anatoly Sokolov <aesok>Open/Closed: Closed
Release: NoneFixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 19 Jan 2008 12:20:13 PM UTC, comment #2:

Committed in GCC HEAD (future 4.3).

Anatoly Sokolov <aesok>
Project AdministratorIn charge of this item.
Wed 19 Dec 2007 09:50:48 AM UTC, comment #1:

OK, I completely missed the subtle difference between _exit
and exit here. Dmitry pointed out that both, exit() and
abort() eventually jump to _exit which is provided by
libgcc.a. Thus, the default implementation of _exit is the
correct place to add the CLI to.

Assigning it to Anatoly since he's got commit privs for GCC.
Suggested patch attached.

(file #14661)

Joerg Wunsch <joerg_wunsch>
Project Administrator
Tue 18 Dec 2007 08:55:46 PM UTC, original submission:

The supplied functions exit() and abort() both run into an
infinite loop. However, interrupts are still potentially
enabled at that point so it's quite possible the application
would just proceed anyway.

It's suggested to add CLI instructions before both loops.

Joerg Wunsch <joerg_wunsch>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #14661:  libgcc.patch added by joerg_wunsch (368B - application/octet-stream - Suggested patch for libgcc.)

 

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 aesok (Posted a comment)
  • -unavailable- added by joerg_wunsch (Submitted the item)
  •  

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

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 19 Mar 2008 10:28:17 PM UTCarcanumOpen/ClosedOpen=>Closed
    Sat 19 Jan 2008 12:20:50 PM UTCaesokStatusReady For Test=>Fixed
    Wed 19 Dec 2007 09:51:05 AM UTCjoerg_wunschStatusFixed=>Ready For Test
    Wed 19 Dec 2007 09:50:48 AM UTCjoerg_wunschAttached File-=>Added libgcc.patch, #14661
      Assigned tojoerg_wunsch=>aesok
      Open/ClosedClosed=>Open
    Tue 18 Dec 2007 10:33:33 PM UTCjoerg_wunschStatusNone=>Fixed
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1