Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237709 - dev-db/libpq-8.0.15: configure crashs: ./conftest: double free or corruption (!prev): 0x0806a570 ***
Summary: dev-db/libpq-8.0.15: configure crashs: ./conftest: double free or corruption ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-15 11:28 UTC by Albert Zeyer
Modified: 2008-09-15 22:06 UTC (History)
0 users

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


Attachments
config.log (config.log,151.44 KB, text/plain)
2008-09-15 14:25 UTC, Albert Zeyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Zeyer 2008-09-15 11:28:14 UTC
macbook ~ # emerge  avahi
Calculating dependencies... done!
>>> starting parallel fetching pid 16978

>>> Emerging (1 of 23) dev-db/libpq-8.0.15 to /
>>> Downloading 'http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/postgresql-8.0.15.tar.bz2'
--2008-09-15 13:21:47--  http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/postgresql-8.0.15.tar.bz2
Resolving linux.rz.ruhr-uni-bochum.de... 134.147.32.114
Connecting to linux.rz.ruhr-uni-bochum.de|134.147.32.114|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11253897 (11M) [application/x-bzip2]
Saving to: `/usr/portage/distfiles/postgresql-8.0.15.tar.bz2'

100%[=========================================================>] 11,253,897   723K/s   in 17s     

2008-09-15 13:22:05 (639 KB/s) - `/usr/portage/distfiles/postgresql-8.0.15.tar.bz2' saved [11253897/11253897]

