Debian Bug report logs -
#744090
aptitude: Crashes occassionally in TUI if /sys is not mounted: Uncaught exception: Unable to read from stdin: No such file or directory
Package: aptitude
Version: 0.6.10-1
Severity: normal
Control: found -1 0.6.8.2-1.2
Hi,
To demo the aptitude TUI, I occassionally run it in a fresh chroot
(without my individual settings), usually with "cowbuilder
--login". cowbuilder/pbuilder mounts /proc and /dev/pts, but doesn't
seem to mount /sys.
In such an environment, aptitude crashes occassionally during
interactive usage as follows:
root@nemo2:/# aptitude -u
Uncaught exception: Unable to read from stdin: No such file or directory
root@nemo2:/#
Some more details:
* Does not crash immediately, but within minutes of normal interactive
usage.
* "-u" seems not relevant.
* Not sure what exactly triggers it. Seems to also happen when I don't
touch any keys, but I'm not 100% sure.
* Does not happen if I mount /sys inside the chroot with "mount -t sysfs
none /sys" beforehand.
* Already happenend with 0.6.8.2-1.2 back in November, but I'm not sure
if it crashed with the same error message. IIRC it segfaulted back
then. Didn't have time to investigate back then as it initially
happened during a presentation.
-- Package-specific info:
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (900, 'testing'), (899, 'testing-proposed-updates'), (600, 'stable'), (500, 'proposed-updates'), (200, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.14-rc7-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages aptitude depends on:
ii aptitude-common 0.6.10-1
ii libapt-pkg4.12 1.0
ii libboost-iostreams1.54.0 1.54.0-5
ii libc6 2.18-4
ii libcwidget3 0.5.17-1
ii libept1.4.12 1.0.12
ii libgcc1 1:4.8.2-18
ii libncursesw5 5.9+20140118-1
ii libsigc++-2.0-0c2a 2.2.11-3
ii libsqlite3-0 3.8.4.1-1
ii libstdc++6 4.8.2-18
ii libtinfo5 5.9+20140118-1
ii libxapian22 1.2.17-1
ii zlib1g 1:1.2.8.dfsg-1
Versions of packages aptitude recommends:
pn apt-xapian-index <none>
ii aptitude-doc-en [aptitude-doc] 0.6.10-1
ii libparse-debianchangelog-perl 1.2.0-1
ii sensible-utils 0.0.9
Versions of packages aptitude suggests:
ii debtags 1.12
ii tasksel 3.20
-- no debconf information
Acknowledgement sent
to Hendrik Sattler <[email protected]>:
Extra info received and forwarded to list. Copy sent to Aptitude Development Team <[email protected]>.
(Mon, 10 Nov 2014 20:24:05 GMT) (full text, mbox, link).
Acknowledgement sent
to "Manuel A. Fernandez Montecelo" <[email protected]>:
Extra info received and forwarded to list. Copy sent to Aptitude Development Team <[email protected]>.
(Wed, 27 Jan 2016 16:42:22 GMT) (full text, mbox, link).
Subject: Re: aptitude: Crashes occassionally in TUI if /sys is not mounted:
Uncaught exception: Unable to read from stdin: No such file or directory
Date: Wed, 27 Jan 2016 16:41:43 +0000
Control: tags -1 + moreinfo
Hi both,
2014-04-05 18:43 Axel Beckert:
>Package: aptitude
>Version: 0.6.10-1
>Severity: normal
>Control: found -1 0.6.8.2-1.2
>
>Hi,
>
>To demo the aptitude TUI, I occassionally run it in a fresh chroot
>(without my individual settings), usually with "cowbuilder
>--login". cowbuilder/pbuilder mounts /proc and /dev/pts, but doesn't
>seem to mount /sys.
>
>In such an environment, aptitude crashes occassionally during
>interactive usage as follows:
>
>root@nemo2:/# aptitude -u
>Uncaught exception: Unable to read from stdin: No such file or directory
>root@nemo2:/#
>
>Some more details:
>
>* Does not crash immediately, but within minutes of normal interactive
> usage.
>
>* "-u" seems not relevant.
>
>* Not sure what exactly triggers it. Seems to also happen when I don't
> touch any keys, but I'm not 100% sure.
>
>* Does not happen if I mount /sys inside the chroot with "mount -t sysfs
> none /sys" beforehand.
>
>* Already happenend with 0.6.8.2-1.2 back in November, but I'm not sure
> if it crashed with the same error message. IIRC it segfaulted back
> then. Didn't have time to investigate back then as it initially
> happened during a presentation.
2014-11-10 20:14 Hendrik Sattler:
>Package: aptitude
>Version: 0.6.11-1
>Followup-For: Bug #744090
>
>Dear Maintainer,
>
>Sadly, I cannot remount sysfs in a vserver instance, so the work-around in the
>initial report do not work.
>
>This is a very annoying problem and usually happens when scrolling through the list of update items.
Did you experience this problem lately, esp. with more recent versions?
If so, have you found a way to reproduce it?
I am a bit baffled about this because /sys shouldn't affect the
behaviour of stdin.
--
Manuel A. Fernandez Montecelo <[email protected]>