Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217786 - dev-util/subversion-1.4.6-r2 segfaults with net-misc/neon-0.28.2
Summary: dev-util/subversion-1.4.6-r2 segfaults with net-misc/neon-0.28.2
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-15 11:37 UTC by Andrei Ivanov
Modified: 2009-01-16 10:25 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Ivanov 2008-04-15 11:37:37 UTC
After upgrading neon from 0.26.4 to 0.28.2, svn segfaults

Portage 2.1.5_rc3 (default-linux/x86/2007.0, gcc-4.2.3, glibc-2.7-r2, 2.6.23-gentoo-r9 i686)
=================================================================
System uname: 2.6.23-gentoo-r9 i686 AMD Athlon(tm) XP 2600+
Timestamp of tree: Tue, 15 Apr 2008 06:15:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.3.6-r2, 2.4.4-r4, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="candy distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.roedu.net/pub/mirrors/gentoo.org"
LDFLAGS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow aalib acl acpi adns alsa apache2 bzip2 cairo caps cli cracklib crypt cups curl curlwrappers dio exif expat flac fortran ftp gd gif gmp gpm iconv idn imagemagick imap imlib isdnlog jpeg mad maildir mailwrapper memlimit mhash midi mmap mmx mudflap ncurses network-cron nptl nptlonly offensive oggvorbis openmp pam pcntl pcre png posix pppd readline reflection samba session shared sharedmem slang soap sockets speex spl sse ssl svg sysvipc tcpd theora tiff truetype unicode urandom usb vhosts vim-syntax wmf x86 xml xmlrpc xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1      emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m     maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I've recompiled neon, subversion and zlib with CFLAGS="-march=athlon-xp -O2 -pipe -ggdb" but I didn't get anywhere with getting a usable backtrace:

Program terminated with signal 11, Segmentation fault.
[New process 19941]
#0  0xb78f8f0f in ?? () from /lib/libz.so
(gdb) bt
#0  0xb78f8f0f in ?? () from /lib/libz.so
#1  0xb7bdc85c in ?? () from /usr/lib/libssl.so.0.9.8
#2  0x00000001 in ?? ()
#3  0xb7f39fc4 in ?? () from /lib/ld-linux.so.2
#4  0xb7c889a4 in ?? ()
#5  0xbfa1d4c8 in ?? ()
#6  0xbfa1d4e4 in ?? ()
#7  0xb7902300 in ?? () from /lib/libz.so
#8  0xb7bdc85c in ?? () from /usr/lib/libssl.so.0.9.8
#9  0xbfa1d4c8 in ?? ()
#10 0xb7f3a7b4 in ?? ()
#11 0x00000000 in ?? ()
Comment 1 Andrei Ivanov 2008-04-15 11:48:43 UTC
Subversion was also compiled with the debug flag, didn't help either.
The command that triggered the crash was 
svn mkdir -m "Creating empty tag" https://<user>@<host>/<path>


dev-util/subversion-1.4.6-r2  USE="apache2 extras java python vim-syntax -bash-completion -berkdb -debug -doc -emacs -nls -nowebdav -perl -ruby -svnserve"
dev-libs/openssl-0.9.8g-r1  USE="gmp zlib -bindist -emacs -kerberos -sse2 -test"
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-04-15 17:29:43 UTC
http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 3 Andrei Ivanov 2008-04-15 19:23:45 UTC
Quote from myself:
I've recompiled neon, subversion and zlib with CFLAGS="-march=athlon-xp -O2
-pipe -ggdb" but I didn't get anywhere with getting a usable backtrace

What is your point?
Comment 4 Andrei Ivanov 2008-04-15 19:45:32 UTC
Ok, got it.. forgot about nostrip

[New process 10373]
#0  0xb7927f0f in deflate_slow (s=0x80cb120, flush=2) at deflate.c:1580
1580    deflate.c: No such file or directory.
        in deflate.c
