Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443854 - dev-vcs/subversion-1.7.7 segfaults with gnutls-3.*
Summary: dev-vcs/subversion-1.7.7 segfaults with gnutls-3.*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Thomas Sachau
URL:
Whiteboard:
Keywords:
Depends on: 440936
Blocks:
  Show dependency tree
 
Reported: 2012-11-18 22:59 UTC by Joe Kappus
Modified: 2012-12-20 12:36 UTC (History)
2 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 Joe Kappus 2012-11-18 22:59:07 UTC
subversion segfaults on https with this, rebuilding without DSO it does not. 

Nov 15 15:42:48 wrath kernel: svn[31108]: segfault at 0 ip 00007f3e0d446d74 sp 00007fffaad3aba0 error 4 in libgnutls.so.28.14.0[7f3e0d3c3000+f0000]

There's an old (and resolved bug) that's related to this issue.  I haven't found it yet, will update this report when I do.  There was another report in the #pentoo channel of someone with the same crash.  Thought to disable dso when I saw the old bug report.

This should block #421391? Not sure how to add.  Downgrading gnutls to 2.xx OR rebuilding subversion without dso is a workaround.


Reproducible: Always

Steps to Reproduce:
1. Build gnutls-3.*
2. Merge subversion
3. try svn co https://something
Actual Results:  
svn segfaults

Expected Results:  
svn not segfault

System uname: Linux-3.6.6-ck1-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.2
Portage 2.2.0_alpha142_p27 (default/linux/amd64/10.0/no-multilib, gcc-4.7.2, glibc-2.16.0, 3.6.6-ck1 x86_64)
Timestamp of tree: Sun, 18 Nov 2012 20:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p39
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.10.1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.5
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo bitcoin java-overlay pentoo sunrise local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.llarian.net/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/bitcoin /var/lib/layman/java-overlay /var/lib/layman/pentoo /var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X alsa amd64 berkdb bzip2 cli corefonts cracklib crypt cups cxx dri gdbm gif gnutls gpm iconv icu ipv6 jpeg mmx mmxext modules mudflap ncurses nptl nptlonly ogg opengl openmp pam pcre png ppds pppd readline sdl session sse sse2 sse3 sse4_1 ssl ssse3 tcpd threads tiff truetype unicode usb wifi xinerama zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="nmea" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s" USERLAND="GNU" VIDEO_CARDS="fbdev intel vesa i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Joe Kappus 2012-11-18 23:00:12 UTC
Adding blocker tracking # bug.
Comment 2 Joe Kappus 2012-11-18 23:10:49 UTC
Actually, I guess it's still messed up even without the dso useflag. Sorry for the spam.
Comment 3 Joe Kappus 2012-11-18 23:34:22 UTC
Got a backtrace.

Program received signal SIGSEGV, Segmentation fault.
gnutls_x509_crt_get_subject (cert=cert@entry=0x0, dn=dn@entry=0x961900) at x509.c:2114
2114    x509.c: No such file or directory.
(gdb) bt
#0  gnutls_x509_crt_get_subject (cert=cert@entry=0x0, dn=dn@entry=0x961900) at x509.c:2114
#1  0x00007ffff48580ef in populate_cert (cert=0x961900, x5=x5@entry=0x0) at ne_gnutls.c:470
#2  0x00007ffff48591cb in make_peers_chain (crd=0x6b1990, sock=0x957cb0) at ne_gnutls.c:775
#3  ne__negotiate_ssl (sess=sess@entry=0x6b1590) at ne_gnutls.c:952
#4  0x00007ffff4847d92 in open_connection (sess=0x6b1590) at ne_request.c:1650
#5  send_request (req=req@entry=0x949f50, request=<optimized out>, request=<optimized out>)
    at ne_request.c:955
#6  0x00007ffff48484c5 in ne_begin_request (req=req@entry=0x949f50) at ne_request.c:1189
#7  0x00007ffff4847c5d in ne_request_dispatch (req=0x949f50) at ne_request.c:1400
#8  0x00007ffff6006205 in svn_ra_neon__request_dispatch (code_p=code_p@entry=0x7fffffffd514, 
    req=0x697950, extra_headers=extra_headers@entry=0x0, 
    body=body@entry=0x7ffff6009168 "<?xml version=\"1.0\" encoding=\"utf-8\"?><D:options xmlns:D=\"DAV:\"><D:activity-collection-set/></D:options>", okay_1=okay_1@entry=200, okay_2=okay_2@entry=301, 
    pool=pool@entry=0x6958c8) at subversion/libsvn_ra_neon/util.c:1534
#9  0x00007ffff5fff4dc in svn_ra_neon__exchange_capabilities (ras=ras@entry=0x695a40, 
    relocation_location=relocation_location@entry=0x7fffffffd740, 
    youngest_rev=youngest_rev@entry=0x0, pool=pool@entry=0x6958c8)
    at subversion/libsvn_ra_neon/options.c:310
#10 0x00007ffff6003c7b in svn_ra_neon__open (session=0x695990, corrected_url=0x7fffffffd740, 
    repos_URL=<optimized out>, callbacks=<optimized out>, callback_baton=<optimized out>, config=0x7, 
    pool=0x6958c8) at subversion/libsvn_ra_neon/session.c:1081
