Re: serf infinite loop in svn_ra_serf__handle_xml_parser()

2011-06-24 Thread Stefan Sperling
On Fri, Jun 24, 2011 at 01:46:42PM -0400, Greg Stein wrote: > When you say "success", you mean status==0? Yup. > No, it would never block. The bucket should return EAGAIN when it has no > more data. I see. Lieven explained this too and also pointed to a related (or the same) issue documented el

Re: serf infinite loop in svn_ra_serf__handle_xml_parser()

2011-06-24 Thread Lieven Govaerts
On Fri, Jun 24, 2011 at 2:44 PM, Stefan Sperling wrote: > Trying to update my working copy I observed svn spinning on the CPU > forever. Attaching with gdb showed that it was stuck in an endless > loop inside svn_ra_serf__handle_xml_parser(). > > Below is the code. The problem was that serf_bucket

Re: serf infinite loop in svn_ra_serf__handle_xml_parser()

2011-06-24 Thread Greg Stein
On Jun 24, 2011 8:45 AM, "Stefan Sperling" wrote: > > Trying to update my working copy I observed svn spinning on the CPU > forever. Attaching with gdb showed that it was stuck in an endless > loop inside svn_ra_serf__handle_xml_parser(). > > Below is the code. The problem was that serf_bucket_rea

Re: serf infinite loop in svn_ra_serf__handle_xml_parser()

2011-06-24 Thread Stefan Sperling
On Fri, Jun 24, 2011 at 02:44:45PM +0200, Stefan Sperling wrote: > Trying to update my working copy I observed svn spinning on the CPU > forever. Attaching with gdb showed that it was stuck in an endless > loop inside svn_ra_serf__handle_xml_parser(). Forgot to mention that I have on reliable way

serf infinite loop in svn_ra_serf__handle_xml_parser()

2011-06-24 Thread Stefan Sperling
Trying to update my working copy I observed svn spinning on the CPU forever. Attaching with gdb showed that it was stuck in an endless loop inside svn_ra_serf__handle_xml_parser(). Below is the code. The problem was that serf_bucket_read() returned zero bytes but also indicated success. If that ha