<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: svn-push.c crashes in make_reporter()</title>
	<atom:link href="http://rajeev.name/2006/01/02/svn-pushc-crashes-in-make_reporter-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://rajeev.name/2006/01/02/svn-pushc-crashes-in-make_reporter-3/</link>
	<description>technologist defying the peter principle</description>
	<lastBuildDate>Fri, 09 Mar 2012 17:19:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Max Bowsher </title>
		<link>http://rajeev.name/2006/01/02/svn-pushc-crashes-in-make_reporter-3/comment-page-1/#comment-17</link>
		<dc:creator>Max Bowsher </dc:creator>
		<pubDate>Thu, 05 Jan 2006 04:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://rajeev.name/2006/01/02/svn-pushc-crashes-in-make_reporter-3/#comment-17</guid>
		<description>&lt;strong&gt;Date: Wed, 04 Jan 2006 23:30:08 +0000
From: Max Bowsher &lt;maxb1@ukf.net&gt;
Content-Type: text/plain; charset=ISO-8859-1&lt;/strong&gt;
Subject: svn-push segfaulting in make_reporter()

Karamchedu, Rajeev K. wrote:
&gt; Is this a bug ? my svn-push seems to be dying in make_reporter().  See
&gt; details below:
&gt; 
&gt; Like a few others, I am trying to get svn-push going as well.
&gt; 
&gt; The svn-push.c found in the contrib dir doesn&#039;t do anything. It seg
&gt; faults whenever a http authentication is encountered.
&gt; 
&gt; I added some auth routines based on the tools/examples/minimal-client.c
&gt; and atleast got the authentication to work. The code itself is at
&gt; 
&gt; http://svn.tigr.org/filedetails.php?repname=tigr&amp;path=%2Frajeev%2Ftrunk%2Fsvn-push.c
&gt; 
&gt; Now the logic stops and seg-faults in  make_reporter(), which is called
&gt; by svn_ra_do_diff().
&gt; I have documented all this at
&gt; http://rajeev.name/2006/01/02/svn-pushc-crashes-in-make_reporter-3/
&gt; 
&gt; but here is the relevant GDB output. It looks like a bug to me in either
&gt; neon or make_reporter. but I am not an active programmer. I just need SVN
&gt; 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 &quot;Hello, world!&quot; !!!), authors, or dates.

&gt; gdb) set args -r 757:758 http://src.domain.com/srcrepo/module
&gt; svn+ssh://svn@dest.domain.com/destrepo/module
&gt; (gdb) run
...
&gt; Program received signal SIGSEGV, Segmentation fault.
&gt; 0x0 in ?? ()
&gt; (gdb) where
&gt; #0 0x0 in ?? ()
&gt; #1 0x7f514558 in make_reporter () from
&gt; /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&#039;m about to commit a fix to svn-push.c)

Max.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)

iD8DBQFDvFqAfFNSmcDyxYARAkzuAJ4wQm67ffv5+pDCzZoD7lhxbdR6TgCgobYB
wYaFdKQ/Eixr9HYajTNy9Yo=
=6IUz
-----END PGP SIGNATURE-----</description>
		<content:encoded><![CDATA[<p><strong>Date: Wed, 04 Jan 2006 23:30:08 +0000<br />
From: Max Bowsher <maxb1 @ukf.net><br />
Content-Type: text/plain; charset=ISO-8859-1</maxb1></strong><br />
Subject: svn-push segfaulting in make_reporter()</p>
<p>Karamchedu, Rajeev K. wrote:<br />
&gt; Is this a bug ? my svn-push seems to be dying in make_reporter().  See<br />
&gt; details below:<br />
&gt;<br />
&gt; Like a few others, I am trying to get svn-push going as well.<br />
&gt;<br />
&gt; The svn-push.c found in the contrib dir doesn&#8217;t do anything. It seg<br />
&gt; faults whenever a http authentication is encountered.<br />
&gt;<br />
&gt; I added some auth routines based on the tools/examples/minimal-client.c<br />
&gt; and atleast got the authentication to work. The code itself is at<br />
&gt;<br />
&gt; <a href="http://svn.tigr.org/filedetails.php?repname=tigr&#038;path=%2Frajeev%2Ftrunk%2Fsvn-push.c" rel="nofollow">http://svn.tigr.org/filedetails.php?repname=tigr&#038;path=%2Frajeev%2Ftrunk%2Fsvn-push.c</a><br />
&gt;<br />
&gt; Now the logic stops and seg-faults in  make_reporter(), which is called<br />
&gt; by svn_ra_do_diff().<br />
&gt; I have documented all this at<br />
&gt; <a href="http://rajeev.name/2006/01/02/svn-pushc-crashes-in-make_reporter-3/" rel="nofollow">http://rajeev.name/2006/01/02/svn-pushc-crashes-in-make_reporter-3/</a><br />
&gt;<br />
&gt; but here is the relevant GDB output. It looks like a bug to me in either<br />
&gt; neon or make_reporter. but I am not an active programmer. I just need SVN<br />
&gt; Mirroring to work!</p>
<p>Under these circumstances, I question whether svn-push.c is the right<br />
course to follow &#8211; it is more of a toy than an actual tool, as evidenced<br />
  by the fact that it makes no attempt whatsoever to copy log messages<br />
(replacing them with &#8220;Hello, world!&#8221; !!!), authors, or dates.</p>
<p>&gt; gdb) set args -r 757:758 <a href="http://src.domain.com/srcrepo/module" rel="nofollow">http://src.domain.com/srcrepo/module</a><br />
&gt; svn+ssh://svn@dest.domain.com/destrepo/module<br />
&gt; (gdb) run<br />
&#8230;<br />
&gt; Program received signal SIGSEGV, Segmentation fault.<br />
&gt; 0&#215;0 in ?? ()<br />
&gt; (gdb) where<br />
&gt; #0 0&#215;0 in ?? ()<br />
&gt; #1 0x7f514558 in make_reporter () from<br />
&gt; /home/rajeev/svn/lib/libsvn_ra_dav-1.so.0</p>
<p>You really need to build subversion with debug symbols for gdb<br />
backtraces to give more than a vague idea of the problem location.</p>
<p>It turns out that the problem is that svn-push.c is failing to<br />
initialize the non-optional open_tmp_file ra_callback. This just happens<br />
to work with ra_local, but breaks when using ra_dav.</p>
<p>(I&#8217;m about to commit a fix to svn-push.c)</p>
<p>Max.<br />
&#8212;&#8211;BEGIN PGP SIGNATURE&#8212;&#8211;<br />
Version: GnuPG v1.4.1 (Cygwin)</p>
<p>iD8DBQFDvFqAfFNSmcDyxYARAkzuAJ4wQm67ffv5+pDCzZoD7lhxbdR6TgCgobYB<br />
wYaFdKQ/Eixr9HYajTNy9Yo=<br />
=6IUz<br />
&#8212;&#8211;END PGP SIGNATURE&#8212;&#8211;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

