Debian Bug report logs - #413509
debconf: database communication does not work

version graph

Package: debconf; Maintainer for debconf is Debconf Developers <debconf-devel@lists.alioth.debian.org>; Source for debconf is src:debconf (PTS, buildd, popcon).

Reported by: Frank Küster <frank@debian.org>

Date: Sat, 3 Mar 2007 17:15:05 UTC

Severity: important

Fixed in version debconf/1.5.13

Done: Joey Hess <joeyh@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, Frank Küster <frank@debian.org>, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#413249; Package x11-common. (full text, mbox, link).


Acknowledgement sent to Frank Küster <frank@debian.org>:
New Bug report received and forwarded. Copy sent to Frank Küster <frank@debian.org>, Debian X Strike Force <debian-x@lists.debian.org>. (full text, mbox, link).


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

From: Frank Küster <frank@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: x11-common: config script hangs or fails
Date: Sat, 03 Mar 2007 18:12:39 +0100
[Message part 1 (text/plain, inline)]
Package: x11-common
Version: 1:7.1.0-13
Severity: serious

Today I upgraded x11-common from -12 to -13 on my etch system.  It
displayed a debconf note "incorrect nice value" (btw. the wording is poor,
there's no indication we're dealing with x11-common).  I pressed "next"
and expected some new dialog where I could enter the nice value, but
nothing happened, the script hangs.

After pressing "Cancel", the pre-configuring stops, and I see the
following output on the terminal:

DESTROY created new reference to dead object ' Qt::VBoxLayout', <> line 14 during global destruction.
Preconfiguring packages ...
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN10> line 4.
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN10> line 9.
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN10> line 17.
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN10> line 25.
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN10> line 33.
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN10> line 41.
DESTROY created new reference to dead object ' Qt::VBoxLayout' during global destruction.

Received signal.  Aborting x11-common package config script.

The installation continues, this is the following screen output, at this
time the frontend (KDE) displays the question again:

(Reading database ... 195590 files and directories currently installed.)
Preparing to replace libvolume-id0 0.103-2 (using .../libvolume-id0_0.105-2_i386.deb) ...
Unpacking replacement libvolume-id0 ...
Preparing to replace udev 0.103-2 (using .../archives/udev_0.105-2_i386.deb) ...
Unpacking replacement udev ...
Preparing to replace x11-common 1:7.1.0-12 (using .../x11-common_1%3a7.1.0-13_i386.deb) ...
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 4.
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 9.

pressing "next" gives:

Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 17.

"next" once more gives:

Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 25.

further "next" give:

Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 33.
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 41. 

after that it's line 49, then I stopped the game and pressed "cancel".  

dpkg: error processing /var/cache/apt/archives/x11-common_1%3a7.1.0-13_i386.deb (--unpack):
 subprocess pre-installation script killed by signal (Segmentation fault)
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 4.
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 9.
DESTROY created new reference to dead object ' Qt::VBoxLayout', <GEN1> line 15 during global destruction.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 255


After that it shows the screen again, this time I don't know the first
lines of output, because I get more than a screenful of

/usr/share/debconf/confmodule: line 42: printf: write error: Broken pipe

and stopped with Ctrl-c:

dpkg: error processing udev (--configure):
 subprocess post-installation script killed by signal (Interrupt)
dpkg: dependency problems prevent configuration of xserver-xorg-core:
 xserver-xorg-core depends on x11-common (>= 1:7.0.0); however:
  Package x11-common is not configured yet.
dpkg: error processing xserver-xorg-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-video-neomagic:
 xserver-xorg-video-neomagic depends on xserver-xorg-core (>= 2:1.1.1-11); however:
  Package xserver-xorg-core is not configured yet.
dpkg: error processing xserver-xorg-video-neomagic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-video-all:
 xserver-xorg-video-all depends on xserver-xorg-video-neomagic; however:
  Package xserver-xorg-video-neomagic is not configured yet.
dpkg: error processing xserver-xorg-video-all (--configure):
 dependency problems - leaving unconfigured

Received signal.  Aborting x11-common package config script.

Errors were encountered while processing:
 x11-common
 udev
 xserver-xorg-core
 xserver-xorg-video-neomagic
 xserver-xorg-video-all

# export DEBCONF_DEBUG=developer
# dpkg --configure -a 2>&1 | tee error.log

