Bug#586241: libc6: Upgrade 2.10.2-9 to 2.11.1-3 breaks the system debian/squeeze, (segfaults on any command)

2010-06-23 Thread Thibault Manlay

Hello,

Here it is: http://dl.free.fr/rr9lPsFSJ

It should be faster than if I hosted it myself.

Some sha1sum:
3157273da1dcd2b7681e918599219105a7ede22d  pluton.libc6.sda
8fc949f3596376f0885043b8f820664308857f79  pluton.libc6.sda.lzma

It contains the whole crashed filesystem (you can check the 
/var/log/apt/term.log).



--
Thibault Manlay
s...@thibland.net




--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c22cd10.3070...@thibland.net



Bug#586971: libc6-dev: REG_NOSUB prevents storing location of entire regex match

2010-06-23 Thread Frank Heckenbach
Package: libc6-dev
Version: 2.11.1-3
Severity: minor
Tags: upstream

/usr/include/regex.h says:

/* If this bit is set, then report only success or fail in regexec.
   If not set, then returns differ between not matching and errors.  */
#define REG_NOSUB (REG_NEWLINE << 1)

It doesn't say anything about not storing the location of the match
of the entire regex in __pmatch[0]. However, when REG_NOSUB is set,
the location is not stored as the test program below shows.

This may be the expected behaviour. In this case, it should be made
clear in the comment above, since the name of the constant suggests
it only affects sub-matches.

#include 
#include 

int main ()
{
  regex_t r;
  regmatch_t m[1];
  int i;
  for (i = 0; i < 2; i++)
{
  m[0].rm_so = m[0].rm_eo = -1;
  printf ("%s REG_NOSUB: ", i ? "with" : "without");
  if (regcomp (&r, "b", i * REG_NOSUB))
printf ("error in regcomp\n");
  else if (regexec (&r, "abc", 1, m, 0))
printf ("no match\n");
  else
printf ("%i %i\n", m[0].rm_so, m[0].rm_eo);
}
}

Output:

without REG_NOSUB: 1 2
with REG_NOSUB: -1 -1

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

Versions of packages libc6-dev depends on:
ii  libc-dev-bin  2.11.1-3   Embedded GNU C Library: Developmen
ii  libc6 2.11.1-3   Embedded GNU C Library: Shared lib
ii  linux-libc-dev2.6.32-15  Linux support headers for userspac



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1277347737.14028.476...@goedel.fjf.gnu.de



Bug#586241: libc6: Upgrade 2.10.2-9 to 2.11.1-3 breaks the system debian/squeeze, (segfaults on any command)

2010-06-23 Thread Aurelien Jarno
On Tue, Jun 22, 2010 at 10:15:59PM +0200, Thibault Manlay wrote:
> On 21/06/10 01:01, Aurelien Jarno wrote:
>>
>> If you are able again to produce an image with libc6 crashing (I mean
>> already crashing, not that will crash after an upgrade), that's probably
>> something we can already study.
>
> Successfully reproduced on a AMD Duron, the same way.
> But I did not understand what you meant with the image.
>

As I haven't been able to reproduce the problem, that would be nice if
you can create an an image for a virtual system (QEMU/KVM, Virtualbox,
etc.) using your method. This is not a problem if this image is not
bootable anymore due to the bug.

-- 
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
Archive: http://lists.debian.org/20100623215653.gh16...@hall.aurel32.net



Bug#586241: libc6: Upgrade 2.10.2-9 to 2.11.1-3 breaks the system debian/squeeze, (segfaults on any command)

2010-06-23 Thread Alexander Gattin
Hello,

On Tue, Jun 22, 2010 at 10:15:59PM +0200, Thibault Manlay wrote:
> On 21/06/10 01:01, Aurelien Jarno wrote:
>> If you are able again to produce an image with libc6 crashing (I mean
>> already crashing, not that will crash after an upgrade), that's probably
>> something we can already study.
>
> Successfully reproduced on a AMD Duron, the same way.
> But I did not understand what you meant with the image.

Let me guess - can you create an unbootable image
with broken /sbin/init:

> ("kernel panic, attempted to kill init").

?

This image's / can be mounted (smth. like mount -o
loop,offset=$((512*63)) -t ext3 ...) and all libs
and ld.so cache checked against libc6 2.11.1-3 or
whatever.

If I have spare time I'll try to create such qemu
image myself.

