Bug#452664: Can't upgrade libc6 in cowbuilder

2007-12-02 Thread Pierre Habouzit
reassign 452664 cowdancer
thanks

On Sat, Dec 01, 2007 at 03:27:35PM +, Bas Zoetekouw wrote:
 Hi Pierre!
 
 You wrote:
 
   When I tried to upgrade my cowbuilder environment (i386 env on amd64),
   I got this error:
  
you do that using linux32 ? (I don't think it matters much but who
  knows...). Could you also try to reproduce that in a simple
  deboostrapped chroot to see if the cowbuilder LD_PRELOAD isn;'t the
  culprit ?
 
 This bug is starting to look more and more like a Heisenbug.  Upgrading libc6
 only fails about half of the time, but other packages (tzdata for example) 
 also
 fail sometimes with similar out of memory errors:
 
 etting up tzdata (2007i-2) ...
 cowdancer: unexpected WIFEXITED status in waitpid
 /var/lib/dpkg/info/tzdata.postinst: line 29: /etc/timezone: Cannot allocate 
 memory
 dpkg: error processing tzdata (--configure):
  subprocess post-installation script returned error exit status 1
 Errors were encountered while processing:
  tzdata
 E: Sub-process /usr/bin/dpkg returned an error code (1)
 
 However, the bug goes away if I unset the libcowdancer.so LD_PRELOAD, I guess
 that's where the problem is in.
 
 Some more debugging shows that the errors occors in the call to debconf:
 
 + PERL_DL_NONLAZY=1
 ++ export PERL_DL_NONLAZY
 ++ '[' '' ']'
 ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/libc6.postinst 
 configure 2.7-3
 cowdancer: unexpected WIFEXITED status in waitpid
 /var/lib/dpkg/info/libc6.postinst: line 142: /etc/ld.so.conf: Cannot allocate 
 memory
 
 
 So, I guess this really is a bug in cowdancer, although I have no idea
 what the problem could be. 

  hmm probably.

-- 
·O·  Pierre Habouzit
··O[EMAIL PROTECTED]
OOOhttp://www.madism.org


pgpcAIiClbU0h.pgp
Description: PGP signature


Processed: Re: Bug#452664: Can't upgrade libc6 in cowbuilder

2007-12-02 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

 reassign 452664 cowdancer
Bug#452664: Can't upgrade libc6 in cowbuilder
Bug reassigned from package `libc6' to `cowdancer'.

 thanks
Stopping processing here.

Please contact me if you need assistance.

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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Processed: Re: Bug#452664: Can't upgrade libc6 in cowbuilder

2007-12-02 Thread Junichi Uekawa
Hi,

cowdancer: unexpected WIFEXITED status in waitpid
/var/lib/dpkg/info/tzdata.postinst: line 29: /etc/timezone: Cannot allocate 
memory

So, the real bug is in cowdancer detecting a weird environment.  The
quick workaround would be recreating cowdancer chroot.

cowdancer returns 'ENOMEM' for system calls it has failed to handle
(could be anything, but better than nothing; ENOMEM is chosen because
it's something that's handled by applications most often. this is
documented in cow-shell.1 manpage).


I don't really have a clue on why this is happening, but the error message will 
come when
1. fork/exec of '/bin/cp' is successful
2. waitpid(pid, status) of that is successful. (cp should have finished...?)
3. but the WIFEXITED(status) isn't true.


regards,
junichi
-- 
[EMAIL PROTECTED],netfort.gr.jp}   Debian Project


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#452664: Can't upgrade libc6 in cowbuilder

2007-12-01 Thread Bas Zoetekouw
Hi Pierre!

You wrote:

  When I tried to upgrade my cowbuilder environment (i386 env on amd64),
  I got this error:
 
   you do that using linux32 ? (I don't think it matters much but who
 knows...). Could you also try to reproduce that in a simple
 deboostrapped chroot to see if the cowbuilder LD_PRELOAD isn;'t the
 culprit ?

