Bug#563636: libc6: Weekday/workday starts with monday in et_EE

2010-01-04 Thread mihkel
Package: libc6
Version: 2.10.2-2
Severity: normal
Tags: patch

In Estonia weekday and workday starts with monday. 

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=et_EE.UTF-8, LC_CTYPE=et_EE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc6 depends on:
ii  libc-bin  2.10.2-2   GNU C Library: Binaries
ii  libgcc1   1:4.4.2-8  GCC support library

Versions of packages libc6 recommends:
ii  libc6-i6862.10.2-2   GNU C Library: Shared libraries [i

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0] 1.5.28 Debian configuration management sy
pn  glibc-doc none (no description available)
ii  locales   2.10.2-2   GNU C Library: National Language (

-- debconf information excluded
--- et_EE   2010-01-04 11:03:23.0 +0200
+++ et_EE~  2009-05-01 00:37:18.0 +0300
@@ -2197,8 +2197,8 @@
 U0020U0025U0048U003AU0025U004DU003AU0025U0053U0020/
 U0025U005AU0020U0025U0059
 week7;19971130;4
-first_weekday 2
-first_workday 2
+first_weekday 1
+first_workday 1
 END LC_TIME
 
 LC_MESSAGES


Bug#563637: improvements from Ubuntu to handle compiler hardening better

2010-01-04 Thread Kees Cook
Package: eglibc
Version: 2.10.2-3
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu lucid ubuntu-patch

Hello!

As more packages (perhaps all!) start using either hardening-wrapper
or the hardening-includes packages to gain the -D_FORTIFY_SOURCE=2 and
-fstack-protector compiler flags, it starts becoming important to handle
a number of special cases that upstream glibc either hasn't acted on or
has inappropriately rejected.

I would like to include the following patches that Ubuntu has carried for
several releases now.  (Note that submitted-leading-zero-stack-guard.diff
will need to be adjusted slightly if stack-guard-quick-randomization.diff
is not applied.)

no-sprintf-pre-truncate.diff
The sprintf function used when -D_FORTIFY_SOURCE=2 is used incorrectly
pre-truncates the destination buffer; this changes the long-standing
expectation of sprintf(foo,%sbaz,foo) to work.  See the patch for
further discussion.

local-fwrite-no-attr-unused.diff
Again, patch contains discussion, but basically, this disables a
useless and noisy warning that -D_FORTIFY_SOURCE=2 triggers.

stack-guard-quick-randomization.diff
For applications built with -fstack-protector, this adds the
poor man's randomization for when AT_RANDOM is not available.
Since AT_RANDOM is in 2.6.31 and later, it may not be useful to
carry any longer and may not be kfreebsd friendly.

submitted-leading-zero-stack-guard.diff
This is important as the recent glibc fails to keep the first byte
of the stack guard a NULL when constructing the stack guard for use
with -fstack-protector.  Without this, it is possible to potentially
read and write beyond the stack guard value using NULL-terminated
string overflows.

Thanks!

-Kees

-- 
Kees Cook@debian.org
Description: when a program is compiled with -D_FORTIFY_SOURCE=2, the
 vsprintf_chk function is called to handle sprintf/snprintf, but it
 needlessly pretruncates the destination which changes the results of
 sprintf(foo, %sbar, baz).
Bug: http://sourceware.org/bugzilla/show_bug.cgi?id=7075
Bug-Ubuntu: https://launchpad.net/bugs/305901
Author: Kees Cook kees.c...@canonical.com

Index: glibc-2.9/debug/vsprintf_chk.c
===
--- glibc-2.9.orig/debug/vsprintf_chk.c	2008-12-23 21:30:07.0 -0800
+++ glibc-2.9/debug/vsprintf_chk.c	2008-12-23 21:30:19.0 -0800
@@ -76,7 +76,6 @@
 
   _IO_no_init (f._sbf._f, _IO_USER_LOCK, -1, NULL, NULL);
   _IO_JUMPS (f._sbf) = _IO_str_chk_jumps;
-  s[0] = '\0';
   _IO_str_init_static_internal (f, s, slen - 1, s);
 
   /* For flags  0 (i.e. __USE_FORTIFY_LEVEL  1) request that %n
Description: when compiling with -D_FORTIFY_SOURCE=2, the compiler will
 generate warn-unused-results notifications for several functions.  It
 is not sensible to do this for fwrite() since it is frequently unchecked
 and may not fail until fclose() which is not marked with __wur, making
 the fwrite() check noisy and pointless.
Author: Matthias Klose d...@ubuntu.com

--- ./libio/stdio.h~	2008-05-24 20:14:36.0 +0200
+++ ./libio/stdio.h	2009-03-27 20:59:20.0 +0100
@@ -682,7 +682,7 @@
This function is a possible cancellation points and therefore not
marked with __THROW.  */
 extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
-		  size_t __n, FILE *__restrict __s) __wur;
+		  size_t __n, FILE *__restrict __s);
 __END_NAMESPACE_STD
 
 #ifdef __USE_GNU
