Debian Bug report logs - #22690
dpkg: Assertion `dependtry <= 4' failed.

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg (PTS, buildd, popcon).

Reported by: Laszlo MATICS <malacka@tamika.rulez.org>

Date: Wed, 20 May 1998 22:18:04 UTC

Severity: normal

Merged with 22999, 23611, 23906, 24626, 24690, 24923, 26084, 29901, 34136, 34174, 34287, 38155, 38288, 38378, 38381, 38393, 38754, 39204, 39275, 41611, 41808

Done: Anthony Towns <ajt@master.debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#22690; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Laszlo MATICS <malacka@tamika.rulez.org>:
New bug report received and forwarded. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Laszlo MATICS <malacka@tamika.rulez.org>
To: submit@bugs.debian.org
Subject: dpkg: assertion failed
Date: Thu, 21 May 1998 00:12:16 +0200
Package: dpkg
Version: 1.4.0.22

root@tamika:~# apt-get upgrade
Updating package status cache...done
Checking system integrity...ok
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 packages not fully installed or removed.
Need to get 0b of archives. After unpacking 0b will be used.
Do you want to continue? [Y/n] y
dpkg: ../../../dpkg/packages.c:191: process_queue: Assertion `dependtry <= 4' failed.
E: Sub-process returned an error code
root@tamika:~# dpkg --pending --configure
dpkg: ../../../dpkg/packages.c:191: process_queue: Assertion `dependtry <= 4' failed.
Aborted (core dumped)
root@tamika:~#


-- System Information
Debian Release: 2.0 (frozen)
Kernel Version: Linux tamika 2.0.34 #1 Sun May 17 15:26:53 CEST 1998 i586 unknown

Versions of the packages dpkg depends on:
ii  libc6           2.0.7pre3-1    The GNU C library version 2 (run-time files)
ii  libstdc++2.8    2.90.28-0.1    The GNU stdc++ library (egcs version)
ii  ncurses3.4      1.9.9g-8.3     Video terminal manipulation - shared librari


Information forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#22690; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Laszlo MATICS <malacka@tamika.rulez.org>:
Extra info received and forwarded to list. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #10 received at 22690@bugs.debian.org (full text, mbox, reply):

From: Laszlo MATICS <malacka@tamika.rulez.org>
To: 22690@bugs.debian.org
Subject: Bug#22690: Acknowledgement (dpkg: assertion failed)
Date: Thu, 21 May 1998 00:56:34 +0200 (CEST)
I've forgot this to sed you. sorry 

root@tamika:~# dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 apache-ssl           Versatile, high-performance HTTP server with SSL
support





Information forwarded to debian-bugs-dist@lists.debian.org, Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>:
Bug#22690; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Peter Kundrat <kundrat@gic.sk>:
Extra info received and forwarded to list. Copy sent to Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #15 received at 22690@bugs.debian.org (full text, mbox, reply):

From: Peter Kundrat <kundrat@gic.sk>
To: 22690@bugs.debian.org
Subject: some observations
Date: Sat, 6 Feb 1999 22:38:24 +0100
Hello,

The very same bug happened to me recently. After some investigation it seems that
the problem is caused by the following:

apache-ssl depends on apache | apache-common but also provides apache (thats
for 1.2.6+1.16-1). In case it remains in unpacked state problems begin.

debug log (a fragment of):
D000400:   checking group ...
D000400:     checking possibility  -> apache
D000400:       not installed - returning 0
D000400:      checking provider apache-ssl
D000400:       unpacked/halfconfigured, defer
D000400:     found 1
D000400:     checking possibility  -> apache-common
D000400:       not installed - returning 0
D000400:     found 1
D000400:   found 1 matched 0

process_queue() calls deferred_configure() which calls dependencies_ok().
Unfortunately dependencies_ok finds that apache-ssl depends on apache (which
is provided by the package inspected itself and hence not configured yet), so it
defers and it loops until dependtry gets over 4.

I am sorry not to have time to study it more in depth so i can't tell whether
apache-ssl description is wrong, but probably it wouldnt be bad to detect that loop.

Proposed patch:
--- dpkg/packages.c.orig        Sat Feb  6 22:28:43 1999
+++ dpkg/packages.c     Sat Feb  6 22:28:48 1999
@@ -297,8 +297,13 @@
     }
     if (possdependee->clientdata &&
         possdependee->clientdata->istobe == itb_installnew) {
-      debug(dbg_depcondetail,"      unpacked/halfconfigured, defer");
-      return 1;
+      if (possdependee == requiredby) {
+        debug(dbg_depcondetail,"      provided by itself, ok");
+        return 3;
+      } else {
+        debug(dbg_depcondetail,"      unpacked/halfconfigured, defer");
+        return 1;
+      }
     } else if (!removing && fc_configureany && !skip_due_to_hold(possdependee)) {
       fprintf(stderr,
               _("dpkg: also configuring `%s' (required by `%s')\n"),


		Regards,

			Peter
-- 
Peter Kundrat
kundrat@general-it.sk


Information forwarded to debian-bugs-dist@lists.debian.org, Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>:
Bug#22690; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Ian Jackson <ian@chiark.greenend.org.uk>:
Extra info received and forwarded to list. Copy sent to Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #20 received at 22690@bugs.debian.org (full text, mbox, reply):

From: Ian Jackson <ian@chiark.greenend.org.uk>
To: Peter Kundrat <kundrat@gic.sk>, 22690@bugs.debian.org, apache-ssl@packages.debian.org
Subject: Re: Bug#22690: some observations
Date: Thu, 11 Feb 1999 13:13:11 +0000 (GMT)
Peter Kundrat writes ("Bug#22690: some observations"):
> The very same bug happened to me recently. After some investigation it seems that
> the problem is caused by the following:
> 
> apache-ssl depends on apache | apache-common but also provides apache (thats
> for 1.2.6+1.16-1). In case it remains in unpacked state problems begin.