This time, I pressed "Next" only once, then cancel, and didn't need to
stop with Ctrl-c.  error.lg is attached, but it seems this could be the
problem:

Setting up x11-common (7.1.0-12) ...
debconf (developer): frontend started
debconf (developer): frontend running, package name is x11-common
debconf (developer): starting /var/lib/dpkg/info/x11-common.config configure 1:7.1.0-12
debconf (developer): <-- SET x11-common/xwrapper/allowed_users Console Users Only
debconf (developer): --> 0 value set
debconf (developer): <-- SET x11-common/xwrapper/nice_value 0
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT low x11-common/xwrapper/allowed_users
debconf (developer): --> 30 question skipped
debconf (developer): <-- GO 
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 4.
debconf (developer): --> 0 ok
debconf (developer): <-- GET x11-common/xwrapper/allowed_users

Regards, Frank




-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing'), (99, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages x11-common depends on:
ii  debconf [debconf-2.0]         1.5.11     Debian configuration management sy
ii  debianutils                   2.17       Miscellaneous utilities specific t
ii  lsb-base                      3.1-23     Linux Standard Base 3.1 init scrip

x11-common recommends no packages.

-- debconf information:
  x11-common/xwrapper/nice_value: 0
  x11-common/xwrapper/allowed_users: Console Users Only
  x11-common/xwrapper/actual_allowed_users: console
  x11-common/xwrapper/nice_value/error:
  x11-common/x11r6_bin_not_empty:
  x11-common/upgrade_issues:

-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)