@@ -706,7 +706,7 @@
 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
 			  size_t __n, FILE *__restrict __stream) __wur;
 extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
-			   size_t __n, FILE *__restrict __stream) __wur;
+			   size_t __n, FILE *__restrict __stream);
 #endif
 
 
Description: when AT_RANDOM is not available, attempt to build randomization
 of stack guard value from the ASLR of stack and heap locations, and finally
 the hp_timing_t value.  Upstream glibc does not want this patch, as they
 feel AT_RANDOM is sufficient.
Author: Jakub Jelinek
Origin: http://cvs.fedora.redhat.com/viewvc/devel/glibc/
Forwarded: not-needed

---
 elf/tst-stackguard1.c   |8 ++--
 nptl/tst-stackguard1.c  |8 ++--
 sysdeps/unix/sysv/linux/dl-osinfo.h |   29 +
 3 files changed, 41 insertions(+), 4 deletions(-)

Index: b/sysdeps/unix/sysv/linux/dl-osinfo.h
===
--- a/sysdeps/unix/sysv/linux/dl-osinfo.h
+++ b/sysdeps/unix/sysv/linux/dl-osinfo.h
@@ -17,10 +17,13 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA.  */
 
+#include errno.h
 #include kernel-features.h
 #include dl-sysdep.h
 #include fcntl.h
 #include stdint.h
+#include hp-timing.h
+#include endian.h
 
 #ifndef MIN
 # define 

Bug#563636: (libc6: Weekday/workday starts with monday in et_EE)

2010-01-04 Thread mihkel
Whoops. This is the right patch


--- et_EE~	2009-05-01 00:37:18.0 +0300
+++ et_EE	2010-01-04 11:03:23.0 +0200
@@ -2197,8 +2197,8 @@
 U0020U0025U0048U003AU0025U004DU003AU0025U0053U0020/
 U0025U005AU0020U0025U0059
 week7;19971130;4
-first_weekday 1
-first_workday 1
+first_weekday 2
+first_workday 2
 END LC_TIME
 
 LC_MESSAGES


Processed: severity of 563637 is wishlist

2010-01-04 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 # Automatically generated email from bts, devscripts version 2.10.35lenny7
 severity 563637 wishlist
Bug #563637 [eglibc] improvements from Ubuntu to handle compiler hardening 
better
Severity set to 'wishlist' from 'normal'


End of message, stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



r4047 - glibc-package/trunk/debian/sysdeps

2010-01-04 Thread Aurelien Jarno
Author: aurel32
Date: 2010-01-04 11:06:26 + (Mon, 04 Jan 2010)
New Revision: 4047

Modified:
   glibc-package/trunk/debian/sysdeps/sparc64.mk
Log:
Defaults to ultrasparc instead of ultrasparc3


Modified: glibc-package/trunk/debian/sysdeps/sparc64.mk
===
--- glibc-package/trunk/debian/sysdeps/sparc64.mk   2010-01-03 14:28:07 UTC 
(rev 4046)
+++ glibc-package/trunk/debian/sysdeps/sparc64.mk   2010-01-04 11:06:26 UTC 
(rev 4047)
@@ -1,5 +1,5 @@
 libc_rtlddir = /lib64
-libc_extra_cflags = -mcpu=ultrasparc3
+libc_extra_cflags = -mcpu=ultrasparc
 
 # /lib64 and /usr/lib64 are provided by glibc instead base-files: #259302.
 define libc6_extra_pkg_install


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Processed: Re: Bug#561203: FTBFS [hppa] - pthread_create() (QThread) + fork() = crash

2010-01-04 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 tags 561203 pending
Bug #561203 [libc6] FTBFS [hppa] - pthread_create() (or QThread) + fork() = 
crash
Added tag(s) pending.
 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#561203: FTBFS [hppa] - pthread_create() (QThread) + fork() = crash

2010-01-04 Thread Modestas Vainius
tags 561203 pending
thanks

Hello,

On antradienis 22 Gruodis 2009 21:54:16 Modestas Vainius wrote:
 when investigating this issue further, I determined that fork() following
 pthread_create() sometimes makes the application crash. In order to
  reproduce, build attached minifail.cpp with:

[.. snip ..]

 When repeatedly running it as `minifail` (pure_test() mode), I get:
 
 $ i=0; while true; do i=$(($i+1)); echo Run $i; ./minifail; done;

[.. snip ..]
 
 The hang which is original problem of this FTBFS, can be reproduced with
 `./minifail qt` (qt_test() mode that uses QThread + fork()). QThread
 internally uses pthreads but unfortunately I was not able to reproduce the
 hang with pure pthread_* calls.
 
 $ i=0; while true; do i=$(($i+1)); echo Run $i; ./minifail qt; done;

[.. snip ..]

 
 ii  libc6 2.10.2-2  GNU C
  Library: Shared libraries
 

It seems libc6 2.10.2-3 fixed the problem. I cannot reproduce the bug with 
both test cases above any more. As far as I can tell from the changelog, 
rebuild with gcc-4.4 helped. I will close this bug once a couple of KDE 
packages get built on hppa successfully.

-- 
Modestas Vainius modes...@vainius.eu


signature.asc
Description: This is a digitally signed message part.


r4048 - in glibc-package/trunk/debian: . control.in sysdeps

2010-01-04 Thread Aurelien Jarno
Author: aurel32
Date: 2010-01-04 12:01:44 + (Mon, 04 Jan 2010)
New Revision: 4048

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/control
   glibc-package/trunk/debian/control.in/opt
   glibc-package/trunk/debian/sysdeps/sparc.mk
   glibc-package/trunk/debian/sysdeps/sparc64.mk
Log:
  * Also build a libc6-sparcv9b package on sparc64. 



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2010-01-04 11:06:26 UTC (rev 
4047)
+++ glibc-package/trunk/debian/changelog2010-01-04 12:01:44 UTC (rev 
4048)
@@ -4,8 +4,11 @@
   * testsuite-checking/expected-results-i486-linux-gnu-libc: Add
 tst-atime.out failure.
 
- -- Aurelien Jarno aure...@debian.org  Sun, 03 Jan 2010 14:21:20 +0100
+  [ Aurelien Jarno ]
+  * Also build a libc6-sparcv9b package on sparc64. 
 
+ -- Aurelien Jarno aure...@debian.org  Mon, 04 Jan 2010 13:00:54 +0100
+
 eglibc (2.10.2-3) unstable; urgency=low
 
   [ Aurelien Jarno ]

Modified: glibc-package/trunk/debian/control
===
--- glibc-package/trunk/debian/control  2010-01-04 11:06:26 UTC (rev 4047)
+++ glibc-package/trunk/debian/control  2010-01-04 12:01:44 UTC (rev 4048)
@@ -611,7 +611,7 @@
  library, meant for AMD64 systems.
 
 Package: libc6-sparcv9b
-Architecture: sparc
+Architecture: sparc sparc64
 Section: libs
 Priority: extra
 Pre-Depends: libc6 (= ${binary:Version})

Modified: glibc-package/trunk/debian/control.in/opt
===
--- glibc-package/trunk/debian/control.in/opt   2010-01-04 11:06:26 UTC (rev 
4047)
+++ glibc-package/trunk/debian/control.in/opt   2010-01-04 12:01:44 UTC (rev 
4048)
@@ -1,5 +1,5 @@
 Package: libc6-sparcv9b
-Architecture: sparc
+Architecture: sparc sparc64
 Section: libs
 Priority: extra
 Pre-Depends: libc6 (= ${binary:Version})

Modified: glibc-package/trunk/debian/sysdeps/sparc.mk
===
--- glibc-package/trunk/debian/sysdeps/sparc.mk 2010-01-04 11:06:26 UTC (rev 
4047)
+++ glibc-package/trunk/debian/sysdeps/sparc.mk 2010-01-04 12:01:44 UTC (rev 
4048)
@@ -4,7 +4,7 @@
 sparcv9b_add-ons = nptl $(add-ons)
 sparcv9b_configure_target=sparcv9b-linux-gnu
 sparcv9b_configure_build=sparcv9b-linux-gnu
