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

Bug#585937: libc6: Upgrade 2.10.2-9 to 2.11.1-3 on lenny/squeeze leads to broken compiling/linking



Package: libc6
Version: 2.11.1-3
Severity: normal

*** Please type your report below this line ***

I run a lenny with a number of packages from squeeze (time ago
I tryed more fresh Gimp, Inkscape... they upgrade their dependencies).
Until recently everything was o'key, but when after libc6 upgrade to 2.11
I tryed to recompile a kernel, "make oldconfig" immediately segfaulted
somewhere. I investigated the problem was with
/usr/src/linux-source-2.6.26/scripts/basic/fixdep C script, it segfaults
on strchr() call - I replaced the call with handmade cycle for+if,
and script began to segfault somewhere in some more far point...

So I wrote a test prog:

$ cat testclib.c

  #include <stdio.h>
  #include <string.h>

  int main(int argc, char* argv[])  {
    const char* s = "Test string: that's it!" ;
    const char* b = strchr(s, ':') ;
    printf("Found: %p\n", b) ;

    return  0 ;
  }

Here are its compilation and execution after upgrade:

$ gcc -Wall -o testclib6 testclib.c
$ ./testclib6
Segmentation fault
$

I downgraded packages to previous state:

$ dpkg -i /var/cache/apt/archives/libc-bin_2.10.2-9_amd64.deb
$ dpkg -i /var/cache/apt/archives/libc6_2.10.2-9_amd64.deb
$ dpkg -i /var/cache/apt/archives/libc-dev-bin_2.10.2-9_amd64.deb
$ dpkg -i /var/cache/apt/archives/libc6-i386_2.10.2-9_amd64.deb
$ dpkg -i /var/cache/apt/archives/libc6-dev_2.10.2-9_amd64.deb
$ dpkg -i /var/cache/apt/archives/libc6-dev-i386_2.10.2-9_amd64.deb
$ dpkg -i /var/cache/apt/archives/locales_2.10.2-9_all.deb

And try again. 2.11-linked binary:

$ ./testclib6
./testclib6: Symbol `strchr' has different size in shared object,
consider re-linking
Segmentation fault

And recompiled/relinked:

$ gcc -Wall -o testclib7 testclib.c
$ ./testclib7
Found: 0x400657

That's all.

APT preferences as last months is simply:

$ cat /etc/apt/preferences

Package: *
Pin: release a=stable
Pin-Priority: 900

Package: *
Pin: release a=testing
Pin-Priority: 800




-- System Information:
Debian Release: squeeze/sid
  APT prefers stable
  APT policy: (900, 'stable'), (800, 'testing'), (500, 'proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-core2_ll (PREEMPT)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libc-bin                     2.10.2-9    Embedded GNU C Library: Binaries
ii  libgcc1                      1:4.3.2-1.1 GCC support library

libc6 recommends no packages.

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0]       1.5.24       Debian configuration management sy
ii  glibc-doc                   2.7-18lenny4 GNU C Library: Documentation
ii  locales                     2.10.2-9     Embedded GNU C Library: National L

-- debconf information:
  glibc/upgrade: true
  glibc/disable-screensaver:
  glibc/restart-failed:
* glibc/restart-services: gdm openbsd-inetd exim4 cups cron


Reply to: