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

 
 

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

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

Submitter:  Joerg Wunsch <joerg_wunsch>
Submitted:  Tue 18 Dec 2007 08:55:46 PM UTC
   
 
Category:  Library Severity:  3 - Normal
Priority:  5 - Normal Item Group:  libc code
Status:  Fixed Assigned to:  aesok
Percent Complete:  0% Open/Closed:  Closed
Release:  None Fixed Release:  None

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

Committed in GCC HEAD (future 4.3).


Anatoly Sokolov <aesok>
Group administrator
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>
Group 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>
Group administrator

 

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

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

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-03-19 arcanum Open/ClosedOpen Closed
    2008-01-19 aesok StatusReady For Test Fixed
    2007-12-19 joerg_wunsch StatusFixed Ready For Test
    2007-12-19 joerg_wunsch Attached File- Added libgcc.patch, #14661
        Assigned tojoerg_wunsch aesok
        Open/ClosedClosed Open
    2007-12-18 joerg_wunsch StatusNone Fixed
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code