>>> Unpacking source...
>>> Unpacking postgresql-8.0.15.tar.bz2 to /var/tmp/portage/dev-db/libpq-8.0.15/work
 * Applying libpq-8.0.15-gentoo.patch ...                                                    [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-db/libpq-8.0.15/work/postgresql-8.0.15 ...
 * Using GNU config files from /usr/share/libtool
 *   Updating config/config.sub                                                              [ ok ]
 *   Updating config/config.guess                                                            [ ok ]
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... no
checking whether NLS is wanted... yes
checking for default port number... 5432
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking if i686-pc-linux-gnu-gcc supports -Wdeclaration-after-statement... yes
checking if i686-pc-linux-gnu-gcc supports -Wendif-labels... yes
checking if i686-pc-linux-gnu-gcc supports -fno-strict-aliasing... yes
configure: using CFLAGS=-O2 -march=nocona -pipe -ggdb -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
checking whether the C compiler still works... yes
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking allow thread-safe client libraries... yes
checking whether to build with Tcl... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build with Kerberos 4 support... no
checking whether to build with Kerberos 5 support... yes
checking whether to build with PAM support... yes
checking whether to build with Rendezvous support... no
checking whether to build with OpenSSL support... yes
configure: using CPPFLAGS=-D_GNU_SOURCE 
configure: using LDFLAGS=-Wl,-O1 
checking for gawk... gawk
checking for flex... /usr/bin/flex
checking whether ln -s works... yes
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking for lorder... no
...
checking for sig_atomic_t... yes
checking for POSIX signal interface... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for library containing gettext... none required
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for msgfmt... msgfmt
checking for msgmerge... msgmerge
checking for xgettext... xgettext
checking for onsgmls... no
checking for nsgmls... no
checking for openjade... no
checking for jade... no
checking for DocBook V4.2... no
checking for DocBook stylesheets... no
checking for collateindex.pl... no
checking for sgmlspl... no
checking thread safety of required library functions... *** glibc detected *** ./conftest: double free or corruption (!prev): 0x0806a570 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7be4a00]
/lib/libc.so.6(cfree+0x89)[0xb7be66f9]
/usr/lib/libsandbox.so[0xb7fb8116]
/usr/lib/libsandbox.so[0xb7fb81f7]
/usr/lib/libsandbox.so[0xb7fb8060]
/usr/lib/libsandbox.so[0xb7fbba7c]
/lib/ld-linux.so.2[0xb7fd129e]
/lib/libc.so.6(exit+0xec)[0xb7baad0c]
/lib/libc.so.6(__libc_start_main+0xe4)[0xb7b94fe4]
./conftest[0x8048951]
======= Memory map: ========
08048000-0804a000 r-xp 00000000 00:0f 3056876    /var/tmp/portage/dev-db/libpq-8.0.15/work/postgresql-8.0.15/conftest
0804a000-0804b000 r-xp 00001000 00:0f 3056876    /var/tmp/portage/dev-db/libpq-8.0.15/work/postgresql-8.0.15/conftest
0804b000-0804c000 rwxp 00002000 00:0f 3056876    /var/tmp/portage/dev-db/libpq-8.0.15/work/postgresql-8.0.15/conftest
0804c000-0810d000 rwxp 0804c000 00:00 0          [heap]
b6900000-b6921000 rwxp b6900000 00:00 0 
b6921000-b6a00000 ---p b6921000 00:00 0 
b6ae7000-b6af1000 r-xp 00000000 00:0f 1951006    /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
b6af1000-b6af2000 r-xp 00009000 00:0f 1951006    /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
b6af2000-b6af3000 rwxp 0000a000 00:0f 1951006    /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
b6af3000-b6b03000 rwxp b6af3000 00:00 0 
b6b03000-b6b04000 ---p b6b03000 00:00 0 
b6b04000-b7304000 rwxp b6b04000 00:00 0 
b7304000-b7305000 ---p b7304000 00:00 0 
b7305000-b7b07000 rwxp b7305000 00:00 0 
b7b07000-b7b41000 r-xp 00000000 00:0f 1953763    /lib/libncurses.so.5.6
b7b41000-b7b49000 r-xp 00039000 00:0f 1953763    /lib/libncurses.so.5.6
b7b49000-b7b4a000 rwxp 00041000 00:0f 1953763    /lib/libncurses.so.5.6
b7b4a000-b7b4c000 rwxp b7b4a000 00:00 0 
b7b4c000-b7b53000 r-xp 00000000 00:0f 2862660    /usr/lib/libkrb5support.so.0.1
b7b53000-b7b54000 r-xp 00006000 00:0f 2862660    /usr/lib/libkrb5support.so.0.1
b7b54000-b7b55000 rwxp 00007000 00:0f 2862660    /usr/lib/libkrb5support.so.0.1
b7b55000-b7b57000 r-xp 00000000 00:0f 1953789    /lib/libcom_err.so.2.1
b7b57000-b7b58000 r-xp 00001000 00:0f 1953789    /lib/libcom_err.so.2.1
b7b58000-b7b59000 rwxp 00002000 00:0f 1953789    /lib/libcom_err.so.2.1
b7b59000-b7b7d000 r-xp 00000000 00:0f 2862645    /usr/lib/libk5crypto.so.3.1
b7b7d000-b7b7e000 r-xp 00023000 00:0f 2862645    /usr/lib/libk5crypto.so.3.1
b7b7e000-b7b7f000 rwxp 00024000 00:0f 2862645    /usr/lib/libk5crypto.so.3.1
b7b7f000-b7ca9000 r-xp 00000000 00:0f 1953715    /lib/libc-2.6.1.so
b7ca9000-b7cab000 r-xp 0012a000 00:0f 1953715    /lib/libc-2.6.1.so
b7cab000-b7cac000 rwxp 0012c000 00:0f 1953715    /lib/libc-2.6.1.so
b7cac000-b7caf000 rwxp b7cac000 00:00 0 
b7caf000-b7cc2000 r-xp 00000000 00:0f 1953694    /lib/libpthread-2.6.1.so
b7cc2000-b7cc3000 r-xp 00013000 00:0f 1953694    /lib/libpthread-2.6.1.so
b7cc3000-b7cc4000 rwxp 00014000 00:0f 1953694    /lib/libpthread-2.6.1.so
b7cc4000-b7cc7000 rwxp b7cc4000 00:00 0 
b7cc7000-b7ceb000 r-xp 00000000 00:0f 1953696    /lib/libm-2.6.1.so
b7ceb000-b7cec000 r-xp 00023000 00:0f 1953696    /lib/libm-2.6.1.so
b7cec000-b7ced000 rwxp 00024000 00:0f 1953696    /lib/libm-2.6.1.so
b7ced000-b7cef000 r-xp 00000000 00:0f 1953697    /lib/libdl-2.6.1.so
b7cef000-b7cf0000 r-xp 00001000 00:0f 1953697    /lib/libdl-2.6.1.so
b7cf0000-b7cf1000 rwxp 00002000 00:0f 1953697    /lib/libdl-2.6.1.so
b7cf1000-b7d04000 r-xp 00000000 00:0f 1953709    /lib/libnsl-2.6.1.so
b7d04000-b7d05000 r-xp 00012000 00:0f 1953709    /lib/libnsl-2.6.1.so
b7d05000-b7d06000 rwxp 00013000 00:0f 1953709    /lib/libnsl-2.6.1.so
b7d06000-b7d08000 rwxp b7d06000 00:00 0 
b7d08000-b7d16000 r-xp 00000000 00:0f 1953700    /lib/libresolv-2.6.1.so
b7d16000-b7d17000 r-xp 0000e000 00:0f 1953700    /lib/libresolv-2.6.1.so
b7d17000-b7d18000 rwxp 0000f000 00:0f 1953700    /lib/libresolv-2.6.1.so
b7d18000-b7d1a000 rwxp b7d18000 00:00 0 
b7d1a000-b7d1f000 r-xp 00000000 00:0f 1953699    /lib/libcrypt-2.6.1.so
b7d1f000-b7d20000 r-xp 00004000 00:0f 1953699    /lib/libcrypt-2.6.1.so
b7d20000-b7d21000 rwxp 00005000 00:0f 1953699    /lib/libcrypt-2.6.1.so
b7d21000-b7d48000 rwxp b7d21000 00:00 0 
b7d48000-b7d73000 r-xp 00000000 00:0f 2327140    /lib/libreadline.so.5.2
b7d73000-b7d74000 r-xp 0002b000 00:0f 2327140    /lib/libreadline.so.5.2
b7d74000-b7d77000 rwxp 0002c000 00:0f 2327140    /lib/libreadline.so.5.2
b7d77000-b7d7a000 rwxp b7d77000 00:00 0 
b7d7a000-b7d8b000 r-xp 00000000 00:0f 1953790    /lib/libz.so.1.2.3
b7d8b000-b7d8c000 r-xp 00010000 00:0f 1953790    /lib/libz.so.1.2.3
b7d8c000-b7d8d000 rwxp 00011000 00:0f 1953790    /lib/libz.so.1.2.3
b7d8d000-b7e15000 r-xp 00000000 00:0f 2862657    /usr/lib/libkrb5.so.3.3
b7e15000-b7e17000 r-xp 00087000 00:0f 2862657    /usr/lib/libkrb5.so.3.3
b7e17000-b7e18000 rwxp 00089000 00:0f 2862657    /usr/lib/libkrb5.so.3.3
b7e18000-b7f49000 r-xp 00000000 00:0f 1938831    /usr/lib/libcrypto.so.0.9.8
b7f49000-b7f51000 r-xp 00131000 00:0f 1938831    /usr/lib/libcrypto.so.0.9.8
b7f51000-b7f5e000 rwxp 00139000 00:0f 1938831    /usr/lib/libcrypto.so.0.9.8
b7f5e000-b7f62000 rwxp b7f5e000 00:00 0 
b7f62000-b7fa1000 r-xp 00000000 00:0f 1938830    /usr/lib/libssl.so.0.9.8
b7fa1000-b7fa2000 r-xp 0003e000 00:0f 1938830    /usr/lib/libssl.so.0.9.8
b7fa2000-b7fa5000 rwxp 0003f000 00:0f 1938830    /usr/lib/libssl.so.0.9.8
b7fa5000-b7fae000 r-xp 00000000 00:0f 2771929    /lib/libpam.so.0.81.12
b7fae000-b7faf000 r-xp 00009000 00:0f 2771929    /lib/libpam.so.0.81.12
b7faf000-b7fb0000 rwxp 0000a000 00:0f 2771929    /lib/libpam.so.0.81.12
b7fb7000-b7fbd000 r-xp 00000000 00:0f 1939012    /usr/lib/libsandbox.so.0.0.0
b7fbd000-b7fbe000 r-xp 00005000 00:0f 1939012    /usr/lib/libsandbox.so.0.0.0
b7fbe000-b7fbf000 rwxp 00006000 00:0f 1939012    /usr/lib/libsandbox.so.0.0.0
b7fbf000-b7fc2000 rwxp b7fbf000 00:00 0 
b7fc2000-b7fc3000 r-xp b7fc2000 00:00 0          [vdso]
b7fc3000-b7fdd000 r-xp 00000000 00:0f 1953714    /lib/ld-2.6.1.so
b7fdd000-b7fde000 r-xp 00019000 00:0f 1953714    /lib/ld-2.6.1.so
b7fde000-b7fdf000 rwxp 0001a000 00:0f 1953714    /lib/ld-2.6.1.so
bfa40000-bfa58000 rw-p bfa40000 00:00 0          [stack]
no
configure: error:
*** Thread test program failed.  Your platform is not thread-safe.
*** Check the file 'config.log'for the exact reason.
***
*** You can use the configure option --enable-thread-safety-force
*** to force threads to be enabled.  However, you must then run
*** the program in src/tools/thread and add locking function calls
*** to your applications to guarantee thread safety.

 * 
 * ERROR: dev-db/libpq-8.0.15 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2432:  Called die
 * The specific snippet of code:
 *       ./configure --prefix=/usr --includedir=/usr/include/postgresql/libpq-${SLOT} --sysconfdir=/etc/postgresql --mandir=/usr/share/man --host=${CHOST} --with-docdir=/usr/share/doc/${PF} --libdir=/usr/$(get_libdir) --enable-depend $(use_with kerberos krb5) $(use_enable nls ) $(use_with pam) --without-perl $(use_enable pg-intdatetime integer-datetimes ) --without-python $(use_with readline) $(use_with ssl openssl) --without-tcl $(use_enable threads thread-safety ) $(use_with zlib) || die "configure failed";
 *  The die message:
 *   configure failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-db/libpq-8.0.15/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/libpq-8.0.15/temp/environment'.
 *