-sparcv9b_extra_cflags = -mtune=ultrasparc3
+sparcv9b_extra_cflags = -mcpu=ultrasparc3
 sparcv9b_extra_config_options = $(extra_config_options) --disable-profile
 sparcv9b_rtlddir = /lib
 sparcv9b_slibdir = /lib/ultra3

Modified: glibc-package/trunk/debian/sysdeps/sparc64.mk
===
--- glibc-package/trunk/debian/sysdeps/sparc64.mk   2010-01-04 11:06:26 UTC 
(rev 4047)
+++ glibc-package/trunk/debian/sysdeps/sparc64.mk   2010-01-04 12:01:44 UTC 
(rev 4048)
@@ -1,6 +1,17 @@
 libc_rtlddir = /lib64
 libc_extra_cflags = -mcpu=ultrasparc
 
+# build a sparcv9b optimized library
+EGLIBC_PASSES += sparcv9b
+DEB_ARCH_REGULAR_PACKAGES += libc6-sparcv9b
+sparcv9b_add-ons = nptl $(add-ons)
+sparcv9b_configure_target=sparcv9b-linux-gnu
+sparcv9b_configure_build=sparcv9b-linux-gnu
+sparcv9b_extra_cflags = -mcpu=ultrasparc3
+sparcv9b_extra_config_options = $(extra_config_options) --disable-profile
+sparcv9b_rtlddir = /lib
+sparcv9b_slibdir = /lib/ultra3
+
 # /lib64 and /usr/lib64 are provided by glibc instead base-files: #259302.
 define libc6_extra_pkg_install
 ln -sf lib debian/$(curpass)/lib64


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



r4049 - in glibc-package/trunk/debian: . patches/kfreebsd

2010-01-04 Thread Petr Salinger
Author: ps-guest
Date: 2010-01-04 13:55:28 + (Mon, 04 Jan 2010)
New Revision: 4049

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 2907 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2010-01-04 12:01:44 UTC (rev 
4048)
+++ glibc-package/trunk/debian/changelog2010-01-04 13:55:28 UTC (rev 
4049)
@@ -7,6 +7,9 @@
   [ Aurelien Jarno ]
   * Also build a libc6-sparcv9b package on sparc64. 
 
+  [ Petr Salinger]
+  * kfreebsd/local-sysdeps.diff: update to revision 2907 (from glibc-bsd).
+
  -- Aurelien Jarno aure...@debian.org  Mon, 04 Jan 2010 13:00:54 +0100
 
 eglibc (2.10.2-3) unstable; urgency=low

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2010-01-04 12:01:44 UTC (rev 4048)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2010-01-04 13:55:28 UTC (rev 4049)
@@ -1,6 +1,6 @@
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/Dist
-@@ -0,0 +1,30 @@
+@@ -0,0 +1,29 @@
 +bits/mcontext.h
 +bits/stat16.h
 +fpu.h
@@ -14,7 +14,6 @@
 +regdef.h
 +sa_len.c
 +stat16conv.c
-+statconv.c
 +statfsconv.c
 +sys/acl.h
 +sys/extattr.h
@@ -47,7 +46,7 @@
 +gnu
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/Makefile
-@@ -0,0 +1,136 @@
+@@ -0,0 +1,134 @@
 +# Use bash, not /bin/sh, for executing scripts, because the native
 +# FreeBSD /bin/sh does not interpret the  IFS=tab read ...  command
 +# in localedata/tst-fmon.sh correctly.
@@ -123,8 +122,6 @@
 +sysdep_routines += minherit sys_mmap sys_freebsd6_mmap sys_munmap
 +# For sys/mount.h.
 +sysdep_routines += fhopen sys_fhstat sys_fhstatfs fhstat fhstat64 fhstatfs 
fhstatfs64 getfh getfsstat getfsstat64 sys_getfsstat getmntinfo getmntinfo64 
mount nmount unmount
-+# For sys/ptrace.h.
-+sysdep_routines += sys_ptrace
 +# For sys/rfork.h.
 +sysdep_routines += rfork
 +# For sys/rtprio.h.
@@ -5853,7 +5850,7 @@
 +#endif/* bits/socket.h */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/stat.h