(gdb) bt
#0  0xb7927f0f in deflate_slow (s=0x80cb120, flush=2) at deflate.c:1580
#1  0xb7927429 in deflate (strm=0x80bffa0, flush=2) at deflate.c:790
#2  0xb7bb7f69 in zlib_stateful_compress_block (ctx=0x80bff48, out=0x80b7995 "\210\021", olen=17408, in=0x80a9c20 "\024", ilen=16) at c_zlib.c:207
#3  0xb7bb798e in COMP_compress_block (ctx=0x80bff48, out=0x80b7995 "\210\021", olen=17408, in=0x80a9c20 "\024", ilen=16) at comp_lib.c:46
#4  0xb7c1a53d in ssl3_do_compress (ssl=0x80a95a8) at s3_pkt.c:498
#5  0xb7c1a65d in do_ssl3_write (s=0x80a95a8, type=22, buf=0x80a9c20 "\024", len=16, create_empty_fragment=0) at s3_pkt.c:659
#6  0xb7c1aab2 in ssl3_write_bytes (s=0x80a95a8, type=22, buf_=0x80a9c20, len=16) at s3_pkt.c:543
#7  0xb7c1cad0 in ssl3_do_write (s=0x80a95a8, type=22) at s3_both.c:132
#8  0xb7c1cbf5 in ssl3_send_finished (s=0x80a95a8, a=4528, b=4529, sender=0xb7c37099 "client finished", slen=15) at s3_both.c:187
#9  0xb7c171ec in ssl3_connect (s=0x80a95a8) at s3_clnt.c:412
#10 0xb7c29d1a in SSL_connect (s=0x80a95a8) at ssl_lib.c:859
#11 0xb7c1e434 in ssl23_connect (s=0x80a95a8) at s23_clnt.c:593
#12 0xb7c29d1a in SSL_connect (s=0x80a95a8) at ssl_lib.c:859
#13 0xb7c5012c in ne_sock_connect_ssl (sock=0x80a84b8, ctx=0x809c6f0, userdata=0x809d158) at ne_socket.c:1541
#14 0xb7c5994a in ne__negotiate_ssl (sess=0x809d158) at ne_openssl.c:632
#15 0xb7c4a479 in send_request (req=0x809ed10, request=0x80a7240) at ne_request.c:1538
#16 0xb7c4937c in ne_begin_request (req=0x809ed10) at ne_request.c:1163
#17 0xb7c49b1d in ne_request_dispatch (req=0x809ed10) at ne_request.c:1372
#18 0xb7e793f3 in parsed_request (sess=0x809d158, method=0xb7e7b208 "OPTIONS", url=0x8091358 "/svn/repos/webmedia/WebmediaBES/tags",
    body=0xb7e7b0f8 "<?xml version=\"1.0\" encoding=\"utf-8\"?><D:options xmlns:D=\"DAV:\"><D:activity-collection-set/></D:options>", body_file=0x0,
    set_parser=0, elements=0xb7e7d940, use_neon_shim=1, validate_compat_cb=0xb7e72ce0 <validate_element>, startelm_compat_cb=0xb7e72d40 <start_element>,
    endelm_compat_cb=0xb7e72e50 <end_element>, startelm_cb=0, cdata_cb=0, endelm_cb=0, baton=0xbfcc672c, extra_headers=0x0, status_code=0x0,
    spool_response=0, pool=0x808c288) at subversion/libsvn_ra_dav/util.c:715
#19 0xb7e799f7 in svn_ra_dav__parsed_request_compat (sess=0x809d158, method=0xb7e7b208 "OPTIONS", url=0x8091358 "/svn/repos/webmedia/WebmediaBES/tags",
    body=0xb7e7b0f8 "<?xml version=\"1.0\" encoding=\"utf-8\"?><D:options xmlns:D=\"DAV:\"><D:activity-collection-set/></D:options>", body_file=0x0,
    set_parser=0, elements=0xb7e7d940, validate_cb=0xb7e72ce0 <validate_element>, startelm_cb=0xb7e72d40 <start_element>,
    endelm_cb=0xb7e72e50 <end_element>, baton=0xbfcc672c, extra_headers=0x0, status_code=0x0, spool_response=0, pool=0x808c288)
    at subversion/libsvn_ra_dav/util.c:876
#20 0xb7e72df3 in svn_ra_dav__get_activity_collection (activity_coll=0xbfcc67f4, ras=0x808cae0, url=0x8091358 "/svn/repos/webmedia/WebmediaBES/tags",
    pool=0x808c288) at subversion/libsvn_ra_dav/options.c:115
