bugGNUstep - Bugs: bug #20163, Thread safety of -[GSHTTPURLHandle...

 
 

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

bug #20163: Thread safety of -[GSHTTPURLHandle loadInForeground]

Submitted by:  Graham J Lee <iamleeg>
Submitted on:  Wed 13 Jun 2007 11:38:44 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Thu 19 Jan 2012 10:23:34 AM UTC, comment #7:

More recent versions of the GNU runtime fix this.

Richard Frith-Macdonald <CaS>
Project Member
Fri 05 Feb 2010 06:18:01 PM UTC, comment #6:

people should use a patched libobjc or try libobjc2 from the gnustep svn repository (or simply call a class method before starting threads).

Richard Frith-Macdonald <CaS>
Project Member
Fri 12 Jun 2009 07:14:40 AM UTC, comment #5:

Changed status to 'fixed' since this is actually an objc runtime bug, and we have a patch to the runtime which fixes it.

Richard Frith-Macdonald <CaS>
Project Member
Mon 08 Dec 2008 08:48:25 AM UTC, comment #4:

I added a gcc/libobjc bug report for this at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38307

I can supply a patch against gcc subversion for the runtime if people are interested.

Richard Frith-Macdonald <CaS>
Project Member
Wed 13 Jun 2007 05:35:03 PM UTC, comment #3:

Thanks Richard, workaround seems to do the trick :-)

Graham J Lee <iamleeg>
Wed 13 Jun 2007 05:23:52 PM UTC, comment #2:

Calling [NSURLHandle class] before detaching any threads should work around the problem ... please give it a try.

Richard Frith-Macdonald <CaS>
Project Member
Wed 13 Jun 2007 04:53:31 PM UTC, comment #1:

I think this might be due to an objc-runtime bug ... am investigating.

Richard Frith-Macdonald <CaS>
Project Member
Wed 13 Jun 2007 11:38:44 AM UTC, original submission:

The attached program will attempt to fetch from an NSURLHandle multiple times, spawning multiple threads to do it. On apple-apple-* it works as expected, and every fetch results in some data being available. On gnu-gnu-* it doesn't work reliably, with more than one worker thread. Sometimes it's completely successful, but sometimes some of the -[NSURLHandle loadInForeground] requests return nil and, as I've been testing with HTTP URLs, also don't have an NSHTTPPropertyStatusCodeKey; it seems like the method returns without actually having performed the load.

Graham J Lee <iamleeg>

 

Attached Files
file #13037:  NSURLHandleThreads.m added by iamleeg (3KiB - text/x-objcsrc)
file #13038:  GNUmakefile added by iamleeg (166B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

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

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 19 Jan 2012 10:23:34 AM UTCCaSOpen/ClosedAnalyzed=>Closed
    Fri 05 Feb 2010 06:18:01 PM UTCCaSOpen/ClosedOpen=>Analyzed
    Fri 12 Jun 2009 07:14:40 AM UTCCaSStatusNone=>Fixed
    Wed 13 Jun 2007 11:38:44 AM UTCiamleegAttached File-=>Added NSURLHandleThreads.m, #13037
      Attached File-=>Added GNUmakefile, #13038

    Back to the top


    Powered by Savane 3.1-cleanup1