Sebastian Magda wrote on Sat, Jan 28, 2012 at 00:05:19 -0800:
> Built and installed the latest stable version
> subversion-1.7.2.tar.gz<http://apache.mirrors.pair.com/subversion/subversion-1.7.2.tar.gz>
> Crashes immediately on start:
>
> : svn
> Segmentation fault (core dumped)
>
> Build details:
>
> : ./configure --with-ssl --with-apr=/usr/local/apache2
> --with-apr-util=/usr/local/apache2 --with-apxs=/usr/local/apache2/bin/apxs
> --enable-debug
> : make
> : make install
> : which svn
> /usr/local/bin/svn
...
> : gdb svn core.3020
> GNU gdb Red Hat Linux (6.3.0.0-1.162.el4rh)
> #0 apr_xlate_conv_buffer (convset=0x2d6674752d6e7673, inbuf=0x54da20 "Type
> 'svn help' for usage.\n", inbytes_left=0x7fbfffe508, outbuf=0x54da60 "",
> outbytes_left=0x7fbfffe500) at xlate/xlate.c:339
> 339 if (convset->ich != (iconv_t)-1) {
>
> (gdb) bt
> #0 apr_xlate_conv_buffer (convset=0x2d6674752d6e7673, inbuf=0x54da20 "Type
> 'svn help' for usage.\n", inbytes_left=0x7fbfffe508, outbuf=0x54da60 "",
> outbytes_left=0x7fbfffe500) at xlate/xlate.c:339
> #1 0x0000002a96428a9d in convert_to_stringbuf (node=0x2a9643884a,
> src_data=0x54da20 "Type 'svn help' for usage.\n", src_length=27,
> dest=0x7fbfffe580, pool=0x54d278) at subversion/libsvn_subr/utf.c:540
> #2 0x0000002a9642925f in convert_cstring (dest=0x7fbfffe648, src=0x54da20
> "Type 'svn help' for usage.\n", node=0x2a9643884a, pool=0x54d278) at
> subversion/libsvn_subr/utf.c:774
> #3 0x0000002a96429804 in svn_utf_cstring_from_utf8 (dest=0x7fbfffe648,
> src=0x54da20 "Type 'svn help' for usage.\n", pool=0x54d278) at
> subversion/libsvn_subr/utf.c:908
> #4 0x0000002a963f2a3d in svn_cmdline_cstring_from_utf8 (dest=0x7fbfffe648,
> src=0x54da20 "Type 'svn help' for usage.\n", pool=0x54d278) at
> subversion/libsvn_subr/cmdline.c:244
> #5 0x0000002a963f2d34 in svn_cmdline_fputs (string=0x54da20 "Type 'svn
> help' for usage.\n", stream=0x3b9d733680, pool=0x54d278) at
> subversion/libsvn_subr/cmdline.c:323
> #6 0x0000002a963f2d0a in svn_cmdline_fprintf (stream=0x3b9d733680,
> pool=0x54d278, fmt=0x2a964360d2 "Type '%s help' for usage.\n") at
> subversion/libsvn_subr/cmdline.c:314
> #7 0x0000002a964121dc in svn_opt_print_help3 (os=0x0, pgm_name=0x425634
> "svn", print_version=0, quiet=0,
> version_footer=0x54d820 "The following repository access (RA) modules
> are available:\n\n* ra_neon : Module for accessing a repository via WebDAV
> protocol using Neon.\n - handles 'http' scheme\n - handles 'https'
> scheme\n* ra_svn"...,
> header=0x54d4c8 "usage: svn <subcommand> [options] [args]\nSubversion
> command-line client, version 1.7.2.\nType 'svn help <subcommand>' for help
> on a specific subcommand.\nType 'svn --version' to see the program version
> "..., cmd_table=0x537280, option_table=0x536840, global_options=0x427cc0,
> footer=0x7fbfffe880 "Subversion is a tool for version control.\nFor
> additional information, see http://subversion.apache.org/\n",
> pool=0x54d278) at subversion/libsvn_subr/opt.c:1134
> #8 0x000000000040d6f2 in svn_cl__help (os=0x0, baton=0x0, pool=0x54d278)
> at subversion/svn/help-cmd.c:82
> #9 0x0000000000412b0d in main (argc=1, argv=0x7fbfffef68) at
> subversion/svn/main.c:1523
>
> (gdb) info locals
> status = 0
>
> (gdb) info args
> convset = (apr_xlate_t *) 0x2d6674752d6e7673
% echo 2d6674752d6e7673 | xxd -p -r
-ftu-nvs
% fgrep \"svn-utf- subversion/*/*[hc] subversion/*[hc]
subversion/libsvn_subr/utf.c:static const char *SVN_UTF_NTOU_XLATE_HANDLE = "svn-utf-ntou-xlate-handle";
subversion/libsvn_subr/utf.c:static const char *SVN_UTF_UTON_XLATE_HANDLE = "svn-utf-uton-xlate-handle";
subversion/libsvn_subr/utf.c: return apr_pstrcat(pool, "svn-utf-", frompage, "to", topage,
I don't recall offhand whether this was already fixed, though Philip
might remember.
> inbuf = 0x54da20 "Type 'svn help' for usage.\n"
> inbytes_left = (apr_size_t *) 0x7fbfffe508
> outbuf = 0x54da60 ""
> outbytes_left = (apr_size_t *) 0x7fbfffe500
>
> My be related to this:
> http://svn.haxx.se/users/archive-2011-08/0210.shtml
>
Yes, that 2d6674752d6e7673 value appears there too.
> Building with 'make CFLAGS=-O0' did not help.
>
> Any help appreciated.
>
> Sebastian Magda
Received on 2012-01-30 08:42:33 CET