Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318799 - app-admin/fsvs segfaults on amd64 with -march=core2
Summary: app-admin/fsvs segfaults on amd64 with -march=core2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on: 357351
Blocks:
  Show dependency tree
 
Reported: 2010-05-06 19:09 UTC by frank
Modified: 2012-03-03 15:14 UTC (History)
0 users

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 frank 2010-05-06 19:09:42 UTC
on several x86 gentoo systems it just works, instead on several amd64 gentoo systems fsvs segfaults when committing.

Reproducible: Always

Steps to Reproduce:
1. create a repository:
# svnadmin create /repos

2. create a test directoy (doesn't need to contain any file) and cd into it:
# mkdir test
# cd test

3. setup fsvs with the repository url and do the first commit:
# fsvs urls file:///repos
# fsvs commit -m "test"
Actual Results:  
An error occurred: Bad address (14)
  in dir__enumerator: Segmentation fault

Expected Results:  
Committing to file:///repos
committed revision      1 on 2010-05-06T18:50:30.625878Z as root

i've tried bumping the ebuild to the last fsvs version (1.2.2) but it still segfaults.
Comment 1 frank 2010-05-07 08:02:55 UTC
it turns out the segfault is caused by the -march=core2 flag (i have -march=native on my systems) and that's true for both gcc-4.3.4 and gcc-4.4.3.
compiling the package with -march=nocona is ok.
Comment 2 Matti Bickel (RETIRED) gentoo-dev 2010-05-18 09:27:35 UTC
Thanks for reporting this bug. Can you please attach the output of emerge --info, so we now a bit more about the system this error occurs on?
Comment 3 frank 2010-05-18 09:38:11 UTC
Portage 2.1.7.17 (hardened/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.10.1-r1, 2.6.28-hardened-r9 x86_64)
=================================================================
System uname: Linux-2.6.28-hardened-r9-x86_64-Intel-R-_Xeon-R-_CPU_E5320_@_1.86GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 04 Mar 2010 01:45:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri gdbm gpm hardened iconv jpeg justify mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pic png pppd python readline reflection session spl sse sse2 ssl sysfs tcpd urandom xorg 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="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 proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Matti Bickel (RETIRED) gentoo-dev 2010-05-18 10:00:38 UTC
Thanks, forwarding this to maintainer.

One last question: i'm a bit confused over your CFLAGS - does -march=native equate to -march=core2 on your cpu? If that's the case, successful builds with -march=nocona are more than odd.
Comment 5 frank 2010-05-18 10:17:31 UTC
(In reply to comment #4)
> Thanks, forwarding this to maintainer.
> 
> One last question: i'm a bit confused over your CFLAGS - does -march=native equate to -march=core2 on your cpu?

correct.

> If that's the case, successful builds with -march=nocona are more than odd.

odd but true...
it's easy reproducible, so the maintainer can test himself.
Comment 6 Tobias Scherbaum (RETIRED) gentoo-dev 2010-07-09 19:43:55 UTC
Bumped to 1.2.2 which should fix this one.
Comment 7 frank 2010-07-10 09:22:10 UTC
just tried, 1.2.2 doesn't fix the segfault
Comment 8 Tobias Scherbaum (RETIRED) gentoo-dev 2010-07-30 16:02:13 UTC
No core2 here, i'm not able to reproduce this. Please report this one upstream.
Comment 9 frank 2012-01-25 20:43:50 UTC
version 1.2.4 compiled with gcc-4.5.3-r1 runs fine
find ebuild here: https://bugs.gentoo.org/show_bug.cgi?id=351604#c3
Comment 10 Pacho Ramos gentoo-dev 2012-03-03 15:14:00 UTC
+*fsvs-1.2.4 (03 Mar 2012)
+
+  03 Mar 2012; Pacho Ramos <pacho@gentoo.org> +files/fsvs-1.2.4-as-needed.patch,
+  +fsvs-1.2.4.ebuild, -files/fsvs-1.2.1-as-needed.patch, -fsvs-1.2.2.ebuild:
+  Version bump, drop old.
+