bugGNUstep - Bugs: bug #38981, NSMessagePortNameServer initialize...

Group
 
 

bug #38981: NSMessagePortNameServer initialize method doesn't remove obsolete name references

Submitter:  Michael Silva <msilvax28>
Submitted:  Mon 13 May 2013 09:08:51 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  In Test
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 24 May 2013 02:34:44 PM UTC, comment #1: 

Thanks, this should be fixed in trunk now ... needs some testing though.

Richard Frith-Macdonald <CaS>
Group Member
Mon 13 May 2013 09:08:51 PM UTC, original submission:  

The logic in the +initialize method has logic that tries to remove old names. It tries to remove names assigned to the current pid and tries to see if other pids that have names are now dead.

The logic as  implemented removes no names, as it assumes the beginning of the first line of the name file is the PID (with a . suffix).

However, the name files have this format:
<path to 'port' in file system>\n
<owner pid>\n

for example:
/tmp/GNUstepSecure1000/NSMessagePort/ports/10280.4
10280


I have code that I think fixes it, but I don't know enough about GNUstep to be sure.

Michael Silva <msilvax28>

 

(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 msilvax28 (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
    2013-05-24 CaS StatusNone Fixed
        Open/ClosedOpen In Test

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code