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

svn-push segfaulting in make_reporter()

From: Karamchedu, Rajeev K. <rajeev_at_tigr.ORG>
Date: 2006-01-04 04:13:38 CET

[My apologies for resending. No subject: in my previous email]

 

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.

My setup:

* Subversion 1.3.0 (I tried using 1.2.3 and upgraded to 1.3.0 this morning)
  on src and dest repos
* src repo is webdav with authentication requirement for read and write
* dest repo is accessible via svn+ssh

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!

gdb) set args -r 757:758 http://src.domain.com/srcrepo/module svn+ssh://svn@dest.domain.com/destrepo/module

(gdb) run

Starting program: svn-push-r 757:758 http://src.domain.com/srcrepo/module svn+ssh://svn@dest.domain.com/destrepo/module

Before auth open
After auth open
Before opening src
Before opening dest

svn@dest.domain.com's password: ****
Before opening commit_editor
Authentication realm: kreaper’s src Repository
Password:
Authentication realm: kreaper’s src Repository
Username: testuser
Password: ****

After commit editor
before do diff

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
#2 0x7f514d20 in svn_ra_dav__do_diff () from /home/rajeev/svn/lib/libsvn_ra_dav-1.so.0
#3 0x7f505c98 in compat_do_diff () from /home/rajeev/svn/lib/libsvn_ra_dav-1.so.0
#4 0x11558 in ?? ()

(gdb) bt 5
#0 0x0 in ?? ()
#1 0x7f514558 in make_reporter () from /home/rajeev/svn/lib/libsvn_ra_dav-1.so.0
#2 0x7f514d20 in svn_ra_dav__do_diff () from /home/rajeev/svn/lib/libsvn_ra_dav-1.so.0
#3 0x7f505c98 in compat_do_diff () from /home/rajeev/svn/lib/libsvn_ra_dav-1.so.0
#4 0x11558 in ?? ()
(gdb) trace make_reporter
Tracepoint 1 at 0x7f5143d4
(gdb) info tp
Num Enb Address PassC StepC What
1 y 0x7f5143d4 0 0

help!
Received on Wed Jan 4 04:15:43 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.