Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-232

dev-vcs/subversion-1.7.7-r1000 segfaults with neon built against gnutls-3.1.4

      When net-libs/gnutls-3.1.4 is emerged, dev-vcs/subversion-1.7.7-r1000 fails to connect to a https:// adress with a segfault (Speicherzugriffsfehler):

      {quote}
      mr@tango01 ~ $ svn co https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/test tomcat
      Speicherzugriffsfehler
      mr@tango01 ~ $ eix net-libs/gnutls
      [I] net-libs/gnutls
           Available versions:  2.12.20 (~)3.1.3 (~)3.1.4 {{bindist +cxx dane doc examples guile lzo +nettle nls pkcs11 static-libs test zlib}}
           Installed versions:  3.1.4(18:03:19 23.11.2012)(cxx nls zlib -dane -doc -examples -guile -pkcs11 -static-libs -test)
           Homepage:            http://www.gnutls.org/
           Description:         A TLS 1.2 and SSL 3.0 implementation for the GNU project
      
      mr@tango01 ~ $
      {quote}
      

      No matter if you remerge dev-vcs/subversion or not, it crashes like this, but only when SSL connection is used. Locally, like with "file://path/to/repo", everything works.

      When net-libs/gnutls-2.12.20 is installed and net-libs/neon-0.29.6-r1 (uses preserved libs) is remerged after that, everything works well:

      {quote}
      mr@tango01 ~ $ svn co https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/test tomcat
      A    tomcat/org
      A    tomcat/org/apache
      A    tomcat/org/apache/el
      .....
      A    tomcat/org/apache/catalina/tribes/demos/ChannelCreator.java
      A    tomcat/org/apache/catalina/tribes/demos/CoordinationDemo.java
      A    tomcat/build.xml
      Ausgecheckt, Revision 1413006.
      mr@tango01 ~ $ eix net-libs/gnutls
      [U] net-libs/gnutls
           Available versions:  2.12.20 (~)3.1.3 (~)3.1.4 {{bindist +cxx dane doc examples guile lzo +nettle nls pkcs11 static-libs test zlib}}
           Installed versions:  2.12.20(19:01:36 23.11.2012)(cxx lzo nettle nls zlib -bindist -doc -examples -guile -pkcs11 -static-libs -test)
           Homepage:            http://www.gnutls.org/
           Description:         A TLS 1.2 and SSL 3.0 implementation for the GNU project
      
      mr@tango01 ~ $
      
      {quote}
      

      So, the steps to reproduce are:

      1. emerge net-libs/gnutls-3.1.4 and dev-vcs/subversion-1.7.7-r1000 (both best versions, currently).
      2. issue 'svn co https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/test tomcat' for example and see that svn crashes with a 'Segmentation fault' message without details only.
      3. Emerge =net-libs/gnutls-2.12.20 explicitly like this:
      emerge =net-libs/gnutls-2.12.20
      4. Issue 'emerge @preserved-rebuild' which should remerge net-libs/neon-0.29.6-r1, among others. net-libs/neon is needed by subversion and to make this demonstrate well.
      5. issue 'svn co https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/test tomcat' for example and see that everything works well now.

      You can repeat these switches as often as you like: You'll always end up with subversion segfaulting when neon is build against gnutls-3.1.4 and SSL is used.

      My 'emerge --info':

      Portage 2.3.5-r3 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.6.3, glibc-2.15-r3, 3.6.6-gentoo-mr05 x86_64)
      =================================================================
      System uname: Linux-3.6.6-gentoo-mr05-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3400+-with-gentoo-2.2.0
      Timestamp of tree: Fri, 23 Nov 2012 06:45:01 +0000
      ld GNU ld (GNU Binutils) 2.22
      ccache version 3.1.8 [disabled]
      app-shells/bash:          4.2_p37
      dev-lang/python:          2.7.3-r1000, 3.2.3-r1000
      dev-util/ccache:          3.1.8
      dev-util/cmake:           2.8.9-r1
      sys-apps/baselayout:      2.2.0-r3
      sys-apps/openrc:          0.10.2-r6
      sys-apps/sandbox:         2.6
      sys-devel/autoconf:       2.69
      sys-devel/automake:       1.11.6
      sys-devel/binutils:       2.22-r1
      sys-devel/gcc:            4.6.3
      sys-devel/gcc-config:     1.5-r1
      sys-devel/libtool:        2.4.2
      sys-devel/make:           3.82-r4
      sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
      sys-libs/glibc:           2.15-r3
      Repositories: gentoo flora
      ACCEPT_KEYWORDS="amd64 ~amd64"
      ACCEPT_LICENSE="* -@EULA dlj-1.1 Oracle-BCLA-JavaSE"
      CBUILD="x86_64-pc-linux-gnu"
      CFLAGS="-O2 -march=k8 -pipe"
      CHOST="x86_64-pc-linux-gnu"
      CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
      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/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
      CXXFLAGS="-O2 -march=k8 -pipe"
      DISTDIR="/usr/portage/distfiles"
      FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
      FFLAGS=""
      GENTOO_MIRRORS="http://distfiles.gentoo.org"
      LANG="en_US.UTF-8"
      LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
      LINGUAS="de en"
      MAKEOPTS="-j3"
      PKGDIR="/usr/portage/packages"
      PORTAGE_CONFIGROOT="/"
      PORTAGE_TMPDIR="/var/tmp"
      PORTDIR="/usr/portage"
      PORTDIR_OVERLAY="/usr/local/portage/flora"
      SYNC="git://github.com/funtoo/ports-2012.git"
      SYNC_USER="root"
      USE="acl amd64 apache2 bash-completion bcmath berkdb bzip2 cracklib crypt ctype curl cxx exif fam ftp gd-external gdbm gif git gnutls gzip hash i18n iconv icu imap imlib inifile innodb ipv6 jadetex jpeg jpeg2k lame latex libwww lzo maildir mercurial mhash mime mmx mng modules mp3 mp4 mpeg mudflap multilib mysql mysqli ncurses netpbm nls nptl ogg openmp pam pcre pdf pdo perl php plotutils png posix python readline resolvconf rss ruby sasl session snmp soap sockets sqlite sqlite3 sse sse2 ssl subversion suhosin syslog szip tcpd threads tidy tiff truetype unicode vhosts vim-syntax vorbis xattr xml xmlreader xmlrpc xmlwriter zip zlib" 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 authn_alias authn_anon authn_dbm authn_default auth_digest 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 usertrack vhost_alias" APACHE2_MPMS="prefork" 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="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" PHP_TARGETS="php5-3" PYTHON_ABIS="2.7 3.2" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" 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, SYNC_UMASK
      

            Unassigned Unassigned
            judge Marc Richter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: