[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: CVS update: subversion/subversion/svn_subr/parsetest Makefile parsetest.c

From: Ben Collins-Sussman <sussman_at_newton.collab.net>
Date: 2000-07-06 03:07:04 CEST

Ah! Thank you! This was the exact cause of my core dump bug. Using
backtrace in gdb, I knew it was happening somewhere in ap_open()...

Btw, how was I supposed to know to do this? Running perldoc on
`apr_file_io.h' describes the first argument as "the opened file
descriptor", and nothing more.

I'm loving APR, but I'm noticing a certain lack of documentation. :)

Joe Orton <joe@orton.demon.co.uk> writes:

> I think you'll need to initialize *FILE to NULL (or pcalloc it) before
> calling ap_open...
>
> > @@ -258,7 +253,7 @@
> >
> > ap_file_t *FILE;
> > ap_pool_t *scratchpool;
> > - ap_string_t *currentline;
> > + svn_string_t *currentline;
> > ap_status_t result;
> >
> >
> > @@ -269,7 +264,7 @@
> > result = ap_open (&FILE,
> > svn_string_2cstring (filename, pool),
> > APR_READ,
> > - perms,/*TODO: WHAT IS THIS? */
> > + APR_OS_DEFAULT, /*TODO: WHAT IS THIS? */
> > pool);
Received on Sat Oct 21 14:36:05 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.