-@@ -0,0 +1,203 @@
+@@ -0,0 +1,207 @@
 +/* Copyright (C) 1992, 1996-1997, 2000, 2002 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -5899,8 +5896,10 @@
 +__ino64_t st_ino; /* File serial number.  */
 +#endif
 +
-+__uint32_t st_mode;   /* File mode.  */
-+__uint32_t st_nlink;  /* Link count.  */
++__mode_t st_mode; /* File mode.  */
++__mode_t __pad_mode;  /* __mode_t is 16 bit, fill to 32 bit to retain 
previous ABI */
++__nlink_t st_nlink;   /* Link count.  */
++__nlink_t __pad_nlink;/* __nlink_t is 16 bit, fill to 32 bit to 
retain previous ABI */
 +
 +__uid_t st_uid;   /* User ID of the file's owner.  */
 +__gid_t st_gid;   /* Group ID of the file's group.  */
@@ -5949,8 +5948,10 @@
 +__dev_t st_dev;   /* Device containing the file.  */
 +__ino64_t st_ino; /* File serial number.  */
 +
-+__uint32_t st_mode;   /* File mode.  */
-+__uint32_t st_nlink;  /* Link count.  */
++__mode_t st_mode; /* File mode.  */
++__mode_t __pad_mode;  /* __mode_t is 16 bit, fill to 32 bit to retain 
previous ABI */
++__nlink_t st_nlink;   /* Link count.  */
++__nlink_t __pad_nlink;/* __nlink_t is 16 bit, fill to 32 bit to 
retain previous ABI */
 +
 +__uid_t st_uid;   /* User ID of the file's owner.  */
 +__gid_t st_gid;   /* Group ID of the file's group.  */
@@ -18848,77 +18849,6 @@
 +}
 +libc_hidden_def (__profile_frequency)
 --- /dev/null
-+++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/ptrace.c
-@@ -0,0 +1,68 @@
-+/* Copyright (C) 1995-1998, 2000, 2002 Free Software Foundation, Inc.
-+   This file is part of the GNU C Library.
-+
-+   The GNU C Library is free software; you can redistribute it and/or
-+   modify it under the terms of the GNU Lesser General Public
-+   License as published by the Free Software Foundation; either
-+   version 2.1 of the License, or (at your option) any later version.
-+
-+   The GNU C Library is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-+   Lesser General Public License for more details.
-+
-+   You should have received a copy of the GNU Lesser General Public
-+   License along with the GNU C Library; if not, write to the Free
-+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-+   02111-1307 USA.  */
-+
-+#include errno.h
-+#include sys/types.h
-+#include sys/ptrace.h

Bug#561203: FTBFS [hppa] - pthread_create() (QThread) + fork() = crash

2010-01-04 Thread Helge Deller
 It seems libc6 2.10.2-3 fixed the problem. I cannot reproduce the bug with
 both test cases above any more. As far as I can tell from the changelog, 
 rebuild with gcc-4.4 helped. I will close this bug once a couple of KDE 
 packages get built on hppa successfully.

Hello Modestas,