This bug is starting to look more and more like a Heisenbug.  Upgrading libc6
only fails about half of the time, but other packages (tzdata for example) also
fail sometimes with similar out of memory errors:

etting up tzdata (2007i-2) ...
cowdancer: unexpected WIFEXITED status in waitpid
/var/lib/dpkg/info/tzdata.postinst: line 29: /etc/timezone: Cannot allocate 
memory
dpkg: error processing tzdata (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 tzdata
E: Sub-process /usr/bin/dpkg returned an error code (1)

However, the bug goes away if I unset the libcowdancer.so LD_PRELOAD, I guess
that's where the problem is in.

Some more debugging shows that the errors occors in the call to debconf:

+ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/libc6.postinst configure 
2.7-3
cowdancer: unexpected WIFEXITED status in waitpid
/var/lib/dpkg/info/libc6.postinst: line 142: /etc/ld.so.conf: Cannot allocate 
memory


So, I guess this really is a bug in cowdancer, although I have no idea
what the problem could be. 

Best regards,
Bas.

-- 
Kind regards,
++
| Bas Zoetekouw  | GPG key: 0644fab7 |
|| Fingerprint: c1f5 f24c d514 3fec 8bf6 |
| [EMAIL PROTECTED] |  a2b1 2bae e41f 0644 fab7 |
++ 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#452664: Can't upgrade libc6 in cowbuilder

2007-11-29 Thread Aurelien Jarno
Pierre Habouzit a écrit :
 On Sat, Nov 24, 2007 at 12:35:23PM +, Bas Zoetekouw wrote:
 Package: libc6
 Version: 2.6.1-6
 Severity: important

 When I tried to upgrade my cowbuilder environment (i386 env on amd64),
 I got this error:
 
   you do that using linux32 ? (I don't think it matters much but who
 knows...). Could you also try to reproduce that in a simple
 deboostrapped chroot to see if the cowbuilder LD_PRELOAD isn;'t the
 culprit ?
 

Any news about that?

-- 
  .''`.  Aurelien Jarno | GPG: 1024D/F1BCDB73
 : :' :  Debian developer   | Electrical Engineer
 `. `'   [EMAIL PROTECTED] | [EMAIL PROTECTED]
   `-people.debian.org/~aurel32 | www.aurel32.net



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#452664: Can't upgrade libc6 in cowbuilder

2007-11-24 Thread Bas Zoetekouw
Package: libc6
Version: 2.6.1-6
Severity: important

When I tried to upgrade my cowbuilder environment (i386 env on amd64),
I got this error:

Preparing to replace libc6 2.6.1-5 (using .../libc6_2.6.1-6_i386.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.6.1-6) ...
cowdancer: unexpected WIFEXITED status in waitpid
/var/lib/dpkg/info/libc6.postinst: line 142: /etc/ld.so.conf: Cannot allocate 
memory
dpkg: error processing libc6 (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 libc6


Note that I have plenty of memory free (about 1.5GB), so I guess
something weird must be going on:

[EMAIL PROTECTED] free -m
 total   used   free sharedbuffers cached
Mem:  2010   1995 15  0681841
-/+ buffers/cache:472   1538
Swap: 4613  6   4606



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

Kernel: Linux 2.6.23.8 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libgcc1   1:4.2.2-3  GCC support library

libc6 recommends no packages.

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#452664: Can't upgrade libc6 in cowbuilder

2007-11-24 Thread Pierre Habouzit
On Sat, Nov 24, 2007 at 12:35:23PM +, Bas Zoetekouw wrote:
 Package: libc6
 Version: 2.6.1-6
 Severity: important
 
 When I tried to upgrade my cowbuilder environment (i386 env on amd64),
 I got this error:

  you do that using linux32 ? (I don't think it matters much but who
knows...). Could you also try to reproduce that in a simple
deboostrapped chroot to see if the cowbuilder LD_PRELOAD isn;'t the
culprit ?

-- 
·O·  Pierre Habouzit
··O[EMAIL PROTECTED]
OOOhttp://www.madism.org


pgp8dPo8t9Kpc.pgp
Description: PGP signature