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

Re: sasl mechanisms order

From: Victor Sudakov <sudakov_at_sibptus.tomsk.ru>
Date: Tue, 7 Sep 2010 14:33:28 +0700

Stefan Sperling wrote:
> > > > > > Colleagues, I understand that you are expecting a patch. I am sorry, I
> > > > > > am a systems administrator and not a programmer, my code writing
> > > > > > ability does not go beyond scripting.
> > > > >
> > > > > Can you try this patch and let me know if it works?
> > > >
> > > > Please try this one instead, it's slightly cleaner (no functional change).
> > > > Thanks.
> > >
> > > Ping. Did you find time to test this?
> > > Should we file an issue so we don't forget about this?
> >
> > Sorry for the delay, I have been on vacation. Does not compile with
> > your patch.
>
> Ooops, sorry about that.
> I just noticed that my svn builds didn't use SASL at all, so it compiled
> for me because the code was disabled :-/
>
> The updated diff below compiles fine for me, with SASL enabled.

This time it has compiled, but does not work.

"svn list svn://admin/test/" works OK (IMHO because the ANONYMOUS
mechanism is sufficient for that) but "svn co svn://admin/test/"
dumps core immediately.

According to gdb:

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `svn'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libsvn_client-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_client-1.so.0
Reading symbols from /usr/local/lib/libsvn_wc-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_wc-1.so.0
Reading symbols from /usr/local/lib/libsvn_ra-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_ra-1.so.0
Reading symbols from /usr/local/lib/libsvn_diff-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_diff-1.so.0
Reading symbols from /usr/local/lib/libsvn_ra_local-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_ra_local-1.so.0
Reading symbols from /usr/local/lib/libsvn_repos-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_repos-1.so.0
Reading symbols from /usr/local/lib/libsvn_fs-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_fs-1.so.0
Reading symbols from /usr/local/lib/libsvn_fs_fs-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_fs_fs-1.so.0
Reading symbols from /usr/local/lib/libsvn_fs_util-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_fs_util-1.so.0
Reading symbols from /usr/local/lib/libsvn_ra_svn-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_ra_svn-1.so.0
Reading symbols from /usr/local/lib/libsasl2.so.2...done.
Loaded symbols for /usr/local/lib/libsasl2.so.2
Reading symbols from /usr/local/lib/libsvn_ra_neon-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_ra_neon-1.so.0
Reading symbols from /usr/local/lib/libsvn_delta-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_delta-1.so.0
Reading symbols from /usr/local/lib/libsvn_subr-1.so.0...done.
Loaded symbols for /usr/local/lib/libsvn_subr-1.so.0
Reading symbols from /usr/local/lib/libsqlite3.so.8...done.
Loaded symbols for /usr/local/lib/libsqlite3.so.8
Reading symbols from /usr/local/lib/libaprutil-1.so.3...done.
Loaded symbols for /usr/local/lib/libaprutil-1.so.3
Reading symbols from /usr/local/lib/libgdbm.so.3...done.
Loaded symbols for /usr/local/lib/libgdbm.so.3
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libapr-1.so.4...done.
Loaded symbols for /usr/local/lib/libapr-1.so.4
Reading symbols from /usr/local/lib/libneon.so.27...done.
Loaded symbols for /usr/local/lib/libneon.so.27
Reading symbols from /usr/lib/libssl.so.6...done.
Loaded symbols for /usr/lib/libssl.so.6
Reading symbols from /lib/libz.so.5...done.
Loaded symbols for /lib/libz.so.5
Reading symbols from /usr/lib/libgssapi.so.10...done.
Loaded symbols for /usr/lib/libgssapi.so.10
Reading symbols from /usr/lib/libheimntlm.so.10...done.
Loaded symbols for /usr/lib/libheimntlm.so.10
Reading symbols from /usr/lib/libkrb5.so.10...done.
Loaded symbols for /usr/lib/libkrb5.so.10
Reading symbols from /usr/lib/libhx509.so.10...done.
Loaded symbols for /usr/lib/libhx509.so.10
Reading symbols from /usr/lib/libcom_err.so.5...done.
Loaded symbols for /usr/lib/libcom_err.so.5
Reading symbols from /lib/libcrypto.so.6...done.
Loaded symbols for /lib/libcrypto.so.6
Reading symbols from /usr/lib/libasn1.so.10...done.
Loaded symbols for /usr/lib/libasn1.so.10
Reading symbols from /usr/lib/libroken.so.10...done.
Loaded symbols for /usr/lib/libroken.so.10
Reading symbols from /lib/libcrypt.so.5...done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /usr/local/lib/libexpat.so.6...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/sasl2/libsasldb.so.2...done.
Loaded symbols for /usr/local/lib/sasl2/libsasldb.so.2
Reading symbols from /usr/local/lib/sasl2/libcrammd5.so.2...done.
Loaded symbols for /usr/local/lib/sasl2/libcrammd5.so.2
Reading symbols from /usr/local/lib/sasl2/libdigestmd5.so.2...done.
Loaded symbols for /usr/local/lib/sasl2/libdigestmd5.so.2
Reading symbols from /usr/local/lib/sasl2/libotp.so.2...done.
Loaded symbols for /usr/local/lib/sasl2/libotp.so.2
Reading symbols from /usr/lib/libopie.so.6...done.
Loaded symbols for /usr/lib/libopie.so.6
Reading symbols from /lib/libmd.so.5...done.
Loaded symbols for /lib/libmd.so.5
Reading symbols from /usr/local/lib/sasl2/libgssapiv2.so.2...done.
Loaded symbols for /usr/local/lib/sasl2/libgssapiv2.so.2
Reading symbols from /usr/local/lib/sasl2/libplain.so.2...done.
Loaded symbols for /usr/local/lib/sasl2/libplain.so.2
Reading symbols from /usr/local/lib/sasl2/libanonymous.so.2...done.
Loaded symbols for /usr/local/lib/sasl2/libanonymous.so.2
Reading symbols from /usr/local/lib/sasl2/liblogin.so.2...done.
Loaded symbols for /usr/local/lib/sasl2/liblogin.so.2
Reading symbols from /usr/local/lib/sasl2/libntlm.so.2...done.
Loaded symbols for /usr/local/lib/sasl2/libntlm.so.2
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 find_entry (ht=0x20232323, key=0x281affb1, klen=-1, val=0x0)
    at tables/apr_hash.c:260
260 hash = ht->hash_func(key, &klen);
[New Thread 28901140 (LWP 100069)]
(gdb)
(gdb) where
#0 find_entry (ht=0x20232323, key=0x281affb1, klen=-1, val=0x0)
    at tables/apr_hash.c:260
#1 0x283c1e1b in apr_hash_get (ht=0x20232323, key=0x281affb1, klen=-1)
    at tables/apr_hash.c:330
#2 0x281a881b in svn_ra_svn__do_cyrus_auth (sess=0x28959078,
    mechlist=0x2895b9a8, realm=0x2895bae0 "SIBPTUS.TOMSK.RU", pool=0x28959018)
    at subversion/libsvn_ra_svn/cyrus_auth.c:741
#3 0x281a28a7 in handle_auth_request (sess=0x28959078, pool=0x28959018)
    at subversion/libsvn_ra_svn/client.c:237
#4 0x281a7162 in open_session (sess_p=0xbfbfe728,
    url=0x28957070 "svn://admin/test", uri=Variable "uri" is not available.
)
    at subversion/libsvn_ra_svn/client.c:627
#5 0x281a7648 in ra_svn_open (session=0x289550b8,
    url=0x28957070 "svn://admin/test", callbacks=0x28955058,
    callback_baton=0x28955080, config=0x28940890, pool=0x28955018)
    at subversion/libsvn_ra_svn/client.c:716
#6 0x281397ae in svn_ra_open3 (session_p=0xbfbfe8b8,
    repos_URL=0x28957070 "svn://admin/test", uuid=0x0, callbacks=0x28955058,
    callback_baton=0x28955080, config=0x28940890, pool=0x28955018)
    at subversion/libsvn_ra/ra_loader.c:480
#7 0x280e7aac in svn_client__open_ra_session_internal (
    ra_session=0xbfbfe8b8, base_url=0x28957070 "svn://admin/test",
    base_dir=0x0, base_access=0x0, commit_items=0x0, use_admin=0,
    read_only_wc=0, ctx=0x28940840, pool=0x28955018)
    at subversion/libsvn_client/ra.c:295
#8 0x280e816f in svn_client__ra_session_from_path (ra_session_p=0xbfbfe938,
    rev_p=0xbfbfe934, url_p=0xbfbfe930,
    path_or_url=0x28957070 "svn://admin/test", base_access=0x0,
    peg_revision_p=0xbfbfe9dc, revision=0xbfbfe9e8, ctx=0x28940840,
    pool=0x28955018) at subversion/libsvn_client/ra.c:445
#9 0x280c01e7 in svn_client__checkout_internal (result_rev=0x0,
    url=0x28957070 "svn://admin/test", path=0x2894ac08 "test",
    peg_revision=0xbfbfe9dc, revision=0xbfbfe9e8, ra_cache=0x0,
    depth=svn_depth_unknown, ignore_externals=0, allow_unver_obstructions=0,
    timestamp_sleep=0x0, ctx=0x28940840, pool=0x28957018)
    at subversion/libsvn_client/checkout.c:109
#10 0x280cb4fc in svn_client_checkout3 (result_rev=0x0,
    URL=0x28957058 "svn://admin/test", path=0x2894ac08 "test",
    peg_revision=0xbfbfe9dc, revision=0xbfbfe9e8, depth=svn_depth_unknown,
    ignore_externals=0, allow_unver_obstructions=0, ctx=0x28940840,
    pool=0x28957018) at subversion/libsvn_client/deprecated.c:1453
#11 0x0804d378 in svn_cl__checkout (os=0x289401c0, baton=0xbfbfec08,
    pool=0x28940018) at subversion/svn/checkout-cmd.c:160
#12 0x08054720 in main (argc=Cannot access memory at address 0xffffffff
) at subversion/svn/main.c:2119
(gdb)
#0 find_entry (ht=0x20232323, key=0x281affb1, klen=-1, val=0x0)
    at tables/apr_hash.c:260
#1 0x283c1e1b in apr_hash_get (ht=0x20232323, key=0x281affb1, klen=-1)
    at tables/apr_hash.c:330
#2 0x281a881b in svn_ra_svn__do_cyrus_auth (sess=0x28959078,
    mechlist=0x2895b9a8, realm=0x2895bae0 "SIBPTUS.TOMSK.RU", pool=0x28959018)
    at subversion/libsvn_ra_svn/cyrus_auth.c:741
#3 0x281a28a7 in handle_auth_request (sess=0x28959078, pool=0x28959018)
    at subversion/libsvn_ra_svn/client.c:237
#4 0x281a7162 in open_session (sess_p=0xbfbfe728,
    url=0x28957070 "svn://admin/test", uri=Variable "uri" is not available.
)
    at subversion/libsvn_ra_svn/client.c:627
#5 0x281a7648 in ra_svn_open (session=0x289550b8,
    url=0x28957070 "svn://admin/test", callbacks=0x28955058,
    callback_baton=0x28955080, config=0x28940890, pool=0x28955018)
    at subversion/libsvn_ra_svn/client.c:716
#6 0x281397ae in svn_ra_open3 (session_p=0xbfbfe8b8,
    repos_URL=0x28957070 "svn://admin/test", uuid=0x0, callbacks=0x28955058,
    callback_baton=0x28955080, config=0x28940890, pool=0x28955018)
    at subversion/libsvn_ra/ra_loader.c:480
#7 0x280e7aac in svn_client__open_ra_session_internal (
    ra_session=0xbfbfe8b8, base_url=0x28957070 "svn://admin/test",
    base_dir=0x0, base_access=0x0, commit_items=0x0, use_admin=0,
    read_only_wc=0, ctx=0x28940840, pool=0x28955018)
    at subversion/libsvn_client/ra.c:295
#8 0x280e816f in svn_client__ra_session_from_path (ra_session_p=0xbfbfe938,
    rev_p=0xbfbfe934, url_p=0xbfbfe930,
    path_or_url=0x28957070 "svn://admin/test", base_access=0x0,
    peg_revision_p=0xbfbfe9dc, revision=0xbfbfe9e8, ctx=0x28940840,
    pool=0x28955018) at subversion/libsvn_client/ra.c:445
#9 0x280c01e7 in svn_client__checkout_internal (result_rev=0x0,
    url=0x28957070 "svn://admin/test", path=0x2894ac08 "test",
    peg_revision=0xbfbfe9dc, revision=0xbfbfe9e8, ra_cache=0x0,
    depth=svn_depth_unknown, ignore_externals=0, allow_unver_obstructions=0,
    timestamp_sleep=0x0, ctx=0x28940840, pool=0x28957018)
    at subversion/libsvn_client/checkout.c:109
#10 0x280cb4fc in svn_client_checkout3 (result_rev=0x0,
    URL=0x28957058 "svn://admin/test", path=0x2894ac08 "test",
    peg_revision=0xbfbfe9dc, revision=0xbfbfe9e8, depth=svn_depth_unknown,
    ignore_externals=0, allow_unver_obstructions=0, ctx=0x28940840,
    pool=0x28957018) at subversion/libsvn_client/deprecated.c:1453
#11 0x0804d378 in svn_cl__checkout (os=0x289401c0, baton=0xbfbfec08,
    pool=0x28940018) at subversion/svn/checkout-cmd.c:160
#12 0x08054720 in main (argc=Cannot access memory at address 0xffffffff
) at subversion/svn/main.c:2119
(gdb) quit

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov_at_sibptus.tomsk.ru
Received on 2010-09-07 09:34:15 CEST

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