bugGNUstep - Bugs: bug #30892, Deadlock on...

Group
 
 

bug #30892: Deadlock on performSelectorOnMainThread:

Submitter:  Jonathan Gillaspie <jonathanosx>
Submitted:  Fri 27 Aug 2010 09:16:39 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Ready For Test
Privacy:  Public Assigned to:  CaS
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 05 Mar 2011 03:16:56 PM UTC, comment #2: 

No update after several months ... assumed to be OK.

Richard Frith-Macdonald <CaS>
Group Member
Mon 27 Dec 2010 08:50:08 PM UTC, comment #1: 

Made this a base bug report and as I remember Richard fixing this, changed the state to in test.

Fred Kiefer <FredKiefer>
Group Member
Fri 27 Aug 2010 09:16:39 PM UTC, original submission:  

We are running into an occasional problem with our application on GNUstep (Ubuntu 9.04) where we deadlock when attempting to call performSelectorOnMainThread:  The back trace with the locked threads is attached.  The only condition that I can see for this situation is that somehow the outputFD of the pipe that is used to "trigger" the main run loop   to pick-up is blocked and can't be written to (GSRunLoopThreadInfo of NSThread.m).  I do notice that although NBLK_OPT is set for the inputFD, it isn't set for outputFD which seems to be where the deadlock is occurring.

First, does anyone have an alternate (or clearer vision) of why this deadlock condition is occuring?

Second, does anyone have a preferred solution other than to set the outputFD to not-block?


Jonathan Gillaspie <jonathanosx>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #21326:  performSelectorOnMmainThreadDeadlock.txt added by jonathanosx (4KiB - text/plain - Backtrace of Deadlock)

 

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 FredKiefer (Posted a comment)
  • -email is unavailable- added by jonathanosx (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-05 CaS Open/ClosedIn Test Closed
    2010-12-27 FredKiefer CategoryBackend Base/Foundation
        StatusNone Ready For Test
        Assigned toNone CaS
        Open/ClosedOpen In Test
    2010-08-27 jonathanosx Attached File- Added performSelectorOnMmainThreadDeadlock.txt, #21326

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code