Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196802 - dev-util/valgrind - invalid read w/ glibc 2.6.1
Summary: dev-util/valgrind - invalid read w/ glibc 2.6.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Maurice van der Pot (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-23 15:59 UTC by Sylvain BERTRAND
Modified: 2008-01-14 17:39 UTC (History)
1 user (show)

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


Attachments
valgrind output (output.log,4.30 KB, text/plain)
2007-10-23 16:01 UTC, Sylvain BERTRAND
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain BERTRAND 2007-10-23 15:59:33 UTC
Compile this program, the use of mysql is just to put forward the issue:
----
#define _GNU_SOURCE
#include <stdio.h>
#include <unistd.h>

#include <mysql/mysql.h>

int
main (void)
{
  MYSQL *db=mysql_init(NULL);
  dprintf(STDOUT_FILENO,"Hello world!\n");
  mysql_close(db);
  return 0;
}
----
Execute with valgrind 3.2.3 or 3.2.3-r1. The output is attached. Something is fishy.

----
Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.21.6 x86_64)
=================================================================
System uname: 2.6.21.6 x86_64 Intel(R) Pentium(R) D CPU 3.40GHz
Timestamp of tree: Tue, 23 Oct 2007 07:20:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
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.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -fomit-frame-pointer -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -fomit-frame-pointer -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirror.ovh.net/gentoo-distfiles/ http://ftp.club-internet.fr/pub/mirrors/gentoo http://mirror.ovh.net/gentoo-distfiles/"
LANG="fr_FR.UTF-8"
LINGUAS="fr"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac alsa amd64 apache2 audiofile bash-completion bitmap-fonts bzip2 cli cracklib crypt cups curl dri fftw flac gdbm gnutls gtk iconv idn isdnlog jbig jpeg jpeg2k libsamplerate midi mikmod mmx mp3 mudflap ncurses nls no-old-linux nptl nptlonly ogg openmp pam pcre perl png pppd python readline reflection session spell spl sse sse2 ssl svg threads tiff truetype truetype-fonts type1-fonts unicode vorbis xinerama xorg xv xvid zlib" ALSA_CARDS="hda-intel" 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="nv none"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Sylvain BERTRAND 2007-10-23 16:01:07 UTC
Created attachment 134181 [details]
valgrind output
Comment 2 Sylvain BERTRAND 2007-10-24 10:11:55 UTC
Is anybody able to reproduce the valgrind invalid read in glibc 2.6.1?
Comment 3 Maurice van der Pot (RETIRED) gentoo-dev 2007-10-29 19:39:16 UTC
amd64, can anyone of you reproduce this?
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-04 19:50:47 UTC
Have you tried 3.2.3-r1, which has a patch from upstream for a amd64/glibc-2.6.1 issue?  It might fix this, too.  It's bug #189396
Comment 5 Sylvain BERTRAND 2007-11-04 20:29:11 UTC
I tried r1 version as I said in the description.
Do you reproduce the bug on your system?
Comment 6 Sylvain BERTRAND 2007-11-21 09:24:48 UTC
pushed upstream:
http://bugs.kde.org/show_bug.cgi?id=152643
Comment 7 Sylvain BERTRAND 2008-01-14 17:39:40 UTC
Gone in dev-util/valgrind-3.3.0