Bug#755580: src:glibc: drop libgcc dependency from stage2 builds
Package: src:glibc Version: 2.19-7 Severity: wishlist Tags: patch User: helm...@debian.org Usertags: rebootstrap Even if one manages to build glibc with profiles stage1 or stage2, the results are not installable due to unmet dependencies. The following issues occur: * stage1 libc6-dev Depends on libc6 which is not built in stage1 * stage2 libc6 Depends on libgcc1 which is not built by gcc stage2 This bug shall only cover the second (easier) part and I shall report a different bug for the first issue at a later time. When we briefly discussed this issue, there was consensus that substvars would be the tool to address it. So the attached patch turns those libgcc dependencies into ${libgcc:Depends} and suppresses them for stage2. It's a bit unfortunate that dependency information keeps scattering over control and rules.d/debhelper.mk, but I didn't find a better way. Helmut diff -Nru glibc-2.19/debian/changelog glibc-2.19/debian/changelog --- glibc-2.19/debian/changelog 2014-07-13 01:31:22.0 +0200 +++ glibc-2.19/debian/changelog 2014-07-20 22:07:19.0 +0200 @@ -1,3 +1,10 @@ +glibc (2.19-7.1) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Don't emit dependencies on libgcc when building stage2. (Closes: #-1) + + -- Helmut Grohne hel...@subdivi.de Sun, 20 Jul 2014 22:06:57 +0200 + glibc (2.19-7) unstable; urgency=high * debian/patches/localedata/unsubmitted-tst-setlocale3-ENV.diff: Apply diff -Nru glibc-2.19/debian/control.in/libc glibc-2.19/debian/control.in/libc --- glibc-2.19/debian/control.in/libc 2014-06-27 04:28:51.0 +0200 +++ glibc-2.19/debian/control.in/libc 2014-07-20 22:09:20.0 +0200 @@ -3,7 +3,7 @@ Section: libs Priority: required Multi-Arch: same -Depends: ${shlibs:Depends}, libgcc1 [!hppa !m68k], libgcc2 [m68k], libgcc4 [hppa] +Depends: ${shlibs:Depends}, ${libgcc:Depends} Recommends: libc6-i686 [i386], libc0.1-i686 [kfreebsd-i386], libc0.3-i686 [hurd-i386] Suggests: glibc-doc, debconf | debconf-2.0, locales [!hurd-i386] Provides: ${locale-compat:Depends}, libc6-sparcv9b [sparc sparc64] diff -Nru glibc-2.19/debian/rules.d/debhelper.mk glibc-2.19/debian/rules.d/debhelper.mk --- glibc-2.19/debian/rules.d/debhelper.mk 2014-07-10 21:49:24.0 +0200 +++ glibc-2.19/debian/rules.d/debhelper.mk 2014-07-20 22:08:45.0 +0200 @@ -180,6 +180,9 @@ # Generate common substvars files. echo locale:Depends=$(shell perl debian/debver2localesdep.pl $(LOCALES_DEP_VER)) tmp.substvars echo locale-compat:Depends=$(shell perl debian/debver2localesdep.pl $(LOCALES_COMPAT_VER)) tmp.substvars +ifeq ($(filter stage2,$(DEB_BUILD_PROFILES)),) + echo 'libgcc:Depends=libgcc1 [!hppa !m68k], libgcc2 [m68k], libgcc4 [hppa]' tmp.substvars +endif for pkg in $(DEB_ARCH_REGULAR_PACKAGES) $(DEB_INDEP_REGULAR_PACKAGES) $(DEB_UDEB_PACKAGES); do \ cp tmp.substvars debian/$$pkg.substvars; \
Processed: retitle 755053 to nscd crashes frequently
Processing commands for cont...@bugs.debian.org: retitle 755053 nscd crashes frequently Bug #755053 [nscd] Exits (status 0) regularly Changed Bug title to 'nscd crashes frequently' from 'Exits (status 0) regularly' thanks Stopping processing here. Please contact me if you need assistance. -- 755053: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755053 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/handler.s.c.140603099813432.transcr...@bugs.debian.org
Bug#755053: nscd backtrace
retitle -1 'libnss-myhostname: causes nscd to crash' reassign -1 libnss-myhhostname found -1 0.3-5~deb7u1 severity -1 important thanks This is triggered by the cache miss that occurs when I try to resolve the machine's hostname (e.g., getent ahosts oxylus). $ gdb --args ./nscd -d ... Tue 22 Jul 2014 12:27:48 BST - 21522: Haven't found oxylus in hosts cache! Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x70c11700 (LWP 21529)] addhstaiX (db=optimized out, fd=optimized out, req=optimized out, key=optimized out, uid=optimized out, he=optimized out, dh=0x0) at aicache.c:165 165 if (at2-family == AF_INET) (gdb) where #0 addhstaiX (db=optimized out, fd=optimized out, req=optimized out, key=optimized out, uid=optimized out, he=optimized out, dh=0x0) at aicache.c:165 #1 0x00411d34 in addhstai (db=0x7779ce80, fd=0, req=0x10, key=0x2, uid=88) at aicache.c:561 #2 0x004083a4 in handle_request (key=optimized out, req=optimized out, fd=optimized out, uid=optimized out, pid=optimized out) at connections.c:1229 #3 nscd_run_worker (p=optimized out) at connections.c:1709 #4 0x779bfb50 in start_thread (arg=optimized out) at pthread_create.c:304 #5 0x774f220d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #6 0x in ?? () (gdb) l 160 { 161 ++naddrs; 162 /* We do not handle anything other than IPv4 and IPv6 163 addresses. The getaddrinfo implementation does not 164 either so it is not worth trying to do more. */ 165 if (at2-family == AF_INET) 166 addrslen += INADDRSZ; 167 else if (at2-family == AF_INET6) 168 addrslen += IN6ADDRSZ; 169 } (gdb) p at2 $1 = (const struct gaih_addrtuple *) 0x54552e42475f0043 (gdb) l 155 150 151 if (rc6 != 0 herrno == NETDB_INTERNAL) 152 goto out; 153 154 if (status[1] != NSS_STATUS_SUCCESS) 155 goto next_nip; 156 157 /* We found the data. Count the addresses and the size. */ 158 for (const struct gaih_addrtuple *at2 = at = atmem; at2 != NULL; 159at2 = at2-next) (gdb) p atmem $2 = (struct gaih_addrtuple *) 0x70c106f0 (gdb) p atmem-next $3 = (struct gaih_addrtuple *) 0x70c10670 (gdb) p atmem-next-next $4 = (struct gaih_addrtuple *) 0x54552e42475f0043 So the gaih_addrtuple linked list is corrupted somehow. I removed 'myhostname' from the 'hosts' definition in /etc/nsswitch.conf, and having restarted nscd and invalidating the hosts cache, I could no longer reproduce the crash. Re-enabling 'myhostname', invalidating the cache and restarting nscd causes the crash to re-occur. -- Sam Morris https://robots.org.uk/ 3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078 -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140722122848.ga15...@traxus.robots.org.uk
Processed: retitle 755053 to libnss-myhostname: causes nscd to crash, reassign 755053 to libnss-myhostname ...
Processing commands for cont...@bugs.debian.org: retitle 755053 libnss-myhostname: causes nscd to crash Bug #755053 [nscd] nscd crashes frequently Changed Bug title to 'libnss-myhostname: causes nscd to crash' from 'nscd crashes frequently' reassign 755053 libnss-myhostname Bug #755053 [nscd] libnss-myhostname: causes nscd to crash Bug reassigned from package 'nscd' to 'libnss-myhostname'. No longer marked as found in versions eglibc/2.13-38+deb7u3. Ignoring request to alter fixed versions of bug #755053 to the same values previously set found 755053 0.3-5~deb7u1 Bug #755053 [libnss-myhostname] libnss-myhostname: causes nscd to crash Marked as found in versions libnss-myhostname/0.3-5~deb7u1. severity 755053 important Bug #755053 [libnss-myhostname] libnss-myhostname: causes nscd to crash Severity set to 'important' from 'normal' thanks Stopping processing here. Please contact me if you need assistance. -- 755053: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755053 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/handler.s.c.140603257328197.transcr...@bugs.debian.org
Re: Bug#755685: No debug symbols for nscd
Control: reassign -1 libc6-dbg 2.13-38+deb7u3 On Ma, 22 iul 14, 13:08:43, Sam Morris wrote: Source: libc6-dbg Version: 2.13-38+deb7u3 Severity: normal They'd be helpful for debugging crashes. -- System Information: Debian Release: 7.6 APT prefers stable-updates APT policy: (550, 'stable-updates'), (550, 'stable'), (530, 'testing'), (520, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.14-0.bpo.1-686-pae (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- http://wiki.debian.org/FAQsFromDebianUser Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic http://nuvreauspam.ro/gpg-transition.txt signature.asc Description: Digital signature
Processed: Re: Bug#755685: No debug symbols for nscd
Processing control commands: reassign -1 libc6-dbg 2.13-38+deb7u3 Bug #755685 [src:libc6-dbg] No debug symbols for nscd Warning: Unknown package 'src:libc6-dbg' Bug reassigned from package 'src:libc6-dbg' to 'libc6-dbg'. No longer marked as found in versions libc6-dbg/2.13-38+deb7u3. Ignoring request to alter fixed versions of bug #755685 to the same values previously set Bug #755685 [libc6-dbg] No debug symbols for nscd Marked as found in versions eglibc/2.13-38+deb7u3. -- 755685: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755685 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/handler.s.b755685.1406059410957.transcr...@bugs.debian.org
Processed: severity of 755685 is wishlist
Processing commands for cont...@bugs.debian.org: severity 755685 wishlist Bug #755685 [libc6-dbg] No debug symbols for nscd Severity set to 'wishlist' from 'normal' thanks Stopping processing here. Please contact me if you need assistance. -- 755685: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755685 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/handler.s.c.14060604147620.transcr...@bugs.debian.org
Bug#755734: libc-bin - ldconfig fails if dirent-d_type is not correct
Package: libc-bin Version: 2.19-7 Severity: normal ldconfig uses the d_type field in the readdir(2) result as optimization. If the field wrongly identifies symlinks as regular files, ldconfig assumes that lstat(2) returns the same than stat(2) and aborts if it is not the case. It does - call lstat, use this information to search the cache, - call stat in readelf.c#process_file and override the old information, - try to insert the new entry; this entry already exists and it calls abort. The 9p filesystem wrongly reports symlinks as regular files, so it triggers this condition. Bastian -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libc-bin depends on: ii libc62.19-7 ii libcap2 1:2.22-1.2 libc-bin recommends no packages. libc-bin suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140722205613.25423.62560.report...@rockhammer.waldi.eu.org