--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: x11-common: config script hangs or fails
- From: Frank Küster <frank@debian.org>
- Date: Sat, 03 Mar 2007 18:12:39 +0100
- Message-id: <87bqja8d4o.fsf@riesling.zuerich.kuesterei.ch>
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)
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
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): --> 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 9.
debconf (developer): --> 0 ok
debconf (developer): <-- GET x11-common/xwrapper/nice_value
debconf (developer): --> 0
debconf (developer): <-- SET x11-common/xwrapper/nice_value 0
debconf (developer): --> 0 value set
debconf (developer): <-- FSET x11-common/xwrapper/nice_value seen false
debconf (developer): --> 0 false
debconf (developer): <-- FSET x11-common/xwrapper/nice_value/error seen false
debconf (developer): --> 0 false
debconf (developer): <-- INPUT critical x11-common/xwrapper/nice_value/error
debconf (developer): --> 0 question will be asked
debconf (developer): <-- GO
debconf (developer): --> 0 ok
debconf (developer): <-- INPUT low x11-common/xwrapper/nice_value
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 17.
debconf (developer): --> 0 ok
debconf (developer): <-- GET x11-common/xwrapper/nice_value
debconf (developer): --> 0
debconf (developer): <-- SET x11-common/xwrapper/nice_value 0
debconf (developer): --> 0 value set
debconf (developer): <-- FSET x11-common/xwrapper/nice_value seen false
debconf (developer): --> 0 false
debconf (developer): <-- FSET x11-common/xwrapper/nice_value/error seen false
debconf (developer): --> 0 false
debconf (developer): <-- INPUT critical x11-common/xwrapper/nice_value/error
debconf (developer): --> 0 question will be asked
debconf (developer): <-- GO
debconf (developer): QTF: -- LEAVE EVENTLOOP --------
dpkg: error processing x11-common (--configure):
subprocess post-installation script killed by signal (Segmentation fault)
Setting up udev (0.105-2) ...
/boot/initrd.img-2.6.18-4-686 has been altered. Cannot update.
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
Errors were encountered while processing:
x11-common
xserver-xorg-core
xserver-xorg-video-neomagic
xserver-xorg-video-all
--- End Message ---
--- Begin Message ---
- To: Frank Küster <frank@kuesterei.ch>, 413249-done@bugs.debian.org
- Cc: Brice Goglin <Brice.Goglin@ens-lyon.org>
- Subject: Re: Bug#413249: "wrong returnvalue logic in config script"
- From: Julien Cristau <jcristau@debian.org>
- Date: Sat, 12 Jul 2008 12:59:16 +0200
- Message-id: <20080712105843.GA18851@patate.is-a-geek.org>
- In-reply-to: <87d4zxp8pp.fsf@riesling.zuerich.kuesterei.ch>
- References: <4671A7CE.3070409@ens-lyon.org> <87d4zxp8pp.fsf@riesling.zuerich.kuesterei.ch>
Version: 1:7.2-2
On Fri, Jun 15, 2007 at 16:56:34 +0200, Frank Küster wrote:
> Brice Goglin <Brice.Goglin@ens-lyon.org> wrote:
>
> > Hi Frank,
> >
> > What's the status of this x11-common bug today? (after fixing or
> > ignoring your debconf problems).
>
> It seems no one has addressed it.
>
> > It's kind of hard to understand which
> > fixes are needed in x11-common in the end. Do you still need your fix
> > from [1]?
>
> What do you mean with "need"? The fix in that message didn't solve the
> underlying problem which originated in debconf (and has since been
> solved in etch). Instead, it fixed the "wrong returnvalue logic in
> the config script".
>
> Nobody has anywhere in the bug stated that the logic is not wrong. So
> either you just apply my fix, or you investigate further why it still
> works. I suspect that it works just because if the question is not
> shown, it fails to break, but then validates the value in SAFE, which is
> 0 in this case.
>
I think this was fixed by Colin Watson a while ago.
Quoting from the changelog entry:
xorg (1:7.2-2) experimental; urgency=low
[...]
[ Colin Watson ]
* debian/xserver-xorg.config.in: Improve expr return code handling in
validate_nice_value; don't use run function when we need to check
db_input's return value (LP: #68267).
[...]
-- David Nusinow <dnusinow@debian.org> Sun, 15 Apr 2007 11:44:28 -0400
Closing the bug, thanks for your report.
Cheers,
Julien
--- End Message ---