You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Simon Wilson <se...@gmail.com> on 2011/03/07 08:59:35 UTC
64-bit Subversion crashes on Mac OS X
I'm posting here for feedback before opening an issue with Subversion tracker.
Using the 'svn mkdir' command against a 1.5/1.6 format repository via ra_local (i.e. with a file:// URL) with 64-bit Subversion on Mac OS X results in a segmentation fault. This 100% reproducible both with 'svn' in Terminal and when loaded as a library in our Cocoa application.
We first detected this behavior in 1.6.14.
We are building against the Mac OS X 10.5 SDK. We build 3-way universal libraries for Subversion (x86, ppc and X86_64). We have only seen this crash in the 64-bit Intel version running on Mac OS X 10.6 Snow Leopard.
Here is relevant portion of the backtrace generated with gdb:
#0 0x00007fff881d1160 in strlen ()
#1 0x00000001147a0bff in apr_vformatter ()
#2 0x00000001147adeda in apr_pvsprintf ()
#3 0x00000001147ae1c8 in apr_psprintf ()
#4 0x00000001146587f0 in representation_string ()
#5 0x0000000114658a2d in svn_fs_fs__write_noderev ()
#6 0x0000000114658de2 in svn_fs_fs__put_node_revision ()
#7 0x000000011465d0a3 in create_new_txn_noderev_from_rev ()
#8 0x000000011465d81b in svn_fs_fs__create_txn ()
#9 0x0000000114663c09 in svn_fs_fs__begin_txn ()
#10 0x000000011466fda3 in svn_fs_begin_txn2 ()
#11 0x00000001146a5613 in svn_repos_fs_begin_txn_for_commit2 ()
#12 0x00000001146a19bd in open_root ()
#13 0x0000000114643e5c in svn_delta_path_driver ()
#14 0x0000000114603e42 in mkdir_urls ()
#15 0x0000000114604017 in svn_client_mkdir3 ()
#16 0x0000000114613a33 in svn_client_mkdir2 ()
The URL passed to svn_client_mkdir2() is:
file:///Users/me/Dev/Test%20Data/Repositories/fsfs-1.5/test
Here are the gcc arguments used to build the 64-bit version:
gcc \
-DDARWIN \
-DSIGPROCMASK_SETS_THREAD_MASK \
-no-cpp-precomp \
-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 \
-I./subversion/include \
-I./subversion \
-I~/Subversion/1.6.16/source/x86_64/apr/include \
-I~/Subversion/1.6.16/source/x86_64/apr-util/include \
-I~/Subversion/1.6.16/source/x86_64/neon/src \
-I~/Subversion/1.6.16/build/x86_64/include/neon \
-I~/Subversion/1.6.16/source/x86_64/sqlite-amalgamation
The environment/arguments passed to configure are:
ARCHFLAGS="-arch x86_64"
CFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64"
LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch x86_64"
MACOSX_DEPLOYMENT_TARGET=10.5
./configure --with-ssl --with-apxs=no --disable-shared --enable-threadsafe-ssl
We build against the APR and Neon versions included with the Subversion dependencies download.
The GCC version used is i686-apple-darwin10-gcc-4.2.1.
Best regards,
Simon Wilson
http://www.zennaware.com
Re: 64-bit Subversion crashes on Mac OS X
Posted by Simon Wilson <se...@gmail.com>.
>> I'm posting here for feedback before opening an issue with Subversion tracker.
>>
>> Using the 'svn mkdir' command against a 1.5/1.6 format repository via ra_local (i.e. with a file:// URL) with 64-bit Subversion on Mac OS X results in a segmentation fault. This 100% reproducible both with 'svn' in Terminal and when loaded as a library in our Cocoa application.
>>
>
> Please file an issue. Thanks!
Done: http://subversion.tigris.org/issues/show_bug.cgi?id=3829
Re: 64-bit Subversion crashes on Mac OS X
Posted by Hyrum K Wright <hy...@hyrumwright.org>.
On Tue, Mar 8, 2011 at 2:59 PM, Gavin Beau Baumanis
<ga...@thespidernet.com> wrote:
> On 09/03/2011, at 2:03 AM, Hyrum K Wright wrote:
>
>> On Tue, Mar 8, 2011 at 2:46 AM, Simon Wilson <se...@gmail.com> wrote:
>>>
>>>>> On Mon, Mar 07, 2011 at 08:59:35AM +0100, Simon Wilson wrote:
>>>>>> I'm posting here for feedback before opening an issue with Subversion tracker.
>>>>>>
>>>>>> Using the 'svn mkdir' command against a 1.5/1.6 format repository via ra_local (i.e. with a file:// URL) with 64-bit Subversion on Mac OS X results in a segmentation fault. This 100% reproducible both with 'svn' in Terminal and when loaded as a library in our Cocoa application.
>>>>>>
>>>>>
>>>>> Please file an issue. Thanks!
>>>>
>>>> Is this http://mid.gmane.org/56CE4FBF-08C1-456E-A475-CE65D17E010A@barrys-emacs.org ?
>>>
>>> I have no idea whether this is related to the crash we're experiencing, but have filed an issue (http://subversion.tigris.org/issues/show_bug.cgi?id=3829). I have added the link you posted as a comment.
>>
>> I noted it in the issue tracker, but I'll also not it here:
>> APR has struggled parsing the '%lld' format specifier, which is what
>> is causing this particular crash. The relevant APR bug is
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=48476. There has
>> been some discussion on the APR dev list about this issue, but I'm not
>> sure what the status of the fix is.
>
> Hi Hyrum / et al,
>
> Do you see any scope for the PM to perhaps take up the task of chasing up this sort of thing on behalf of the SubVersion project?
> The reason I ask is;
>
> I was filling out the "I'm poor, please sponsor me to the attend the Apache retreat in Ireland", form. One of the questions was along the lines of what would the project gain by my attendance.
> One of the things I was thinking of when looking at the question was;
> Ask about, "Should the Patch Manager be the liaison between SubVersion and other projects". Only in so far as entering issues in "their" tracker and chasing up things along the lines of bug updates etc.
> It was my thinking, that I currently prompt developers within SVN for updates / review. So, in this case, I could do the same thing, but over at APR.
> Give the APR folks a "poke" about issue 48476 and ask them for an update?
Not commenting on the more general thought here, but I did poke the
APR folks about this yesterday morning. I discovered that the fix has
been committed, but hasn't yet been released.
-Hyrum
Re: 64-bit Subversion crashes on Mac OS X
Posted by Julian Foad <ju...@wandisco.com>.
On Wed, 2011-03-09, Gavin Beau Baumanis wrote:
> Do you see any scope for the PM to perhaps take up the task of chasing
> up this sort of thing on behalf of the SubVersion project?
[...]
> Ask about, "Should the Patch Manager be the liaison between SubVersion
> and other projects". Only in so far as entering issues in "their"
> tracker and chasing up things along the lines of bug updates etc.
> It was my thinking, that I currently prompt developers within SVN for
> updates / review. So, in this case, I could do the same thing, but
> over at APR.
> Give the APR folks a "poke" about issue 48476 and ask them for an
> update?
Hi Gavin. In my opinion, Go For It! That would be very useful.
- Julian
Re: 64-bit Subversion crashes on Mac OS X
Posted by Gavin Beau Baumanis <ga...@thespidernet.com>.
On 09/03/2011, at 2:03 AM, Hyrum K Wright wrote:
> On Tue, Mar 8, 2011 at 2:46 AM, Simon Wilson <se...@gmail.com> wrote:
>>
>>>> On Mon, Mar 07, 2011 at 08:59:35AM +0100, Simon Wilson wrote:
>>>>> I'm posting here for feedback before opening an issue with Subversion tracker.
>>>>>
>>>>> Using the 'svn mkdir' command against a 1.5/1.6 format repository via ra_local (i.e. with a file:// URL) with 64-bit Subversion on Mac OS X results in a segmentation fault. This 100% reproducible both with 'svn' in Terminal and when loaded as a library in our Cocoa application.
>>>>>
>>>>
>>>> Please file an issue. Thanks!
>>>
>>> Is this http://mid.gmane.org/56CE4FBF-08C1-456E-A475-CE65D17E010A@barrys-emacs.org ?
>>
>> I have no idea whether this is related to the crash we're experiencing, but have filed an issue (http://subversion.tigris.org/issues/show_bug.cgi?id=3829). I have added the link you posted as a comment.
>
> I noted it in the issue tracker, but I'll also not it here:
> APR has struggled parsing the '%lld' format specifier, which is what
> is causing this particular crash. The relevant APR bug is
> https://issues.apache.org/bugzilla/show_bug.cgi?id=48476. There has
> been some discussion on the APR dev list about this issue, but I'm not
> sure what the status of the fix is.
Hi Hyrum / et al,
Do you see any scope for the PM to perhaps take up the task of chasing up this sort of thing on behalf of the SubVersion project?
The reason I ask is;
I was filling out the "I'm poor, please sponsor me to the attend the Apache retreat in Ireland", form. One of the questions was along the lines of what would the project gain by my attendance.
One of the things I was thinking of when looking at the question was;
Ask about, "Should the Patch Manager be the liaison between SubVersion and other projects". Only in so far as entering issues in "their" tracker and chasing up things along the lines of bug updates etc.
It was my thinking, that I currently prompt developers within SVN for updates / review. So, in this case, I could do the same thing, but over at APR.
Give the APR folks a "poke" about issue 48476 and ask them for an update?
Re: 64-bit Subversion crashes on Mac OS X
Posted by Hyrum K Wright <hy...@hyrumwright.org>.
On Tue, Mar 8, 2011 at 2:46 AM, Simon Wilson <se...@gmail.com> wrote:
>
>>> On Mon, Mar 07, 2011 at 08:59:35AM +0100, Simon Wilson wrote:
>>>> I'm posting here for feedback before opening an issue with Subversion tracker.
>>>>
>>>> Using the 'svn mkdir' command against a 1.5/1.6 format repository via ra_local (i.e. with a file:// URL) with 64-bit Subversion on Mac OS X results in a segmentation fault. This 100% reproducible both with 'svn' in Terminal and when loaded as a library in our Cocoa application.
>>>>
>>>
>>> Please file an issue. Thanks!
>>
>> Is this http://mid.gmane.org/56CE4FBF-08C1-456E-A475-CE65D17E010A@barrys-emacs.org ?
>
> I have no idea whether this is related to the crash we're experiencing, but have filed an issue (http://subversion.tigris.org/issues/show_bug.cgi?id=3829). I have added the link you posted as a comment.
I noted it in the issue tracker, but I'll also not it here:
APR has struggled parsing the '%lld' format specifier, which is what
is causing this particular crash. The relevant APR bug is
https://issues.apache.org/bugzilla/show_bug.cgi?id=48476. There has
been some discussion on the APR dev list about this issue, but I'm not
sure what the status of the fix is.
-Hyrum
Re: 64-bit Subversion crashes on Mac OS X
Posted by Simon Wilson <se...@gmail.com>.
>> On Mon, Mar 07, 2011 at 08:59:35AM +0100, Simon Wilson wrote:
>>> I'm posting here for feedback before opening an issue with Subversion tracker.
>>>
>>> Using the 'svn mkdir' command against a 1.5/1.6 format repository via ra_local (i.e. with a file:// URL) with 64-bit Subversion on Mac OS X results in a segmentation fault. This 100% reproducible both with 'svn' in Terminal and when loaded as a library in our Cocoa application.
>>>
>>
>> Please file an issue. Thanks!
>
> Is this http://mid.gmane.org/56CE4FBF-08C1-456E-A475-CE65D17E010A@barrys-emacs.org ?
I have no idea whether this is related to the crash we're experiencing, but have filed an issue (http://subversion.tigris.org/issues/show_bug.cgi?id=3829). I have added the link you posted as a comment.
Simon
Re: 64-bit Subversion crashes on Mac OS X
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Stefan Sperling wrote on Mon, Mar 07, 2011 at 12:54:10 +0100:
> On Mon, Mar 07, 2011 at 08:59:35AM +0100, Simon Wilson wrote:
> > I'm posting here for feedback before opening an issue with Subversion tracker.
> >
> > Using the 'svn mkdir' command against a 1.5/1.6 format repository via ra_local (i.e. with a file:// URL) with 64-bit Subversion on Mac OS X results in a segmentation fault. This 100% reproducible both with 'svn' in Terminal and when loaded as a library in our Cocoa application.
> >
>
> Please file an issue. Thanks!
Is this http://mid.gmane.org/56CE4FBF-08C1-456E-A475-CE65D17E010A@barrys-emacs.org ?
Re: 64-bit Subversion crashes on Mac OS X
Posted by Stefan Sperling <st...@elego.de>.
On Mon, Mar 07, 2011 at 08:59:35AM +0100, Simon Wilson wrote:
> I'm posting here for feedback before opening an issue with Subversion tracker.
>
> Using the 'svn mkdir' command against a 1.5/1.6 format repository via ra_local (i.e. with a file:// URL) with 64-bit Subversion on Mac OS X results in a segmentation fault. This 100% reproducible both with 'svn' in Terminal and when loaded as a library in our Cocoa application.
>
Please file an issue. Thanks!