Thanks for that useful information.

The apache-ssl control file is silly, but I agree that dpkg shouldn't
behave like this either.

To the apache-ssl maintainer: can you fix the control file, please ?

In the meantime I'll consider this patch, but dpkg's build system is
in a parlous state right now, and it'll take me a while to fix it.

Thanks,
Ian.

> debug log (a fragment of):
> D000400:   checking group ...
> D000400:     checking possibility  -> apache
> D000400:       not installed - returning 0
> D000400:      checking provider apache-ssl
> D000400:       unpacked/halfconfigured, defer
> D000400:     found 1
> D000400:     checking possibility  -> apache-common
> D000400:       not installed - returning 0
> D000400:     found 1
> D000400:   found 1 matched 0
> 
> process_queue() calls deferred_configure() which calls dependencies_ok().
> Unfortunately dependencies_ok finds that apache-ssl depends on apache (which
> is provided by the package inspected itself and hence not configured yet), so it
> defers and it loops until dependtry gets over 4.
> 
> I am sorry not to have time to study it more in depth so i can't tell whether
> apache-ssl description is wrong, but probably it wouldnt be bad to detect that loop.
> 
> Proposed patch:
> --- dpkg/packages.c.orig        Sat Feb  6 22:28:43 1999
> +++ dpkg/packages.c     Sat Feb  6 22:28:48 1999
> @@ -297,8 +297,13 @@
>      }
>      if (possdependee->clientdata &&
>          possdependee->clientdata->istobe == itb_installnew) {
> -      debug(dbg_depcondetail,"      unpacked/halfconfigured, defer");
> -      return 1;
> +      if (possdependee == requiredby) {
> +        debug(dbg_depcondetail,"      provided by itself, ok");
> +        return 3;
> +      } else {
> +        debug(dbg_depcondetail,"      unpacked/halfconfigured, defer");
> +        return 1;
> +      }
>      } else if (!removing && fc_configureany && !skip_due_to_hold(possdependee)) {
>        fprintf(stderr,
>                _("dpkg: also configuring `%s' (required by `%s')\n"),
> 
> 
> 		Regards,
> 
> 			Peter
> -- 
> Peter Kundrat
> kundrat@general-it.sk


Information forwarded to debian-bugs-dist@lists.debian.org, Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>:
Bug#22690; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Christoph Martin <martin@uni-mainz.de>:
Extra info received and forwarded to list. Copy sent to Ian Jackson and others <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


Message #25 received at 22690@bugs.debian.org (full text, mbox, reply):

From: Christoph Martin <martin@uni-mainz.de>
To: Ian Jackson <ian@chiark.greenend.org.uk>
Cc: Peter Kundrat <kundrat@gic.sk>, 22690@bugs.debian.org, apache-ssl@packages.debian.org
Subject: Re: Bug#22690: some observations
Date: Thu, 11 Feb 1999 15:28:25 +0100 (MET)
Ian Jackson writes:
 > Peter Kundrat writes ("Bug#22690: some observations"):
 > > 
 > > apache-ssl depends on apache | apache-common but also provides apache (thats
 > > for 1.2.6+1.16-1). In case it remains in unpacked state problems begin.
 > 
 > The apache-ssl control file is silly, but I agree that dpkg shouldn't
 > behave like this either.
 > 
 > To the apache-ssl maintainer: can you fix the control file, please ?
 > 

This is only a problem with the version 1.2.6+1.16 in hamm. We had a
large discussion at that time which led to the introduction of
apache-common. At that time apache-ssl depent on apache-common but not
apache itself, so we had the problem that apache and apache-common
shared a common fileset and apache-ssl hat to conflict with apache but
also provide it to make packages working which depend on apache.

But this was resolved when the maintainer of apache split off an
apache-common package himself. So, there is no problem in the current
frozen (slink) and unstable (potato) version of apache-ssl which is
1.3.3.+1.29.

Christoph


Changed bug title. Request was from "J.H.M. Dassen" <jdassen@wi.leidenuniv.nl> to control@bugs.debian.org. (full text, mbox, link).


Merged 22690 23611 24626 34136 34174. Request was from "J.H.M. Dassen" <jdassen@wi.leidenuniv.nl> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `grave'. Request was from "J.H.M. Dassen" <jdassen@wi.leidenuniv.nl> to control@bugs.debian.org. (full text, mbox, link).


Merged 22690 23611 24626 34136 34174 41611. Request was from "J.H.M. Dassen" <jdassen@wi.leidenuniv.nl> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `normal'. Request was from Antti-Juhani Kaijanaho <gaia@iki.fi> to control@bugs.debian.org. (full text, mbox, link).


Merged 22690 22999 23611 23906 24626 24690 24923 26084 29901 34136 34174 34287 38155 38288 38378 38381 38393 38754 39204 39275 41611. Request was from Antti-Juhani Kaijanaho <gaia@iki.fi> to control@bugs.debian.org. (full text, mbox, link).


Merged 22690 22999 23611 23906 24626 24690 24923 26084 29901 34136 34174 34287 38155 38288 38378 38381 38393 38754 39204 39275 41611 41808. Request was from Antti-Juhani Kaijanaho <gaia@iki.fi> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg-iwj'. Request was from Ben Collins <bcollins@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg-iwj' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug closed, ack sent to submitter - they'd better know why ! Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `dpkg' to `dpkg'. Request was from Anthony Towns <ajt@master.debian.org> to control@bugs.debian.org. (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 1 21:39:53 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.