Comment 1 Albert Zeyer 2008-09-15 11:28:35 UTC
macbook ~ # emerge --info
Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.18-6-686 i686)
=================================================================
System uname: 2.6.18-6-686 i686 Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz
Timestamp of tree: Sun, 14 Sep 2008 17:00:02 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi alsa altenburgcards amarok amr amuled apm applet async asyncns atm automount avahi bash-completion berkdb bluetooth bonjour bookmarks branding bzip2 c++ cairo cdr cisco cli cracklib crypt cups cxx d daap dbus dedicated deskbar dga dhcp divx dri dv dvd dvdr dvdread dvi eap-tls eds emboss enblend encode esd evo exif extra-algorithms fam fasttrack ffmpeg firefox flac ftp galago gd gdbm german gif glib glitz gmedia gnome gnutella gnutls gphoto2 gpm gsf gstreamer gtk h323 hal haskell hddtemp hfs howl-compat iconv icu id3 id3tag ieee1394 imlib injection inkjar ipv6 irda isdnlog isight jabber java javascript jit joystick jpeg jpeg2k kde kerberos kig-scripting kqemu latex lcms ldap libnotify lirc lm_sensors lua lzo macbook mad madwifi maps mdnsresponder-compat midi mikmod mmap mmx mng mozdevelop mp2 mp3 mp4 mpeg mplayer mtp mudflap music musicbrainz nautilus ncurses net network networking njb nls nntp nptl nptlonly nsplugin ntfs ogg opengl openmp oss pam pascal pch pcre pdf perl pidgin plotutils pmu png pnm posix postgres postscript ppds pptp ps pth pulseaudio python qt3 qt3support qt4 quicktime rar rc5 rdesktop readline real realmedia reflection reiser4 reiserfs rtc samba screen sdl sdl-image sdl-sound sdlaudio server session sftp sharedmem sift slp smp sockets socks5 solver sourceview speex spell spl sse sse2 ssl ssse3 startup-notification subversion svg sysfs tetex theora threads threadsafe tiff timidity tk trayicon truetype unicode unzip usb v4l2 valgrind vcd video voice vorbis weak-algorithms wifi win32codecs wma wmp wxwindows x264 x86 xanim xattr xcomposite xext xface xine xml xmlreader xorg xrandr xscreensaver xulrunner xv xvid zeroconf zip zlib zsh-completion" ALSA_CARDS="hda-intel" 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 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" CAMERAS="sony_dscf1 sony_dscf55" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="inputlirc macmini" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Albert Zeyer 2008-09-15 11:41:13 UTC
It emerges fine though with disabled thread-USE-flag. But I wonder why it does not work with threads enabled.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-15 13:39:06 UTC
Please attach that config.log to this bug report.
Comment 4 Albert Zeyer 2008-09-15 14:25:30 UTC
Created attachment 165487 [details]
config.log
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-15 21:30:50 UTC
I bet it's failing to #include <SupportDefs.h> ...
Comment 6 Albert Zeyer 2008-09-15 21:57:42 UTC
About SupportDefs.h: It does *not* find the file. Therefore this can *not* be related to case sensitivity.

Also, a missing SupportDefs.h should not lead to crashing code.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-15 22:06:00 UTC
Again, the burden is on you to prove that this happens as well with a case sensitive filesystem. Only reopen bugs when you have established that.