#21 0xb7e6a08c in get_activity_collection (cc=0x808cbc8, collection=0xbfcc67f4, force=0, pool=0x808c288) at subversion/libsvn_ra_dav/commit.c:349
#22 0xb7e6aa1b in svn_ra_dav__get_commit_editor (session=0x808caa0, editor=0xbfcc6894, edit_baton=0xbfcc6890,
    log_msg=0x808c9f0 "Creating empty tag, for Changelogic", callback=0xb7f24900 <svn_client__commit_callback>, callback_baton=0x808cbb0, lock_tokens=0x0,
    keep_locks=1, pool=0x808c288) at subversion/libsvn_ra_dav/commit.c:378
#23 0xb7ee35c9 in svn_ra_get_commit_editor2 (session=0x808caa0, editor=0xbfcc6894, edit_baton=0xbfcc6890,
    log_msg=0x808c9f0 "Creating empty tag, for Changelogic", callback=0xb7f24900 <svn_client__commit_callback>, callback_baton=0x808cbb0, lock_tokens=0x0,
    keep_locks=1, pool=0x808c288) at subversion/libsvn_ra/ra_loader.c:393
#24 0xb7f1f36f in svn_client_mkdir2 (commit_info_p=0xbfcc68e4, paths=0x80704f0, ctx=0x806f640, pool=0x808c288) at subversion/libsvn_client/add.c:597
#25 0x08051bc9 in svn_cl__mkdir (os=0x806f240, baton=0xbfcc6a6c, pool=0x806f128) at subversion/svn/mkdir-cmd.c:75
#26 0x08050ddd in main (argc=Cannot access memory at address 0x0
) at subversion/svn/main.c:1485
Comment 5 Andrei Ivanov 2008-04-15 19:47:07 UTC
If I use a local file:// url, it doesn't crash... so it seems to be triggered by openssl/zlib?
Comment 7 Benedikt Böhm (RETIRED) gentoo-dev 2008-08-29 12:09:17 UTC
please try if neon-0.28.3 solves the problem
Comment 8 Andrei Ivanov 2009-01-15 19:01:52 UTC
I can't seem to be able to recompile subversion:
make external-all
make LT_LDFLAGS=-L/var/tmp/portage/dev-util/subversion-1.4.6-r2/image//usr/lib local-all
/bin/sh /var/tmp/portage/dev-util/subversion-1.4.6-r2/work/subversion-1.4.6/libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -march=athlon-xp -O3 -pipe -fomit-frame-pointer -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   -pthread  -I./subversion/include -I./subversion -I/usr/include/apr-1  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/usr/include/apr-1 -I/usr/include/db4.6  -o subversion/libsvn_delta/cancel.lo -c subversion/libsvn_delta/cancel.c
/var/tmp/portage/dev-util/subversion-1.4.6-r2/work/subversion-1.4.6/libtool: line 463: CDPATH: command not found
/var/tmp/portage/dev-util/subversion-1.4.6-r2/work/subversion-1.4.6/libtool: line 1155: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2.6, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6
libtool: and run autoconf again.
make: *** [subversion/libsvn_delta/cancel.lo] Error 63

Any ideea on how to fix it?

Portage 2.1.6.6 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r4-i686-AMD_Athlon-tm-_XP_2600+-with-glibc2.0
Timestamp of tree: Thu, 15 Jan 2009 07:45:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.3.6-r2, 2.4.4-r4, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="candy distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.evolva.ro/gentoo/ ftp://ftp.roedu.net/pub/mirrors/gentoo.org"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow aalib acl acpi adns alsa apache2 bzip2 cairo caps cli cracklib crypt cups curl curlwrappers dio exif expat flac fortran ftp gd gif gmp gpm iconv idn imagemagick imap imlib isdnlog jpeg lzma mad maildir mailwrapper memlimit mhash midi mmap mmx mudflap ncurses network-cron nocxx nptl nptlonly offensive oggvorbis openmp pam pcntl pcre png posix pppd readline reflection samba session shared sharedmem slang soap sockets speex spl sse ssl svg sysfs sysvipc tcpd theora tiff truetype unicode urandom usb vhosts vim-syntax wmf x86 xml xmlrpc xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-01-16 10:25:12 UTC
(In reply to comment #8)
> Any ideea on how to fix it?

Subversion 1.4.* doesn't work with libtool 2.2.*. Please use Subversion 1.5.*.