libc6-2.10.2-3 made it much, *much* better (I'm not sure yet why!!).
But I can still reproduce the bug on my system with your testcases. It's just 
much harder to reproduce it, but it still happens.
So, it's not fixed yet, it just happens much less often.

I'm continuing to look into this issue, but at least we have some progress...

Helge
-- 
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#561203: FTBFS [hppa] - pthread_create() (QThread) + fork() = crash

2010-01-04 Thread Modestas Vainius
tags 561203 - pending
thanks

Hello,

On pirmadienis 04 Sausis 2010 17:18:40 Helge Deller wrote:
 libc6-2.10.2-3 made it much, *much* better (I'm not sure yet why!!).
 But I can still reproduce the bug on my system with your testcases. It's
  just much harder to reproduce it, but it still happens. So, it's not fixed
  yet, it just happens much less often.

Indeed, you are right. I was able to run `./minifail qt` 90k times without a 
hang, but it hang at the 3000+th run next time. Anyway, probability of hitting 
this bug has become much much lower now so maybe KDE will finally build on 
hppa now. Even if build fails with a timeout like previously, it should be 
enough to give back it once again.

Btw, backtrace of the hang is different now:

(gdb) t 2
[Switching to thread 2 (Thread 0x41d26480 (LWP 4088))]#0  0x046c in ?? ()
(gdb) bt 
#0  0x046c in ?? ()  
#1  0x40a06380 in ?? () from /lib/libc.so.6  
#2  0x40a06380 in ?? () from /lib/libc.so.6  
#3  0x40a060b4 in malloc () from /lib/libc.so.6  
#4  0x4093b2b4 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6 
#5  0x404e45e8 in QThreadPrivate::createEventDispatcher (data=0x16c40) at 
thread/qthread_unix.cpp:159
#6  0x404e4858 in QThreadPrivate::start (arg=0x168f8) at 
thread/qthread_unix.cpp:183 
#7  0x403080a0 in start_thread () from /lib/libpthread.so.0 
 
#8  0x40a66898 in clone () from /lib/libc.so.6  
 
#9  0x04010300 in ?? () 
 
#10 0x04010300 in ?? () 
 
Backtrace stopped: previous frame identical to this frame (corrupt stack?)  
 
(gdb) x/20i 0x40a060b4
0x40a060b4 malloc+1208:   b,l 0x40a05d60 malloc+356,r0
0x40a060b8 malloc+1212:   copy ret0,r5  
0x40a060bc malloc+1216:   mfctl tr3,ret0
0x40a060c0 malloc+1220:   ldi 0,r23 
0x40a060c4 malloc+1224:   ldw -478(ret0),r25
0x40a060c8 malloc+1228:   ldi 1,r24 
0x40a060cc malloc+1232:   depwi -1,31,1,r25 
0x40a060d0 malloc+1236:   copy r3,r26   
0x40a060d4 malloc+1240:   copy r19,r4   
0x40a060d8 malloc+1244:   be,l 100(sr2,r0),sr0,r31  
0x40a060dc malloc+1248:   ldi d2,r20
0x40a060e0 malloc+1252:   copy r4,r19   
0x40a060e4 malloc+1256:   b,l 0x40a05d28 malloc+300,r0
0x40a060e8 malloc+1260:   ldo -8(r5),r20
0x40a060ec malloc+1264:   mfctl tr3,ret0
0x40a060f0 malloc+1268:   ldi 0,r23 
0x40a060f4 malloc+1272:   ldw -478(ret0),r25
0x40a060f8 malloc+1276:   ldi 1,r24 
0x40a060fc malloc+1280:   depwi -1,31,1,r25 
0x40a06100 malloc+1284:   copy r7,r26   
(gdb) x/20i 0x40a06380
0x40a06380: b,l 0x40a0622c,r0
0x40a06384: copy r4,r19  
0x40a06388: mfctl tr3,ret0   
0x40a0638c: copy r5,r26  
0x40a06390: ldw -478(ret0),r25
0x40a06394: ldi 0,r23 
0x40a06398: depwi -1,31,1,r25 
0x40a0639c: ldi 1,r24 
0x40a063a0: copy r19,r4   
0x40a063a4: be,l 100(sr2,r0),sr0,r31
0x40a063a8: ldi d2,r20  
0x40a063ac: copy r4,r19 
0x40a063b0: b,l,n 0x40a06290,r0 
0x40a063b4: stw rp,-14(sp)  
0x40a063b8: addil L%1000,r19,r1 
0x40a063bc: ldo 40(sp),sp   
0x40a063c0: ldw 35c(r1),ret0
0x40a063c4: stw r4,-34(sp)
0x40a063c8: copy r19,r4
0x40a063cc: stw r19,-20(sp)


-- 
Modestas Vainius modes...@vainius.eu


signature.asc
Description: This is a digitally signed message part.


Processed: Re: Bug#561203: FTBFS [hppa] - pthread_create() (QThread) + fork() = crash

2010-01-04 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 tags 561203 - pending
Bug #561203 [libc6] FTBFS [hppa] - pthread_create() (or QThread) + fork() = 
crash
Removed tag(s) pending.
 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#561203: FTBFS [hppa] - pthread_create() (QThread) + fork() = crash

2010-01-04 Thread dann frazier
On Mon, Jan 04, 2010 at 05:47:54PM +0200, Modestas Vainius wrote:
 On pirmadienis 04 Sausis 2010 17:18:40 Helge Deller wrote:
  libc6-2.10.2-3 made it much, *much* better (I'm not sure yet why!!).
  But I can still reproduce the bug on my system with your testcases. It's
   just much harder to reproduce it, but it still happens. So, it's not fixed
   yet, it just happens much less often.
 
 Indeed, you are right. I was able to run `./minifail qt` 90k times without a 
 hang, but it hang at the 3000+th run next time. Anyway, probability of 
 hitting 
 this bug has become much much lower now so maybe KDE will finally build on 
 hppa now. Even if build fails with a timeout like previously, it should be 
 enough to give back it once again.

given back.



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#563724: libc6 use syscall utimensat unimplemented by etch kernel

2010-01-04 Thread Bill Allombert
Package: libc6
Version: 2.10.2-3

Hello Debian libc maintainers,

I run a sid chroot on top of etch, using the etch kernel linux 2.6.18-6-686,
and dpkg started to fail with
tar: ./preinst: Cannot utime: Bad file descriptor

touch also fails:

%mkdir /tmp/bar
%touch /tmp/bar
touch: setting times of `/tmp/bar': Bad file descriptor
strace report:
utimensat(AT_FDCWD, /tmp/bar, NULL, 0) = -1 ENOSYS (Function not implemented)

It seems that the issue is that the etch kernel does not implement
utimensat. 

A similar report can be found at:
http://lists.debian.org/debian-user/2010/01/msg00205.html

Cheers,
Bill.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-6-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libc-bin  2.10.2-3   Embedded GNU C Library: Binaries
ii  libgcc1   1:4.4.2-5  GCC support library

Versions of packages libc6 recommends:
pn  libc6-i686none (no description available)

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0] 1.5.28 Debian configuration management sy
pn  glibc-doc none (no description available)
ii  locales   2.10.2-2   GNU C Library: National Language (



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#563726: libc6-2.10.2-3 may break utime on folders

2010-01-04 Thread Guillaume Ayoub
Package: libc6
Version: 2.10.2-3
Severity: important


Hello,

Just after upgrading libc6 from 2.10.2-2 to 2.10.2-3, utime calls fail for
folders (not for regular files). This breaks main programs such as tar, dpkg,
touch and postfix.

Here are 2 examples:

$ ls -l
drwxr-xr-x 2 user users 4096 jan.  4 17:22 test_directory
-rw-r--r-- 1 user users0 jan.  4 17:22 test_file
$touch test_file
$touch test_directory
touch: setting times of `test_directory': Bad file descriptor

$aptitude upgrade
(...)
tar: ./postrm: Cannot utime: Bad file descriptor
tar: ./postinst: Cannot utime: Bad file descriptor
tar: ./md5sums: Cannot utime: Bad file descriptor
tar: ./shlibs: Cannot utime: Bad file descriptor
tar: ./control: Cannot utime: Bad file descriptor
tar: ./symbols: Cannot utime: Bad file descriptor
tar: .: Cannot utime: Bad file descriptor
tar: Exiting with failure status due to previous errors
dpkg-deb: subprocess tar returned error exit status 2

Downgrading /lib/libc-2.10.2.so to version 2.10.2-2 fixes the bug.

I have an ext3 partition with a lot of free space. Note that I have an old
kernel (2.6.21.1).


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21.1dedibox-r7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libc-bin  2.10.2-3   Embedded GNU C Library: Binaries
ii  libgcc1   1:4.4.2-8  GCC support library

Versions of packages libc6 recommends:
pn  libc6-i686none (no description available)

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0] 1.5.28 Debian configuration management sy
pn  glibc-doc none (no description available)
ii  locales   2.10.2-3   Embedded GNU C Library: National L

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#563726: More information

2010-01-04 Thread Guillaume Ayoub
More information can be found at:
http://www.mail-archive.com/debian-u...@lists.debian.org/msg562576.html

As Sven says, the bug is caused by debian/patches/any/cvs-futimens.diff,
reporting the 'bad file descriptor' error. Without this patch, futimens()
failed silently, as utimensat() has been added in kernel 2.6.22.

Useful links:
- eglibc 2.10 futimens.c original code:
  
http://www.eglibc.org/cgi-bin/viewcvs.cgi/branches/eglibc-2_10/libc/sysdeps/unix/sysv/linux/futimens.c?view=markup
- upstream patch in eglibc trunk backported in Debian:
  
http://www.eglibc.org/cgi-bin/viewcvs.cgi/trunk/libc/sysdeps/unix/sysv/linux/futimens.c?r1=texttr1=2244r2=texttr2=9570diff_format=h



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#563726: More information

2010-01-04 Thread Aurelien Jarno
On Mon, Jan 04, 2010 at 11:49:09PM +0100, Guillaume Ayoub wrote:
 More information can be found at:
 http://www.mail-archive.com/debian-u...@lists.debian.org/msg562576.html
 
 As Sven says, the bug is caused by debian/patches/any/cvs-futimens.diff,
 reporting the 'bad file descriptor' error. Without this patch, futimens()
 failed silently, as utimensat() has been added in kernel 2.6.22.

The patch is actually correct, it makes futimens() conform to POSIX [1],
and reject bad descriptors. The fact that the kernel has utimensat() or 
not should not change anything here. I'll investigate that more in
details tomorrow.

[1] http://www.opengroup.org/onlinepubs/9699919799/functions/utimensat.html

-- 
Aurelien Jarno  GPG: 1024D/F1BCDB73
aurel...@aurel32.net http://www.aurel32.net



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Processed: forcibly merging 563724 563726

2010-01-04 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 forcemerge 563724 563726
Bug#563724: libc6 use syscall utimensat unimplemented by etch kernel
Bug#563726: libc6-2.10.2-3 may break utime on folders
Forcibly Merged 563724 563726.


End of message, stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#563754: libc6-2.10.2-3 may break utime on folders

2010-01-04 Thread Guillaume Ayoub
Package: libc6
Version: 2.10.2-3
Severity: important


Hello,

Just after upgrading libc6 from 2.10.2-2 to 2.10.2-3, utime calls fail for
folders (not for regular files). This breaks main programs such as tar, dpkg,
touch and postfix.

Here are 2 examples:

$ ls -l
drwxr-xr-x 2 user users 4096 jan.  4 17:22 test_directory
-rw-r--r-- 1 user users0 jan.  4 17:22 test_file
$touch test_file
$touch test_directory
touch: setting times of `test_directory': Bad file descriptor

$aptitude upgrade
(...)
tar: ./postrm: Cannot utime: Bad file descriptor
tar: ./postinst: Cannot utime: Bad file descriptor
tar: ./md5sums: Cannot utime: Bad file descriptor
tar: ./shlibs: Cannot utime: Bad file descriptor
tar: ./control: Cannot utime: Bad file descriptor
tar: ./symbols: Cannot utime: Bad file descriptor
tar: .: Cannot utime: Bad file descriptor
tar: Exiting with failure status due to previous errors
dpkg-deb: subprocess tar returned error exit status 2

Downgrading /lib/libc-2.10.2.so to version 2.10.2-2 fixes the bug.

I have an ext3 partition with a lot of free space. Note that I have an old
kernel (2.6.21.1).


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21.1dedibox-r7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libc-bin  2.10.2-3   Embedded GNU C Library: Binaries
ii  libgcc1   1:4.4.2-8  GCC support library

Versions of packages libc6 recommends:
pn  libc6-i686none (no description available)

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0] 1.5.28 Debian configuration management sy
pn  glibc-doc none (no description available)
ii  locales   2.10.2-3   Embedded GNU C Library: National L

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#563726: More information

2010-01-04 Thread Guillaume Ayoub
More information can be found at:
http://www.mail-archive.com/debian-u...@lists.debian.org/msg562576.html

As Sven says, the bug is caused by debian/patches/any/cvs-futimens.diff,
reporting the 'bad file descriptor' error. Without this patch, futimens()
failed silently, as utimensat() has been added in kernel 2.6.22.

Useful links:
- eglibc 2.10 futimens.c original code:
  
http://www.eglibc.org/cgi-bin/viewcvs.cgi/branches/eglibc-2_10/libc/sysdeps/unix/sysv/linux/futimens.c?view=markup
- upstream patch in eglibc trunk backported in Debian:
  
http://www.eglibc.org/cgi-bin/viewcvs.cgi/trunk/libc/sysdeps/unix/sysv/linux/futimens.c?r1=texttr1=2244r2=texttr2=9570diff_format=h



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Processed: forcibly merging 563724 563754

2010-01-04 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 forcemerge 563724 563754
Bug#563724: libc6 use syscall utimensat unimplemented by etch kernel
Bug#563754: libc6-2.10.2-3 may break utime on folders
Bug#563726: libc6-2.10.2-3 may break utime on folders
Forcibly Merged 563724 563726 563754.


End of message, stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org