Bug#487789: apt-cacher locks when using checksum and requiring it concurrently.
El Martes, 8 de Julio de 2008, Mark Hindley escribió: On Tue, Jul 08, 2008 at 12:35:27AM +0200, Raúl Sánchez Siles wrote: Hello Mark: Thanks for this piece of information. I've tried that new prerelease, but unfortunately is completely unusable for me. Once I run the daemon, and I try to do aptitude update at most I have something like this: Yes, I found this this morning. Pleas add the attached patch and try again Mark Yep, that made it. Thanks. By chance I come across another issue. I was doing aptitude update but I lost internet connection. When I got connectivity again, I tried to do aptitude update again, but only repositories not cached by apt-cacher updated, aptitude stalled on cached repos. After that I noticed that after having stopped the apt-cacher service, there were lots of apt-cacher processes running which wouldn't die with regular killall, so I had to killall -9 them. For the moment I can't provide more information, but I think we could tackle this issues, by a more direct connection, e.g.: jabber if you agree to do so. I'll send you a private e-mail with my account. Regards, -- Raúl Sánchez Siles -Proud Debian user- Linux registered user #416098 signature.asc Description: This is a digitally signed message part.
Bug#487789: apt-cacher locks when using checksum and requiring it concurrently.
El Domingo, 6 de Julio de 2008, Mark Hindley escribió: On Tue, Jun 24, 2008 at 08:50:09AM +0200, Raúl Sánchez Siles wrote: Package: apt-cacher Version: 1.6.4 Severity: important Hello: When I start 2 aptitude sessions: one for a real system and one for a chroot; and they concurrently run update and/or upgrade I got this message on dmesg. apt-cacher[8117]: segfault at 7f87f70b8e18 ip 7f87f7c37b56 sp 7fff05122448 error 6 in libdb-4.6.so[7f87f7b9d000+145000] Although I cannot reproduce this exactly, I have just produced a new pre-release version of 1.6.5 which has completely rewritten checksumming. All the problems I was seeing have gone. I would be grateful if you could try it and report back. Available from http://hindley.org.uk/~mark/debian/apt-cacher_1.6.5pre1_all.deb Thanks, Mark Hello Mark: Thanks for this piece of information. I've tried that new prerelease, but unfortunately is completely unusable for me. Once I run the daemon, and I try to do aptitude update at most I have something like this: --Being quote-- sudo aptitude update [sudo] password for rasasi: Des:1 http://www.debian-multimedia.org unstable Release.gpg [197B] Obj http://www.debian-multimedia.org unstable/main Translation-es Des:2 http://www.debian-multimedia.org unstable Release [13,2kB] Des:3 http://www.debian-multimedia.org unstable/main Packages/DiffIndex [2023B] Des:4 http://www.debian-multimedia.org unstable/main Sources/DiffIndex [2023B] Des:5 http://www.debian-multimedia.org unstable/main 2008-07-07-2323.29.pdiff [1988B] Des:6 http://www.debian-multimedia.org unstable/main 2008-07-07-2323.29.pdiff [1988B] Des:7 http://www.debian-multimedia.org unstable/main 2008-07-07-2323.29.pdiff [215B] Des:8 http://www.debian-multimedia.org unstable/main 2008-07-07-2323.29.pdiff [215B] Des:9 http://www.debian-multimedia.org unstable/main 2008-07-07-2323.29.pdiff [1988B] Des:10 http://www.debian-multimedia.org unstable/main 2008-07-07-2323.29.pdiff [215B] Des:11 http://localhost unstable Release.gpg Des:12 http://localhost unstable/main Translation-es Err http://localhost unstable/main Translation-es Expiró la conexión Ign http://localhost unstable/contrib Translation-es Ign http://localhost unstable/non-free Translation-es Des:13 http://localhost testing Release.gpg Err http://localhost testing Release.gpg Expiró la conexión Ign http://localhost testing/main Translation-es Ign http://localhost testing/contrib Translation-es Ign http://localhost testing/non-free Translation-es Des:14 http://localhost experimental Release.gpg Err http://localhost experimental Release.gpg Expiró la conexión Ign http://localhost experimental/main Translation-es Ign http://localhost experimental/contrib Translation-es Ign http://localhost experimental/non-free Translation-es Des:15 http://localhost unstable Release Ign http://localhost unstable Release Des:16 http://localhost testing Release Ign http://localhost testing Release Des:17 http://localhost experimental Release Ign http://localhost experimental Release Des:18 http://localhost unstable/main Packages/DiffIndex --End quote-- I stopped there with ctrl-C. So I was unable to do either concurrent aptitude update, with or without checksum. Also a simple update without checksum failed. I'm attaching the error log with debug enabled. It includes several restarts with different options and upgrade tries. I hope it is meaningful for you. Regards, -- Raúl Sánchez Siles -Proud Debian user- Linux registered user #416098 error.log.gz Description: GNU Zip compressed data signature.asc Description: This is a digitally signed message part.
Bug#487789: apt-cacher locks when using checksum and requiring it concurrently.
On Tue, Jul 08, 2008 at 12:35:27AM +0200, Raúl Sánchez Siles wrote: Hello Mark: Thanks for this piece of information. I've tried that new prerelease, but unfortunately is completely unusable for me. Once I run the daemon, and I try to do aptitude update at most I have something like this: Yes, I found this this morning. Pleas add the attached patch and try again Mark commit 79013c353d63565d294b33d5475a31747af2a40c Author: Mark Hindley [EMAIL PROTECTED] Date: Mon Jul 7 10:58:24 2008 +0100 Fix regexp in header parsing diff --git a/apt-cacher2 b/apt-cacher2 index 053d81e..87d2725 100755 --- a/apt-cacher2 +++ b/apt-cacher2 @@ -1327,7 +1327,7 @@ sub libcurl { die Parse of $_ failed; last SWITCH; }; - /^(\S+): (\S+)$/ do { + /^(\S+): (.+)$/ do { debug_message(Got header $_\n); $response-headers-push_header($1, $2); last SWITCH; @@ -1338,7 +1338,7 @@ sub libcurl { write_header(\$response) if defined $pkfdref; last SWITCH; }; - debug_message(Warning, unrecognised line in head_callback: $_); + info_message(Warning, unrecognised line in head_callback: $_); } } else {
Bug#487789: apt-cacher locks when using checksum and requiring it concurrently.
package apt-cacher tag 487789 pending thanks On Tue, Jun 24, 2008 at 08:50:09AM +0200, Raúl Sánchez Siles wrote: Package: apt-cacher Version: 1.6.4 Severity: important Hello: When I start 2 aptitude sessions: one for a real system and one for a chroot; and they concurrently run update and/or upgrade I got this message on dmesg. apt-cacher[8117]: segfault at 7f87f70b8e18 ip 7f87f7c37b56 sp 7fff05122448 error 6 in libdb-4.6.so[7f87f7b9d000+145000] Although I cannot reproduce this exactly, I have just produced a new pre-release version of 1.6.5 which has completely rewritten checksumming. All the problems I was seeing have gone. I would be grateful if you could try it and report back. Available from http://hindley.org.uk/~mark/debian/apt-cacher_1.6.5pre1_all.deb Thanks, Mark -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#487789: apt-cacher locks when using checksum and requiring it concurrently.
package apt-cacher forwarded 487789 [EMAIL PROTECTED] thanks On Tue, Jun 24, 2008 at 08:50:09AM +0200, Raúl Sánchez Siles wrote: Package: apt-cacher Version: 1.6.4 Severity: important Hello: When I start 2 aptitude sessions: one for a real system and one for a chroot; and they concurrently run update and/or upgrade I got this message on dmesg. apt-cacher[8117]: segfault at 7f87f70b8e18 ip 7f87f7c37b56 sp 7fff05122448 error 6 in libdb-4.6.so[7f87f7b9d000+145000] Thanks. I am getting segfaults with libdb4.6 as well. I think this must be a problem with libwww-curl-perl rather than apt-cacher. I have posted a report upstream. Mark -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#487789: apt-cacher locks when using checksum and requiring it concurrently.
Package: apt-cacher Version: 1.6.4 Severity: important Hello: When I start 2 aptitude sessions: one for a real system and one for a chroot; and they concurrently run update and/or upgrade I got this message on dmesg. apt-cacher[8117]: segfault at 7f87f70b8e18 ip 7f87f7c37b56 sp 7fff05122448 error 6 in libdb-4.6.so[7f87f7b9d000+145000] This only happens if I enable checksum option in the apt-cacher configuration. When this occurs, downloads eventually stops and those apt-cacher instances hang so that only kill -9 can make them dissappear. I need to run apt-cacher-cleanup -r and then restart apt-cacher service to go on. I started using apt-cacher from around 1.6.0, and I started trying checksum from around 1.6.2. Regards, -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (900, 'unstable'), (500, 'testing'), (100, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.25.4-rtoi-rc7 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages apt-cacher depends on: ii bzip2 1.0.5-0.1 high-quality block-sorting file co ii ed0.7-1 The classic unix line editor ii libdigest-sha1-perl 2.11-2+b1 NIST SHA-1 message digest algorith ii libwww-curl-perl 4.00-1+b1 Perl bindings to libcurl ii libwww-perl 5.812-1WWW client/server library for Perl ii perl 5.10.0-10 Larry Wall's Practical Extraction Versions of packages apt-cacher recommends: ii libberkeleydb-perl0.34-1+b1 use Berkeley DB 4 databases from P -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]