#11 0x00007ffff76eb7f3 in svn_ra_open4 (session_p=session_p@entry=0x7fffffffda30, 
    corrected_url_p=0x7fffffffd898, 
    repos_URL=repos_URL@entry=0x661850 "https://pentoo.googlecode.com/svn/portage/trunk", 
    uuid=0x661c90 "04556701-5d27-2e10-b29c-201e0903c0fa", callbacks=callbacks@entry=0x661c18, 
    callback_baton=callback_baton@entry=0x661c68, config=0x641cc8, pool=pool@entry=0x661518)
    at subversion/libsvn_ra/ra_loader.c:505
#12 0x00007ffff7bc7877 in svn_client__open_ra_session_internal (
    ra_session=ra_session@entry=0x7fffffffda30, corrected_url=corrected_url@entry=0x7fffffffda10, 
    base_url=0x661850 "https://pentoo.googlecode.com/svn/portage/trunk", 
    base_dir_abspath=base_dir_abspath@entry=0x6617d0 "/var/lib/layman/pentoo", 
    commit_items=0x7fffffffd898, commit_items@entry=0x0, use_admin=use_admin@entry=1, 
    read_only_wc=read_only_wc@entry=1, ctx=ctx@entry=0x641ad8, pool=pool@entry=0x661518)
    at subversion/libsvn_client/ra.c:333
#13 0x00007ffff7bcdc48 in update_internal (result_rev=result_rev@entry=0x7fffffffdc80, 
    local_abspath=local_abspath@entry=0x661640 "/var/lib/layman/pentoo", 
    anchor_abspath=0x6617d0 "/var/lib/layman/pentoo", revision=revision@entry=0x7fffffffdbb0, 
    depth=depth@entry=svn_depth_unknown, depth_is_sticky=depth_is_sticky@entry=0, 
    ignore_externals=ignore_externals@entry=0, 
    allow_unver_obstructions=allow_unver_obstructions@entry=0, 
    adds_as_modification=adds_as_modification@entry=1, 
    timestamp_sleep=timestamp_sleep@entry=0x7fffffffdc7c, notify_summary=notify_summary@entry=1, 
    ctx=ctx@entry=0x641ad8, pool=pool@entry=0x661518) at subversion/libsvn_client/update.c:336
#14 0x00007ffff7bce822 in svn_client__update_internal (result_rev=result_rev@entry=0x7fffffffdc80, 
    local_abspath=0x661640 "/var/lib/layman/pentoo", revision=revision@entry=0x7fffffffdee8, 
    depth=depth@entry=svn_depth_unknown, depth_is_sticky=depth_is_sticky@entry=0, 
    ignore_externals=ignore_externals@entry=0, 
    allow_unver_obstructions=allow_unver_obstructions@entry=0, 
    adds_as_modification=adds_as_modification@entry=1, make_parents=make_parents@entry=0, 
    innerupdate=innerupdate@entry=0, timestamp_sleep=timestamp_sleep@entry=0x7fffffffdc7c, 
    ctx=ctx@entry=0x641ad8, pool=pool@entry=0x661518) at subversion/libsvn_client/update.c:546
#15 0x00007ffff7bce9c2 in svn_client_update4 (result_revs=result_revs@entry=0x7fffffffdd28, 
    paths=0x66aff8, revision=revision@entry=0x7fffffffdee8, depth=svn_depth_unknown, 
    depth_is_sticky=0, ignore_externals=0, allow_unver_obstructions=0, 
    adds_as_modification=adds_as_modification@entry=1, make_parents=0, ctx=ctx@entry=0x641ad8, 
    pool=pool@entry=0x641228) at subversion/libsvn_client/update.c:603
#16 0x0000000000416526 in svn_cl__update (os=<optimized out>, baton=<optimized out>, 
    scratch_pool=0x641228) at subversion/svn/update-cmd.c:157
#17 0x000000000040838c in main (argc=<optimized out>, argv=<optimized out>)
    at subversion/svn/main.c:2659
Comment 4 Philipp 2012-11-19 19:00:21 UTC
same problem here:

~ # svn co https://armagetronad.svn.sourceforge.net/svnroot/armagetronad/armagetronad/trunk/build/gentoo/overlay
Segmentation fault


Portage 2.1.11.31 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.16.0, 3.6.2-gentoo x86_64)
=================================================================
System uname: Linux-3.6.2-gentoo-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_4850e-with-gentoo-2.2
Timestamp of tree: Mon, 19 Nov 2012 10:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p39
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.5
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo bitcoin
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/bitcoin"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex acl amd64 authlib berkdb bzip2 cdr cli cracklib crypt cups cxx dri dynamicplugin exiscan-acl fortran gd gdbm gif gnutls gpm iconv imap ip4100 jpeg libwww lm_sensors logrotate maildir mmx mmxext modules mudflap multilib mysql ncurses nls nptl nptlonly pam pcre php png pppd qmail readline samba sasl session speex spell sse sse2 ssl symlink tcpd threads truetype unicode utf8 xml zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Thomas Sachau gentoo-dev 2012-11-19 20:04:11 UTC
This does not directly block bug 421391, since svn itself works. The problem is neon + gnutls-3 and this bug is yet another duplicate of bug 440936. I am leaving this one open for now to avoid further duplicated bugs.
Comment 6 Thomas Sachau gentoo-dev 2012-12-20 12:36:11 UTC
Bug 440936 fixed, so subversion should work fine with gnutls-3.*