Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202128 - dev-utils/valgrind 3.2.3-r1 segfault on ppc64 (Solved by 3.3.0)
Summary: dev-utils/valgrind 3.2.3-r1 segfault on ppc64 (Solved by 3.3.0)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Maurice van der Pot (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-13 13:54 UTC by Alexis Ballier
Modified: 2007-12-14 18:11 UTC (History)
1 user (show)

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


Attachments
full log (dev-libs:libtasn1-1.2:20071213-135128.log,880.28 KB, text/plain)
2007-12-13 14:07 UTC, Alexis Ballier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2007-12-13 13:54:15 UTC
I tried on amd64, and it doesn't fail, so cc'in ppc64

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==31520==    at 0x40063A0: (within /lib64/ld-2.7.so)


Note: see also the FAQ.txt in the source distribution.
It contains workarounds to several common problems.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what Linux distro you are using.  Thanks.

FAIL: crlf
===================================
1 of 4 tests failed
Please report to bug-gnutls@gnu.org
===================================
make[2]: *** [check-TESTS] Erreur 1
make[2]: quittant le répertoire « /var/tmp/portage/dev-libs/libtasn1-1.2/work/libtasn1-1.2/tests »
make[1]: *** [check-am] Erreur 2
make[1]: quittant le répertoire « /var/tmp/portage/dev-libs/libtasn1-1.2/work/libtasn1-1.2/tests »
make: *** [check-recursive] Erreur 1



 emerge --info
Portage 2.1.4_rc9 (default-linux/ppc/ppc64/2007.0/64bit-userland, gcc-4.2.2, glibc-2.7-r1, 2.6.24-rc2-g8c086340 ppc64)
=================================================================
System uname: 2.6.24-rc2-g8c086340 ppc64 PPC970, altivec supported
Timestamp of tree: Thu, 13 Dec 2007 13:00:08 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.5.1-r4
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
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
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="ppc64 ~ppc64"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildsyspkg collision-protect distlocks fixpackages metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="fr_FR.UTF-8"
LINGUAS="en fr"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /share/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa altivec audiofile bash-completion berkdb bitmap-fonts bogofilter bzip2 cairo cdda cddb cdio cdr cjk cli cracklib crypt cups curl dbus djvu dri dts dv dvd dvdr dvdread dvi encode exif ffmpeg fftw firefox flac fontconfig fortran gdbm gif glitz gnome gnutls gpm graphviz gs gstreamer gtk hal hfs icecast iconv ieee1394 imagemagick imap imlib ipv6 isdnlog ithreads jack jbig jpeg jpeg2k kpathsea ladspa lame latex lcms libcaca libnotify libsamplerate live lyrics lzo mad matroska md5sum midi mikmod mjpeg mng mod modplug mp2 mp3 mpeg mudflap musepack ncurses nls nodrm nptl nptlonly nsplugin ogg openexr opengl openmp pam pango pcre pdf perl png ppc64 ppds pppd python qt3 qt3support qt4 quicktime raw readline reflection regex sdl session shout skins smp sndfile speex spell spl sql sqlite sqlite3 ssl svg t1lib taglib tcpd test tetex tga theora threads tiff timidity truetype truetype-fonts tta type1-fonts unicode vim-syntax vorbis wavpack wma wmf wxwindows x264 xcb xml xorg xulrunner xv xvid xvmc zlib" 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 authn_alias authn_anon 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr" USERLAND="GNU" VIDEO_CARDS="nv fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I'm gonna attach a bigger log
Comment 1 Alexis Ballier gentoo-dev 2007-12-13 14:07:50 UTC
Created attachment 138395 [details]
full log
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2007-12-13 15:27:03 UTC
Are we sure it is not valgrind issue?

--31520-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--31520-- si_code=1;  Faulting address: 0x3F000000268;  sp: 0x4023CB500

valgrind: the 'impossible' happened:
   Killed by fatal signal
Comment 3 Maurice van der Pot (RETIRED) gentoo-dev 2007-12-13 19:32:03 UTC
Could try going into /var/tmp/portage/dev-libs/libtasn1-1.2/work/libtasn1-1.2/tests after the merge has failed and then run the following command:

valgrind ./crlf

That will hopefully give some more clues as to why it's segfaulting.

Also it would help to remerge valgrind to get rid of the huge load of messages about glibc-2.7.
Comment 4 Maurice van der Pot (RETIRED) gentoo-dev 2007-12-13 19:35:38 UTC
Oops, I meant to say:

valgrind --trace-children=yes ./crlf
Comment 5 Alexis Ballier gentoo-dev 2007-12-13 23:25:47 UTC
with  valgrind 3.2.3-r1:

valgrind --trace-children=yes ./crlf
==1863== Memcheck, a memory error detector.
==1863== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==1863== Using LibVEX rev 1732, a library for dynamic binary translation.
==1863== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==1863== Using valgrind-3.2.3, a dynamic binary instrumentation framework.
==1863== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==1863== For more details, rerun with: -v
==1863== 
--1863-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--1863-- si_code=1;  Faulting address: 0x5F30000046B;  sp: 0x4023CB520

valgrind: the 'impossible' happened:
   Killed by fatal signal
==1863==    at 0x381474E4: (within /usr/lib64/valgrind/ppc64-linux/memcheck)
==1863==    by 0x381476D0: (within /usr/lib64/valgrind/ppc64-linux/memcheck)
==1863==    by 0x380C3580: (within /usr/lib64/valgrind/ppc64-linux/memcheck)
==1863==    by 0x380C6134: (within /usr/lib64/valgrind/ppc64-linux/memcheck)
==1863==    by 0x380C3E5C: (within /usr/lib64/valgrind/ppc64-linux/memcheck)
==1863==    by 0x380CB384: (within /usr/lib64/valgrind/ppc64-linux/memcheck)
==1863==    by 0x38096B00: (within /usr/lib64/valgrind/ppc64-linux/memcheck)
==1863==    by 0x38034C68: (within /usr/lib64/valgrind/ppc64-linux/memcheck)
==1863==    by 0x38046B50: (within /usr/lib64/valgrind/ppc64-linux/memcheck)
==1863==    by 0x38073FF4: (within /usr/lib64/valgrind/ppc64-linux/memcheck)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==1863==    at 0x40063A0: (within /lib64/ld-2.7.so)


Note: see also the FAQ.txt in the source distribution.
It contains workarounds to several common problems.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what Linux distro you are using.  Thanks.


upgrading to valgrind 3.3.0 makes the tests pass... close as worksforme/invalid ?
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2007-12-14 08:31:49 UTC
Thanks!
Comment 7 Maurice van der Pot (RETIRED) gentoo-dev 2007-12-14 18:11:43 UTC
okidoki!