Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <00c701c0ff12$94c35f60$806410ac@local> From: "Robert Collins" To: , References: <20010627012932 DOT I19058 AT redhat DOT com> <20010627013502 DOT K19058 AT redhat DOT com> <008201c0ff0d$8fe3c2a0$806410ac AT local> <009701c0ff0e$4d796400$806410ac AT local> Subject: Re: pthreads works, sorta Date: Thu, 28 Jun 2001 00:08:02 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 27 Jun 2001 13:57:16.0463 (UTC) FILETIME=[12FF6BF0:01C0FF11] Theres a problem with the path.cc code. I'm tracking it down :[. I suspect gcc optimisation at the moment. Rob ----- Original Message ----- From: "Robert Collins" To: "Robert Collins" ; ; Sent: Wednesday, June 27, 2001 11:37 PM Subject: Re: pthreads works, sorta > The last patch was bad - sorry! (path.cc had a copy-n-pasto). > > Rob > ----- Original Message ----- > From: "Robert Collins" > To: ; > Sent: Wednesday, June 27, 2001 11:32 PM > Subject: Re: pthreads works, sorta > > > > changelog: > > > > Wed Jun 27 23:30:00 2001 Robert Collins > > > > * path.cc (check_null_empty_path): Change from VirtualQuery to > > IsBadWritePtr. > > * resource.cc (getrlimit): Ditto. > > (setrlimit): Ditto. > > * thread.cc (check_valid_pointer): Ditto. > > > > > > What about the other instances of virtualQuery? Or are the appropriate.. > > > > Rob (Your humble delegate). > > > > > > > > ----- Original Message ----- > > From: "Christopher Faylor" > > To: > > Sent: Wednesday, June 27, 2001 3:35 PM > > Subject: Re: pthreads works, sorta > > > > > > > On Wed, Jun 27, 2001 at 01:29:32AM -0400, Christopher Faylor wrote: > > > >On Wed, Jun 27, 2001 at 01:10:35PM +1000, Robert Collins wrote: > > > >>> -----Original Message----- > > > >>> From: Greg Smith [mailto:gsmith AT nc DOT rr DOT com] > > > >> > > > >>> > > > >>> More experimenting with my home computer, dual pIII 850: > > > >>> > > > >>> 1. 117 157 328 > > > >>> 2. 822 1527 --- > > > >>> 3. 194 240 453 > > > >>> 4. 169 181 516 > > > >>> > > > >>As usual, I write a missive, then solve the puzzle. > > > >> > > > >>try this: > > > >> > > > >> > > > >>int __stdcall > > > >>check_valid_pointer (void *pointer) > > > >>{ > > > >> if (!pointer || IsBadWritePtr(pointer, sizeof (verifyable_object))) > > > >> return EFAULT; > > > >> return 0; > > > >>} > > > > > > > >This is not quite the same thing as VirtualQuery. This verifies that > the > > > >process can write to memory. It doesn't verify that it is accessible. > > > > > > > >Maybe that is not important but I would have to think about this. > > > > > > > >Nice find, though, Rob. > > > > > > I've thought about it. IsBadWritePtr should be fine in both > > check_null_empty_path > > > and check_valid_pointer. > > > > > > Could you submit a patch, Rob? If you are motivated, I'd appreciate a > > cleanup > > > patch for resource.cc, too. > > > > > > cgf > > > > > > -- > > > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > > Bug reporting: http://cygwin.com/bugs.html > > > Documentation: http://cygwin.com/docs.html > > > FAQ: http://cygwin.com/faq/ > > > > > > > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/