bugGNUstep - Bugs: bug #50031, libgnustep-base calls exit()

Group
 
 

bug #50031: libgnustep-base calls exit()

Submitter:  Luigi Baldoni <aloysius>
Submitted:  Wed 11 Jan 2017 09:35:30 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Declined
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 12 Jan 2017 10:39:02 AM UTC, comment #1: 

I have reviewed the use of exit() and found all cases to be correct/necessary.
Usage falls into four categories:
1. when the developer calls exit on the main thread ... the program must exit.
2. in the uncaught exception handler ... the program must exit
3. in a child after fork() where the subprocess can't be started properly
4. system startup failure before main() is entered (and therefore before any application developer code can handle Anything)

Richard Frith-Macdonald <CaS>
Group Member
Wed 11 Jan 2017 09:35:30 PM UTC, original submission:  

Courtesy of rpmlint:

gnustep-base.x86_64: W: shared-lib-calls-exit /usr/lib6/libgnustep-base.so.1.24.9 exit@GLIBC_2.2.5
This library package calls exit() or _exit(), probably in a non-fork() context. Doing so from a library is strongly discouraged - when a library function calls exit(), it prevents the calling program from handling the error, reporting it to the user, closing files properly, and cleaning up any state that the program has. It is preferred for the library to return an actual error code and let the calling program decide how to handle the situation.

Regards

Luigi Baldoni <aloysius>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by aloysius (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-01-12 CaS StatusNone Wont Fix
        Open/ClosedOpen Declined

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code