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

Segmentation fault every time I try to use svn client. Please help!

From: Abraham Fowler <abraham_at_languagecomputer.com>
Date: 2004-08-25 16:36:38 CEST

I have been trying fruitlessly to get SVN client installed on my machine
at work. I already have experience running SVN as a server on my home
box, so I have been through all the compilation stuff before. However,
on my work machine, whenever I compile SVN and then run any command,
including just 'svn help', I get a 'Segmentation fault' error. It
appears to be coming from apr_palloc() in libsvn_client-1.so.0.

Please help!

Related Threads
---------------

Florent Guiliani, in December 2003, found almost the identical problem in Subversion 0.34:
http://www.contactor.se/~dast/svn/archive-2003-12/0336.shtml
No one answered his plea for help.

I also posted a few days ago on this list, but apparently no one picked up on it.

Background information
----------------------

OS: RedHat Linux (9?)
Apache version: 2.0.50
Subversion version: 1.0.6
User access: At work, we do not have root access on our machines, but I
have successfully compiled and installed many applications (including
Apache) to my local directories for which I have permissions.

Build Procedure
---------------

1. First I built Apache 2.0.50 with the following:

   $ ./configure --prefix=~/local/apache2.0.50 \
                 --enable-auth-digest \
                 --enable-deflate \
                 --enable-mime-magic \
                 --enable-dav \
                 --enable-so
   $ make
   $ make install

2. Then I built Subversion 1.0.6 with the following:

   $ ./configure --prefix=~/local \
                 --with-apxs=~/local/apache2.0.50/bin/apxs \
                 --enable-maintainer-mode \
                 --with-apr=../httpd-2.0.50/srclib/apr \
                 --with-apr-util=../httpd-2.0.50/srclib/apr-util
   $ make
   $ make install

Most of the configure options are from a script that I used to build and
install Apache and Subversion on my Slackware box at home, quite some
time ago. I don't remember why I used each one, but they were
apparently all there for a purpose.

I can also provide logs of the entire configure, make and make install
process, if those are necessary.

Stack Trace
-----------

$ gdb `which svn`
GNU gdb 6.0
Copyright 2003 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 "i686-pc-linux-gnu"...
(gdb) run help
Starting program: /shared/lcc20/disk1/abraham/bin/svn help
[New Thread 1080028960 (LWP 2424)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1080028960 (LWP 2424)]
0x40073ebf in apr_palloc ()
   from /shared/lcc20/disk1/abraham/lib/libsvn_client-1.so.0
(gdb) bt full
#0 0x40073ebf in apr_palloc ()
   from /shared/lcc20/disk1/abraham/lib/libsvn_client-1.so.0
No symbol table info available.
#1 0x4006bf82 in apr_pstrdup ()
   from /shared/lcc20/disk1/abraham/lib/libsvn_client-1.so.0
No symbol table info available.
#2 0x40073bad in apr_uid_name_get ()
   from /shared/lcc20/disk1/abraham/lib/libsvn_client-1.so.0
No symbol table info available.
#3 0x4005de96 in svn_config__user_config_path ()
   from /shared/lcc20/disk1/abraham/lib/libsvn_client-1.so.0
No symbol table info available.
#4 0x4005e289 in svn_config_ensure ()
   from /shared/lcc20/disk1/abraham/lib/libsvn_client-1.so.0
No symbol table info available.
#5 0x0804f124 in main (argc=2, argv=0xbfffddd4)
    at subversion/clients/cmdline/main.c:977
        err = (svn_error_t *) 0x8054976
        allocator = (apr_allocator_t *) 0x8063248
        pool = (apr_pool_t *) 0x80632d0
        opt_id = 1108551892
        os = (apr_getopt_t *) 0x8063308
        opt_state = {start_revision = {kind =
svn_opt_revision_unspecified,
    value = {number = 0, date = 0}}, end_revision = {
    kind = svn_opt_revision_unspecified, value = {number = 0, date =
0}},
  recursive = 0, nonrecursive = 0, message = 0x0, ancestor_path = 0x0,
  force = 0, force_log = 0, incremental = 0, quiet = 0, non_interactive
= 0,
  version = 0, verbose = 0, update = 0, strict = 0, filedata = 0x0,
  encoding = 0x0, help = 0, auth_username = 0x0, auth_password = 0x0,
  extensions = 0x0, targets = 0x0, xml = 0, no_ignore = 0, no_auth_cache
= 0,
  no_diff_deleted = 0, notice_ancestry = 0, ignore_ancestry = 0,
  stop_on_copy = 0, dry_run = 0, revprop = 0, diff_cmd = 0x0, merge_cmd
= 0x0,
  editor_cmd = 0x0, old_target = 0x0, new_target = 0x0, relocate = 0,
  config_dir = 0x0, autoprops = 0, no_autoprops = 0}
        ctx = (svn_client_ctx_t *) 0x40437ed0
        received_opts = {1107309504, 1078779000, 33, 1080015352,
1073829104,
  1078779412, 1107352755, -1073750836, 1073776246, 1107352755,
179931522,
  1107323504, -1073750916, 1073781057, 134521159, 1078778940,
1073780987,
  1073829104, 1078777120, 0, -1073750944, 1073780365, 1107365309,
134521395,
  0, 1108552084, 32, 1107365492, 1107344736, 1107309504, 1078779000, 33,
  1080015352, 1073829104, 1073830036, 134521263, -1073750720,
1073776246,
  134521263, 24641422, 134516128, -1073750800, 1073829960, 30,
1080015520, 0,
  1, 0, 0, 1667460096}
        i = 1107344736
        num_opts = 0
        subcommand = (const svn_opt_subcommand_desc_t *) 0x0
        log_under_version_control = 0
        log_is_pathname = 0
        apr_err = 70014
        command_baton = {opt_state = 0x4000968d, ctx = 0x42010dbd}
        ab = (svn_auth_baton_t *) 0xbfffdc4c
        cfg = (svn_config_t *) 0x49e0544
(gdb) quit
The program is running. Exit anyway? (y or n) y

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 25 16:37:18 2004

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.