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

Re: Committing Locked File fails over ra_dav

From: Brian Buesker <bbuesker_at_qualcomm.com>
Date: Sun, 29 Jun 2008 09:45:56 -0700

Brian Buesker wrote:
> I apologize for resurrecting a very old thread, but I wanted to reply to
> this for the sake of the archives.
>
> Brian Buesker wrote:
>
>> I have been doing some testing with SVN 1.4.2 with Apache 2.2.3 and
>> Neon 0.26.1 (I tried 0.26.2 as well), and cannot seem to get locking
>> working. I can lock and unlock files fine, but I get the errors when
>> attempting to commit, as shown in this excerpt from running
>> lock_tests.py:
>>
>> PASS: lock_tests.py 1: lock a file and verify that it's locked
>> subversion/libsvn_client/commit.c:865: (apr_err=160037)
>> svn: Commit failed (details follow):
>> subversion/libsvn_ra_dav/util.c:827: (apr_err=160037)
>> svn: MERGE request failed on '/svn-test-work/repositories/lock_tests-2/A'
>> subversion/libsvn_ra_dav/util.c:389: (apr_err=160037)
>> svn: Cannot verify lock on path '/A/mu'; no matching lock-token available
>>
> I didn't debug this problem much back then, but I came back to it this
> week and dug into it a little more. I believe the problem is due to
> symbols being included in the httpd executable which should not have
> been. A couple of the apr_bucket_types seem to be defined in the BSS
> segment, which causes the APR_BUCKET_IS_EOS macro to fail even on an EOS
> bucket.
>
> % nm /opt/crad-infratools/sbin/httpd | grep apr_bucket_type
> 0000000000652100 B apr_bucket_type_eos
> 00000000006520c0 B apr_bucket_type_file
> 0000000000652140 B apr_bucket_type_flush
>
> When I look at the httpd that is delivered with RHEL5, it looks correct:
>
> % nm /usr/lib/debug/usr/sbin/httpd.debug | grep apr_bucket_type
> U apr_bucket_type_eos
> U apr_bucket_type_file
> U apr_bucket_type_flush
>
> Does anybody have an idea of what might be causing these additional
> symbols to get defined in my build? One difference between RHEL5 and my
> build is that RedHat builds APR and APR-UTIL separately, whereas I build
> them directly out of the httpd source. I would think this should work.
> Has anybody run into this and found a workaround?
>
Turns out that by building apache with --enable-pie, the symbols were not included in the BSS and thus committing a locked file over ra_dav worked just fine.

Brian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-29 18:46:15 CEST

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

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