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

Re: svn-push segfaulting in make_reporter()

From: Max Bowsher <maxb1_at_ukf.net>
Date: 2006-01-05 00:30:08 CET

Hash: SHA1

Karamchedu, Rajeev K. wrote:
> Is this a bug ? my svn-push seems to be dying in make_reporter(). See
> details below:
> Like a few others, I am trying to get svn-push going as well.
> The svn-push.c found in the contrib dir doesn't do anything. It seg
> faults whenever a http authentication is encountered.
> I added some auth routines based on the tools/examples/minimal-client.c
> and atleast got the authentication to work. The code itself is at
> http://svn.tigr.org/filedetails.php?repname=tigr&path=%2Frajeev%2Ftrunk%2Fsvn-push.c
> Now the logic stops and seg-faults in make_reporter(), which is called
> by svn_ra_do_diff().
> I have documented all this at
> http://kreaper.blogsome.com/2006/01/02/svn-pushc-crashes-in-make_reporter-3/
> but here is the relevant GDB output. It looks like a bug to me in either
> neon or make_reporter. but I am not an active programmer. I just need SVN
> Mirroring to work!

Under these circumstances, I question whether svn-push.c is the right
course to follow - it is more of a toy than an actual tool, as evidenced
  by the fact that it makes no attempt whatsoever to copy log messages
(replacing them with "Hello, world!" !!!), authors, or dates.

> gdb) set args -r 757:758 http://src.domain.com/srcrepo/module
> svn+ssh://svn@dest.domain.com/destrepo/module
> (gdb) run
> Program received signal SIGSEGV, Segmentation fault.
> 0x0 in ?? ()
> (gdb) where
> #0 0x0 in ?? ()
> #1 0x7f514558 in make_reporter () from
> /home/rajeev/svn/lib/libsvn_ra_dav-1.so.0

You really need to build subversion with debug symbols for gdb
backtraces to give more than a vague idea of the problem location.

It turns out that the problem is that svn-push.c is failing to
initialize the non-optional open_tmp_file ra_callback. This just happens
to work with ra_local, but breaks when using ra_dav.

(I'm about to commit a fix to svn-push.c)

Version: GnuPG v1.4.1 (Cygwin)


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jan 5 00:32:23 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.