[error.log (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#413249; Package x11-common. (full text, mbox, link).


Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (full text, mbox, link).


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

From: Frank Küster <frank@kuesterei.ch>
To: 413249@bugs.debian.org
Cc: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#413249: x11-common: config script hangs or fails
Date: Sat, 03 Mar 2007 20:06:02 +0100
Frank Küster <frank@debian.org> wrote:

> debconf (developer): <-- INPUT low x11-common/xwrapper/allowed_users
> debconf (developer): --> 30 question skipped
> debconf (developer): <-- GO 
> Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 4.

I tried "DEBIAN_PRIORITY=low dpkg --configure -a 2>&1 | tee error.log"

and it succeeded:

Setting up x11-common (7.1.0-12) ...
debconf (developer): frontend started
debconf (developer): frontend running, package name is x11-common
debconf (developer): starting /var/lib/dpkg/info/x11-common.config configure 1:7.1.0-12
debconf (developer): <-- SET x11-common/xwrapper/allowed_users Console Users Only
debconf (developer): --> 0 value set
debconf (developer): <-- SET x11-common/xwrapper/nice_value 0
debconf (developer): --> 0 value set
debconf (developer): <-- INPUT low x11-common/xwrapper/allowed_users
debconf (developer): --> 0 question will be asked
debconf (developer): <-- GO 
debconf (developer): --> 0 ok
debconf (developer): <-- GET x11-common/xwrapper/allowed_users
debconf (developer): --> 0 Console Users Only
debconf (developer): <-- SET x11-common/xwrapper/actual_allowed_users console
debconf (developer): --> 0 value set
debconf (developer): <-- GET x11-common/xwrapper/nice_value
debconf (developer): --> 0 0
debconf (developer): <-- INPUT low x11-common/xwrapper/nice_value
debconf (developer): --> 0 question will be asked
debconf (developer): <-- GO 
debconf (developer): --> 0 ok
debconf (developer): <-- GET x11-common/xwrapper/nice_value
debconf (developer): --> 0 0
debconf (developer): starting /var/lib/dpkg/info/x11-common.postinst configure 1:7.1.0-12
debconf (developer): <-- GET x11-common/xwrapper/actual_allowed_users
debconf (developer): --> 0 console
debconf (developer): <-- GET x11-common/xwrapper/nice_value
debconf (developer): --> 0 0

Setting up xserver-xorg-core (1.1.1-19) ...
Setting up xserver-xorg-video-neomagic (1.1.1-5) ...
Setting up xserver-xorg-video-all (7.1.0-13) ...

I'm not sure whether this makes the bug less severe, feel free to
downgrade it.

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#413249; Package x11-common. (full text, mbox, link).


Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (full text, mbox, link).


Severity set to `important' from `serious' Request was from Steve Langasek <vorlon@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Tags added: unreproducible Request was from Steve Langasek <vorlon@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#413249; Package x11-common. (full text, mbox, link).


Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (full text, mbox, link).


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

From: Frank Küster <frank@kuesterei.ch>
To: Steve Langasek <vorlon@debian.org>
Cc: 413249@bugs.debian.org
Subject: Re: severity of 413249 is important, tagging 413249
Date: Mon, 05 Mar 2007 14:02:07 +0100
Steve Langasek <vorlon@debian.org> wrote:

> # Automatically generated email from bts, devscripts version 2.9.27
> severity 413249 important
> tags 413249 unreproducible

It is very well reproducible here, it occurred again today.  This time,
even Ctrl-c wouldn't stop the script, it ate >95% CPU, and "ps axf"
showed that it had somehow detached from the controlling X terminal.  It
needed a "kill $pid" to get control of my CPU.

I have added a "set -x" in config and preinst, and this showed me one
point were there is a bug in the config script.  I am not sure, however,
that this is the root of my problem.  

The bug I found so far is

while :; do
  run db_input low x11-common/xwrapper/nice_value
  # is the question going to be asked?
  if [ $? -eq 30 ]; then
    break # no; bail out of validation loop
  fi

Because db_input is wrapped in the "run" function, the return value of
db_input is no longer in $?, and the script will not break the loop.  It
is in $_retval, though:

run () {
[...]
  "$@" || _retval=$?

  if [ ${_retval:-0} -ne 0 ]; then
    observe "command \"$*\" exited with status $_retval"
  fi

The patch for this would be

 while :; do
   run db_input low x11-common/xwrapper/nice_value
   # is the question going to be asked?
+  WILL_BE_ASKED=$_retval
-  if [ $? -eq 30 ]; then
+  if [ $WILL_BE_ASKED -eq 30 ]; then
    break # no; bail out of validation loop
  fi

However, changing this doesn't fix my problem, and I got sceptical
whether it originates in x11-common, since I get so many internal
debconf errors.

I removed the content of /var/cache/debconf, dpkg-reconfigure'd debconf,
and tried again, but that didn't help.

Somehow still debconf's answers are not what the config script expects.
Upon reinstalling x11-common with "set -xv", I get 

# next question requires input validation; assume safe valid value already
# present (possibly the template default)
SAFE=
+ SAFE=
if db_get x11-common/xwrapper/nice_value; then
  SAFE="$RET"
fi
+ db_get x11-common/xwrapper/nice_value
+ _db_cmd 'GET x11-common/xwrapper/nice_value'
+ IFS=' '
+ printf '%s\n' 'GET x11-common/xwrapper/nice_value'
debconf (developer): <-- GET x11-common/xwrapper/nice_value
debconf (developer): --> 0 0
+ IFS='
'
+ read -r _db_internal_line
+ RET='value set'
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ SAFE='value set'

Why on earth is "$RET" now "value set", where it should be "0"?  Note
that "value set" was the last answer that debconf communicated about
that template, but not the last answer it communcated in that script
(which was about allowed_users.

What is happening here?  Please remember that this is an etch system
installed on the 10th of February, nothing were the system had time to
degrade into a mess of distribution mixture and local misconfiguration
(though I do not exclude the latter...)

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Bug 413249 cloned as bug 413509. Request was from Frank Küster <frank@kuesterei.ch> to control@bugs.debian.org. (full text, mbox, link).


Changed Bug title. Request was from Frank Küster <frank@kuesterei.ch> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `x11-common' to `debconf'. Request was from Frank Küster <frank@kuesterei.ch> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#413509; Package debconf. (full text, mbox, link).


Acknowledgement sent to Joey Hess <joeyh@debian.org>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Joey Hess <joeyh@debian.org>
To: Steve Langasek <vorlon@debian.org>, 413509@bugs.debian.org
Cc: Frank Küster <frank@kuesterei.ch>
Subject: Re: database communication does not work
Date: Mon, 5 Mar 2007 22:38:29 -0500
[Message part 1 (text/plain, inline)]
Are you using the QT debconf frontend? Do the problems occur with a
different frontend?

What does it look like if you export DEBCONF_DEBUG=. and reproduce the
problem (complete log please)?

In your original bug report, you showed the preinst dying of a segfault.
That's a shell script dying of a segfault? Do you have any reason to
believe that this is not a hardware problem?

+ return 0
+ '[' 1 -ne 0 ']'

If I'm reading this correctly, db_set is returning 0, and its caller is
getting a 1 back in $?. Barring a broken shell, I don't see how that's
possible.

-- 
see shy jo
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#413509; Package debconf. (full text, mbox, link).


Acknowledgement sent to Joey Hess <joeyh@debian.org>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Joey Hess <joeyh@debian.org>
To: Steve Langasek <vorlon@debian.org>, 413509@bugs.debian.org
Cc: Frank Küster <frank@kuesterei.ch>
Subject: Re: database communication does not work
Date: Mon, 5 Mar 2007 22:58:04 -0500
[Message part 1 (text/plain, inline)]
Also, is this the same machine that somehow grew a truncated initramfs
file in #413456? Just curious..

-- 
see shy jo
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#413509; Package debconf. (full text, mbox, link).


Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Frank Küster <frank@kuesterei.ch>
To: Joey Hess <joeyh@debian.org>
Cc: Steve Langasek <vorlon@debian.org>, 413509@bugs.debian.org
Subject: Re: database communication does not work
Date: Tue, 06 Mar 2007 08:47:41 +0100
Joey Hess <joeyh@debian.org> wrote:

> Are you using the QT debconf frontend? Do the problems occur with a
> different frontend?
>
> What does it look like if you export DEBCONF_DEBUG=. and reproduce the
> problem (complete log please)?

I was using the QT ("KDE") frontend.  I once tried with dialog (or
rather whiptail), that produced a totally corrupted terminal, maybe
because of all the internal debconf errors.

And you are right, it does not happen with the gnome frontend.  I attach
the log with DEBCONF_DEBUG='.', truncated at the point where the first
"incorrect nice value" message is displayed.  At this point, we have

# debconf-show x11-common
  x11-common/xwrapper/actual_allowed_users: console
* x11-common/xwrapper/nice_value: 0
* x11-common/xwrapper/nice_value/error:
  x11-common/x11r6_bin_not_empty:
* x11-common/xwrapper/allowed_users: Console Users Only
* x11-common/upgrade_issues:
#

> In your original bug report, you showed the preinst dying of a segfault.
> That's a shell script dying of a segfault? Do you have any reason to
> believe that this is not a hardware problem?
>
> + return 0
> + '[' 1 -ne 0 ']'
>
> If I'm reading this correctly, db_set is returning 0, and its caller is
> getting a 1 back in $?. Barring a broken shell, I don't see how that's
> possible.

You make me feel nervous.  Yes, this is the same machine that grew a
corrupted initramfs image.  On the other hand, I didn't encounter any
other problems, although I was using it quite heavily, both for package
building (mostly not yet uploaded) and for number crunching with
Mathematica. 

I have reinstalled libqt-perl, libsmokeqt1 and libqt3-mt, but this
didn't change anything.  Looking again at the output when reinstalling
x11-common with the Qt frontend, this time without any additional
debugging, shows clearly that something is amiss on the Qt side:

# apt-get --reinstall install x11-common 2>&1 | tee reinstall.lg
Reading package lists...
Building dependency tree...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
Need to get 0B/334kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? 
DESTROY created new reference to dead object ' Qt::SpacerItem', <> line 1 during global destruction.
Preconfiguring packages ...
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 4.

The first error comes even before the "Preconfiguring packages ..."
message.

I'll try to run memtest tonight (but don't expect much from it, since on
my system, the errors are reproducible except for the segfault).  Apart
from that, which debugging steps do you suggest?  Should this be kept
open as a bug at all?

Regards, Frank


-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Tags removed: unreproducible Request was from Joey Hess <joeyh@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#413509; Package debconf. (full text, mbox, link).


Acknowledgement sent to Steve Langasek <vorlon@debian.org>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Steve Langasek <vorlon@debian.org>
To: Frank Küster <frank@kuesterei.ch>
Cc: Joey Hess <joeyh@debian.org>, 413509@bugs.debian.org
Subject: Re: database communication does not work
Date: Tue, 6 Mar 2007 01:07:58 -0800
On Tue, Mar 06, 2007 at 08:47:41AM +0100, Frank Küster wrote:
> I'll try to run memtest tonight (but don't expect much from it, since on
> my system, the errors are reproducible except for the segfault).  Apart
> from that, which debugging steps do you suggest?  Should this be kept
> open as a bug at all?

Check with debsums for any corrupt files on disk?

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/



Information forwarded to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#413509; Package debconf. (full text, mbox, link).


Acknowledgement sent to Joey Hess <joeyh@debian.org>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Joey Hess <joeyh@debian.org>
To: Frank Küster <frank@kuesterei.ch>, 413509@bugs.debian.org
Cc: Steve Langasek <vorlon@debian.org>
Subject: Re: Bug#413509: database communication does not work
Date: Tue, 6 Mar 2007 04:43:57 -0500
[Message part 1 (text/plain, inline)]
Frank Küster wrote:
> # apt-get --reinstall install x11-common 2>&1 | tee reinstall.lg
> Reading package lists...
> Building dependency tree...
> 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
> Need to get 0B/334kB of archives.
> After unpacking 0B of additional disk space will be used.
> Do you want to continue [Y/n]? 
> DESTROY created new reference to dead object ' Qt::SpacerItem', <> line 1 during global destruction.
> Preconfiguring packages ...
> Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 4.

I can reproduce this:

debconf (user): trying frontend Kde
debconf (frontend): QTF: initializing app
debconf (frontend): QTF: initializing wizard
debconf (frontend): QTF: setting size
debconf (frontend): QTF: setting title
debconf (frontend): QTF: initializing main widget
        (in cleanup) DESTROY created new reference to dead object ' Qt::Object' at /usr/lib/perl5/Qt.pm line 445, <> line 1 during global destruction.

This bug occurs because dpkg-preconfigure forks and the subprocess
exits, calling Qt's DESTROY hooks. Apparently Qt behaves badly if the
DESTROY hooks are called before it actually displays anything. I think
this is a bug in libqt-perl, but I've committed a workaround to svn.

debconf (developer): --> 30 question skipped
debconf (developer): <-- GO 
debconf (frontend): QTF: -- START ------------------
debconf (frontend): QTF: -- END --------------------
Use of uninitialized value in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 104, <GEN1> line 4.
debconf (db configdb): trying to setfield(x11-common/xwrapper/allowed_users value ) ..

It seems that the uninitialised value here is occuring because an undef is
being passed in when the value of the never displayed question is set.
That in turn happens because the kde frontend, unlike other frontend, does
not "show" nontinteractive elements. I've fixed it in svn.

That bug may be why debconf seemed to hang. An undef value goes in, and
the result is that values like x11-common/xwrapper/nice_value are read
out as "". If the x11-common/xwrapper/nice_value/error question is not
displayed for some reason (despite being critical priority),
x11-common's config script will loop forever.

I don't know about all the other strangeness however. No segfaults or
weird shell stuff reproduced here so far.

-- 
see shy jo
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#413509; Package debconf. (full text, mbox, link).


Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Frank Küster <frank@kuesterei.ch>
To: 413509@bugs.debian.org
Subject: Re: Bug#413509: database communication does not work
Date: Tue, 06 Mar 2007 10:47:48 +0100
[Message part 1 (text/plain, inline)]
Joey Hess <joeyh@debian.org> wrote:

> Frank Küster wrote:
>> And you are right, it does not happen with the gnome frontend.  I attach
>
> You forgot the attachment.

Scientists say 75% of promised attachments are forgotten...
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)

[reinstall.first-note.lg (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#413509; Package debconf. (full text, mbox, link).


Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Frank Küster <frank@kuesterei.ch>
To: Joey Hess <joeyh@debian.org>
Cc: 413509@bugs.debian.org, Steve Langasek <vorlon@debian.org>
Subject: Re: Bug#413509: database communication does not work
Date: Tue, 06 Mar 2007 10:58:14 +0100
Joey Hess <joeyh@debian.org> wrote:

> I don't know about all the other strangeness however. No segfaults or
> weird shell stuff reproduced here so far.

Hm, even *I* could not reproduce that segfault.  The other time there
was an endless loop which I stopped with kill, and later there were only
"expected" errors.

I can check whether your fixes are enough to make my problems
disappear.  Is a checkout of
svn://svn.debian.org/debconf/trunk/src/debconf the right thing to work
with? 

Thanks so far,
Frank

P.S. any idea why this has never caused problems before?  At least the
DESTROY message should have been observed by someone?  Or do all
technically skilled persons use the readline or dialog frontends?
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Information forwarded to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#413509; Package debconf. (full text, mbox, link).


Acknowledgement sent to Joey Hess <joeyh@debian.org>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Joey Hess <joeyh@debian.org>
To: Frank Küster <frank@kuesterei.ch>, 413509@bugs.debian.org
Cc: Steve Langasek <vorlon@debian.org>
Subject: Re: Bug#413509: database communication does not work
Date: Tue, 6 Mar 2007 05:16:20 -0500
[Message part 1 (text/plain, inline)]
Frank Küster wrote:
> I can check whether your fixes are enough to make my problems
> disappear.  Is a checkout of
> svn://svn.debian.org/debconf/trunk/src/debconf the right thing to work
> with? 

Yes.

> P.S. any idea why this has never caused problems before?  At least the
> DESTROY message should have been observed by someone?  Or do all
> technically skilled persons use the readline or dialog frontends?

I suspect that very few people use the KDE frontend.

-- 
see shy jo
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#413509; Package debconf. (full text, mbox, link).


Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Frank Küster <frank@kuesterei.ch>
To: Joey Hess <joeyh@debian.org>
Cc: 413509@bugs.debian.org, Steve Langasek <vorlon@debian.org>
Subject: Re: Bug#413509: database communication does not work
Date: Tue, 06 Mar 2007 12:51:28 +0100
Joey Hess <joeyh@debian.org> wrote:

> Frank Küster wrote:
>> I can check whether your fixes are enough to make my problems
>> disappear.  Is a checkout of
>> svn://svn.debian.org/debconf/trunk/src/debconf the right thing to work
>> with? 
>
> Yes.

Great, it really fixes all issues I could reproduce earlier.  I have
tested "apt-get --reinstall install x11-comon" as well as "dpkg --purge
--force-depends x11-common; apt-get install x11-common".

>> P.S. any idea why this has never caused problems before?  At least the
>> DESTROY message should have been observed by someone?  Or do all
>> technically skilled persons use the readline or dialog frontends?
>
> I suspect that very few people use the KDE frontend.

I found that I prefer the GTK frontend over the dialog frontend, which I
used initially.  And I understood the question of proper debconf wording
better now that I use a graphical frontend.  When I installed etch on
this machine, I decided to give KDE a try, just for playing (but I think
I still like GTK better).

By the way, you wrote earlier that there's a bug in libqt-perl(?) and
your fix is only a workaround - should this be reported separately?

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Information forwarded to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#413509; Package debconf. (full text, mbox, link).


Acknowledgement sent to Joey Hess <joeyh@debian.org>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Joey Hess <joeyh@debian.org>
To: Frank Küster <frank@kuesterei.ch>, 413509@bugs.debian.org
Cc: Steve Langasek <vorlon@debian.org>
Subject: Re: Bug#413509: database communication does not work
Date: Tue, 6 Mar 2007 12:53:52 -0500
[Message part 1 (text/plain, inline)]
Frank Küster wrote:
> By the way, you wrote earlier that there's a bug in libqt-perl(?) and
> your fix is only a workaround - should this be reported separately?

Well, I'd have to dig through the docs to make sure it's not doing
something explicitly denied, and write a test case to be sure, but yes,
I think it's probably a bug.

-- 
see shy jo
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debconf Developers <debconf-devel@lists.alioth.debian.org>:
Bug#413509; Package debconf. (full text, mbox, link).


Acknowledgement sent to Frank Küster <frank@kuesterei.ch>:
Extra info received and forwarded to list. Copy sent to Debconf Developers <debconf-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Frank Küster <frank@kuesterei.ch>
To: Debian Bug Control Server <control@bugs.debian.org>
Cc: 413509@bugs.debian.org, Joey Hess <joeyh@debian.org>
Subject: Re: Bug#413509: database communication does not work
Date: Tue, 06 Mar 2007 19:18:33 +0100
clone 413509 -1
severity -1 normal
retitle -1 libqt-perl: behaves badly when DESTROY hooks are called before anything was displayed
reassign -1 libqt-perl
submitter -1 Joey Hess <joeyh@debian.org>
thanks

Joey Hess <joeyh@debian.org> wrote:

> Frank Küster wrote:
>> By the way, you wrote earlier that there's a bug in libqt-perl(?) and
>> your fix is only a workaround - should this be reported separately?
>
> Well, I'd have to dig through the docs to make sure it's not doing
> something explicitly denied, and write a test case to be sure, but yes,
> I think it's probably a bug.

This is what Joey wrote earlier:

,----
| This bug occurs because dpkg-preconfigure forks and the subprocess
| exits, calling Qt's DESTROY hooks. Apparently Qt behaves badly if the
| DESTROY hooks are called before it actually displays anything. I think
| this is a bug in libqt-perl, but I've committed a workaround to svn.
`----

I'm cloning/reassigning this, so that it isn't forgotten.  I hope you
don't mind setting you as the submitter?

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Bug 413509 cloned as bug 413716. Request was from Frank Küster <frank@kuesterei.ch> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Joey Hess <joeyh@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Frank Küster <frank@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #94 received at 413509-close@bugs.debian.org (full text, mbox, reply):

From: Joey Hess <joeyh@debian.org>
To: 413509-close@bugs.debian.org
Subject: Bug#413509: fixed in debconf 1.5.13
Date: Tue, 06 Mar 2007 19:02:03 +0000
Source: debconf
Source-Version: 1.5.13

We believe that the bug you reported is fixed in the latest version of
debconf, which is due to be installed in the Debian FTP archive:

debconf-doc_1.5.13_all.deb
  to pool/main/d/debconf/debconf-doc_1.5.13_all.deb
debconf-english_1.5.13_all.deb
  to pool/main/d/debconf/debconf-english_1.5.13_all.deb
debconf-i18n_1.5.13_all.deb
  to pool/main/d/debconf/debconf-i18n_1.5.13_all.deb
debconf-utils_1.5.13_all.deb
  to pool/main/d/debconf/debconf-utils_1.5.13_all.deb
debconf_1.5.13.dsc
  to pool/main/d/debconf/debconf_1.5.13.dsc
debconf_1.5.13.tar.gz
  to pool/main/d/debconf/debconf_1.5.13.tar.gz
debconf_1.5.13_all.deb
  to pool/main/d/debconf/debconf_1.5.13_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 413509@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joey Hess <joeyh@debian.org> (supplier of updated debconf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue,  6 Mar 2007 12:53:58 -0500
Source: debconf
Binary: debconf-english debconf-doc debconf-utils debconf-i18n debconf
Architecture: source all
Version: 1.5.13
Distribution: unstable
Urgency: low
Maintainer: Debconf Developers <debconf-devel@lists.alioth.debian.org>
Changed-By: Joey Hess <joeyh@debian.org>
Description: 
 debconf    - Debian configuration management system
 debconf-doc - debconf documentation
 debconf-english - small footprint English-only debconf
 debconf-i18n - full internationalization support for debconf
 debconf-utils - debconf utilities
Closes: 413509
Changes: 
 debconf (1.5.13) unstable; urgency=low
 .
   [ Man pages translations ]
     - French updated
 .
   [ Joey Hess ]
   * Fix kde frontend to "show" noninteractive elements so they can handle
     setting their values appropriately. Closes: #413509 (except possibly for
     the strange and unreproducible bits)
   * Avoid initialising kde until the first question is found that needs to be
     displayed using it. The Qt module could fail in some ugly ways during
     destruction if kde stuff was initialised but never used. (See #413509)
Files: 
 b5c428ceadbade13ea10da7f937e01fb 812 admin optional debconf_1.5.13.dsc
 15363f657cb590c031fbc8802722baa2 652480 admin optional debconf_1.5.13.tar.gz
 4ec4812c145c9c8309dfdbd3a8243534 148352 admin important debconf_1.5.13_all.deb
 5aeb8cc2ff4d4000efc7bbcbc5fe1bfa 151326 admin important debconf-i18n_1.5.13_all.deb
 e7adcfb80b6e949830b1ef9c1baac339 852 admin extra debconf-english_1.5.13_all.deb
 d11ab9163f09b4f9fddeee0892438ef9 194602 doc optional debconf-doc_1.5.13_all.deb
 1764355802ed5e55a1478f2574e2c1af 40812 devel optional debconf-utils_1.5.13_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF7bcR2tp5zXiKP0wRAniLAJwK1IBgqhFui1lsjL5IdBrIruX4vQCfdZE9
H0AjWLMADewbtnY9opR/GNM=
=+BWB
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 24 Jun 2007 13:41:03 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 5 03:11:14 2018; 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.