-- 
With best regards,
xrgtn (+380501102966/+380636177128/xr...@jabber.kiev.ua)



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100623200419.gd3...@xrgtn-q40



Bug#586241: libc6: Upgrade 2.10.2-9 to 2.11.1-3 breaks the system

2010-06-23 Thread Alexander Gattin
On Wed, Jun 23, 2010 at 10:18:28PM +0300, Alexander Gattin wrote:
> had the same situation several days ago, libc
> became corrupt (no process could be started,
> including /sbin/init).

here's excerpt from dpkg.log:

2010-06-20 02:14:41 upgrade libc6 2.10.2-9 2.11.1-3
2010-06-20 02:14:41 status half-configured libc6 2.10.2-9
2010-06-20 02:14:41 status unpacked libc6 2.10.2-9
2010-06-20 02:14:41 status half-installed libc6 2.10.2-9
2010-06-20 02:14:49 status half-installed libc6 2.10.2-9
2010-06-20 02:14:50 status unpacked libc6 2.11.1-3
2010-06-20 02:14:50 status unpacked libc6 2.11.1-3
2010-06-20 02:14:51 startup packages configure
2010-06-20 02:14:51 configure libc6 2.11.1-3 2.11.1-3
2010-06-20 02:14:51 status unpacked libc6 2.11.1-3
2010-06-20 02:14:51 status unpacked libc6 2.11.1-3
2010-06-20 02:14:51 status half-configured libc6 2.11.1-3
2010-06-20 19:19:59 startup archives unpack

Last line tells that I was able to continue
apt-get upgrade the next day.

-- 
With best regards,
xrgtn (+380501102966/+380636177128/xr...@jabber.kiev.ua)



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100623193140.gc3...@xrgtn-q40



Bug#586241: libc6: Upgrade 2.10.2-9 to 2.11.1-3 breaks the system

2010-06-23 Thread Alexander Gattin
Hello,

had the same situation several days ago, libc
became corrupt (no process could be started,
including /sbin/init).

I had no busybox-static on this system, only
sash, but it wasn't very helpful -- no
tar/gzip/lvm2 tools available from sash on this
broken system anyway.

I booted off a USB flash and repaired the system
by extracting libc6 and libc6-i686 deb files with
dpkg-deb into /tmp, then copying libraries to
/lib/ and /lib/i686/cmov/.

-- 
With best regards,
xrgtn (+380501102966/+380636177128/xr...@jabber.kiev.ua)



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100623191743.gb3...@xrgtn-q40



Bug#586883: libc6: printf doesn't return a negative value in case of output error

2010-06-23 Thread Vincent Lefevre
forwarded 586883 http://sourceware.org/bugzilla/show_bug.cgi?id=11741
thanks

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100623084800.gy1...@prunille.vinc17.org



Processed: Re: libc6: printf doesn't return a negative value in case of output error

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

> forwarded 586883 http://sourceware.org/bugzilla/show_bug.cgi?id=11741
Bug #586883 [libc6] libc6: printf doesn't return a negative value in case of 
output error
Set Bug forwarded-to-address to 
'http://sourceware.org/bugzilla/show_bug.cgi?id=11741'.
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
586883: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586883
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: 
http://lists.debian.org/handler.s.c.127728289525885.transcr...@bugs.debian.org



Bug#586883: libc6: printf doesn't return a negative value in case of output error

2010-06-23 Thread Vincent Lefevre
Package: libc6
Version: 2.11.2-1
Severity: normal

For fprintf (thus printf), the C standard says:

  The fprintf function returns the number of characters transmitted,
  or a negative value if an output or encoding error occurred.

But in glibc, printf doesn't return a negative value in case of output
error (at least not in some cases). For instance:

#include 

int main (void)
{
  int r;
  r = printf ("%1s\n", "foo");
  fprintf (stderr, "%d\n", r);
  return 0;
}

Then I get:

$ ./out > /dev/null
10001
$ ./out >&-
8196

The first case is correct (anything can be written to /dev/null),
but in the second case (where the fd is closed), there's obviously
an output error (the return value is not 10001), but in such a case,
r should have been negative.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

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

libc6 recommends no packages.

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0] 1.5.32 Debian configuration management sy
ii  glibc-doc 2.11.2-1   Embedded GNU C Library: Documentat
ii  locales   2.11.2-1   Embedded GNU C Library: National L

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



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100623080736.ga...@ypig.lip.ens-lyon.fr