pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43906: pkg-config miscompiles on Linux



>Number:         43906
>Category:       pkg
>Synopsis:       pkg-config miscompiles on Linux
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 26 02:30:14 +0000 2010
>Originator:     Stefan
>Release:        Slackware 13.0
>Organization:
>Environment:
>Description:
pkg-config in current miscompiles on slackware 13.0. A huge amount of pkgsrc 
programs call pkg-config during configuration phase.

Here is the configure output from x11/libXau - similiar output exists for a 
huge number of other packages during configuration phase:

checking for XAU... *** glibc detected *** /usr/current/bin/pkg-config: double 
free or corruption (!prev): 0x0805e6c8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7ef0105]
/lib/libc.so.6(cfree+0x96)[0xb7ef20e6]
/lib/libc.so.6(fclose+0x144)[0xb7edfac4]
/usr/current/bin/pkg-config[0x804dc41]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb7e976a5]
/usr/current/bin/pkg-config[0x8049271]
======= Memory map: ========
08048000-0805c000 r-xp 00000000 03:03 1311132    /usr/current/bin/pkg-config
0805c000-0805d000 rw-p 00013000 03:03 1311132    /usr/current/bin/pkg-config
0805d000-0807e000 rw-p 0805d000 00:00 0          [heap]
b7d00000-b7d21000 rw-p b7d00000 00:00 0 
b7d21000-b7e00000 ---p b7d21000 00:00 0 
b7e66000-b7e72000 r-xp 00000000 03:03 1298614    /usr/lib/libgcc_s.so.1
b7e72000-b7e73000 rw-p 0000b000 03:03 1298614    /usr/lib/libgcc_s.so.1
b7e80000-b7e81000 rw-p b7e80000 00:00 0 
b7e81000-b7fdb000 r-xp 00000000 03:03 1398181    /lib/libc-2.9.so
b7fdb000-b7fdd000 r--p 0015a000 03:03 1398181    /lib/libc-2.9.so
b7fdd000-b7fde000 rw-p 0015c000 03:03 1398181    /lib/libc-2.9.so
b7fde000-b7fe1000 rw-p b7fde000 00:00 0 
b7fed000-b7fef000 rw-p b7fed000 00:00 0 
b7fef000-b800d000 r-xp 00000000 03:03 1398223    /lib/ld-2.9.so
b800d000-b800e000 r--p 0001e000 03:03 1398223    /lib/ld-2.9.so
b800e000-b800f000 rw-p 0001f000 03:03 1398223    /lib/ld-2.9.so
bfe63000-bfe79000 rw-p bffea000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
*** glibc detected *** /usr/current/bin/pkg-config: double free or corruption 
(!prev): 0x0805e6c8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7e28105]
/lib/libc.so.6(cfree+0x96)[0xb7e2a0e6]
/lib/libc.so.6(fclose+0x144)[0xb7e17ac4]
/usr/current/bin/pkg-config[0x804dc41]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb7dcf6a5]
/usr/current/bin/pkg-config[0x8049271]
======= Memory map: ========
08048000-0805c000 r-xp 00000000 03:03 1311132    /usr/current/bin/pkg-config
0805c000-0805d000 rw-p 00013000 03:03 1311132    /usr/current/bin/pkg-config
0805d000-0807e000 rw-p 0805d000 00:00 0          [heap]
b7c00000-b7c21000 rw-p b7c00000 00:00 0 
b7c21000-b7d00000 ---p b7c21000 00:00 0 
b7d9e000-b7daa000 r-xp 00000000 03:03 1298614    /usr/lib/libgcc_s.so.1
b7daa000-b7dab000 rw-p 0000b000 03:03 1298614    /usr/lib/libgcc_s.so.1
b7db8000-b7db9000 rw-p b7db8000 00:00 0 
b7db9000-b7f13000 r-xp 00000000 03:03 1398181    /lib/libc-2.9.so
b7f13000-b7f15000 r--p 0015a000 03:03 1398181    /lib/libc-2.9.so
b7f15000-b7f16000 rw-p 0015c000 03:03 1398181    /lib/libc-2.9.so
b7f16000-b7f19000 rw-p b7f16000 00:00 0 
b7f25000-b7f27000 rw-p b7f25000 00:00 0 
b7f27000-b7f45000 r-xp 00000000 03:03 1398223    /lib/ld-2.9.so
b7f45000-b7f46000 r--p 0001e000 03:03 1398223    /lib/ld-2.9.so
b7f46000-b7f47000 rw-p 0001f000 03:03 1398223    /lib/ld-2.9.so
bfa99000-bfaaf000 rw-p bffea000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
no
*** glibc detected *** /usr/current/bin/pkg-config: double free or corruption 
(!prev): 0x0805e6e0 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7e4f105]
/lib/libc.so.6(cfree+0x96)[0xb7e510e6]
/lib/libc.so.6(fclose+0x144)[0xb7e3eac4]
/usr/current/bin/pkg-config[0x804dc41]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb7df66a5]
/usr/current/bin/pkg-config[0x8049271]
======= Memory map: ========
08048000-0805c000 r-xp 00000000 03:03 1311132    /usr/current/bin/pkg-config
0805c000-0805d000 rw-p 00013000 03:03 1311132    /usr/current/bin/pkg-config
0805d000-0807e000 rw-p 0805d000 00:00 0          [heap]
b7c00000-b7c21000 rw-p b7c00000 00:00 0 
b7c21000-b7d00000 ---p b7c21000 00:00 0 
b7dc5000-b7dd1000 r-xp 00000000 03:03 1298614    /usr/lib/libgcc_s.so.1
b7dd1000-b7dd2000 rw-p 0000b000 03:03 1298614    /usr/lib/libgcc_s.so.1
b7ddf000-b7de0000 rw-p b7ddf000 00:00 0 
b7de0000-b7f3a000 r-xp 00000000 03:03 1398181    /lib/libc-2.9.so
b7f3a000-b7f3c000 r--p 0015a000 03:03 1398181    /lib/libc-2.9.so
b7f3c000-b7f3d000 rw-p 0015c000 03:03 1398181    /lib/libc-2.9.so
b7f3d000-b7f40000 rw-p b7f3d000 00:00 0 
b7f4c000-b7f4e000 rw-p b7f4c000 00:00 0 
b7f4e000-b7f6c000 r-xp 00000000 03:03 1398223    /lib/ld-2.9.so
b7f6c000-b7f6d000 r--p 0001e000 03:03 1398223    /lib/ld-2.9.so
b7f6d000-b7f6e000 rw-p 0001f000 03:03 1398223    /lib/ld-2.9.so
bfe7e000-bfe94000 rw-p bffea000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
configure: error: Package requirements (xproto) were not met:

/tmp/current/x11/libXau/work/.tools/bin/pkg-config: line 5: 18232 Aborted       
          
PKG_CONFIG_LIBDIR=/tmp/current/x11/libXau/work/.buildlink/lib/pkgconfig:/tmp/current/x11/libXau/work/.buildlink/share/pkgconfig
 PKG_CONFIG_PATH= /usr/current/bin/pkg-config "$@"

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XAU_CFLAGS
and XAU_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
*** Error code 1

Stop.
bmake: stopped in /usr/current/pkgsrc/x11/libXau
*** Error code 1

Stop.
bmake: stopped in /usr/current/pkgsrc/x11/libXau
Sat Sep 25 20:53:27 PDT 2010

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index