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

version graph

Package: aptitude; Maintainer for aptitude is Aptitude Development Team <[email protected]>; Source for aptitude is src:aptitude (PTS, buildd, popcon).

Reported by: Axel Beckert <[email protected]>

Date: Thu, 10 Apr 2014 00:09:02 UTC

Severity: normal

Tags: moreinfo

Found in versions aptitude/0.6.10-1, aptitude/0.6.8.2-1.2, aptitude/0.6.11-1

Reply or subscribe to this bug.

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


Report forwarded to [email protected], [email protected], Aptitude Development Team <[email protected]>:
Bug#744090; Package aptitude. (Thu, 10 Apr 2014 00:09:06 GMT) (full text, mbox, link).


Acknowledgement sent to Axel Beckert <[email protected]>:
New Bug report received and forwarded. Copy sent to [email protected], Aptitude Development Team <[email protected]>. (Thu, 10 Apr 2014 00:09:06 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Axel Beckert <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: aptitude: Crashes occassionally in TUI if /sys is not mounted: Uncaught exception: Unable to read from stdin: No such file or directory
Date: Sat, 05 Apr 2014 19:43:21 +0200
[Message part 1 (text/plain, inline)]
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:
[Message part 2 (text/plain, attachment)]
[Message part 3 (text/plain, inline)]
-- 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

Marked as found in versions aptitude/0.6.8.2-1.2. Request was from Axel Beckert <[email protected]> to [email protected]. (Thu, 10 Apr 2014 00:09:06 GMT) (full text, mbox, link).


Information forwarded to [email protected], Aptitude Development Team <[email protected]>:
Bug#744090; Package aptitude. (Mon, 10 Nov 2014 20:24:05 GMT) (full text, mbox, link).


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).


Message #12 received at [email protected] (full text, mbox, reply):

From: Hendrik Sattler <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: aptitude: Bug also present in Strato VServer
Date: Mon, 10 Nov 2014 21:14:33 +0100
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.

Regards,

HS


-- Package-specific info:
Terminal: xterm
$DISPLAY is set.
which aptitude: /usr/bin/aptitude

aptitude version information:
aptitude 0.6.11 compiled at Jun  9 2014 20:46:57
Compiler: g++ 4.8.3
Compiled against:
  apt version 4.12.0
  NCurses version 5.9
  libsigc++ version: 2.2.11
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 5.9.20140913
  cwidget version: 0.5.17
  Apt version: 4.12.0

aptitude linkage:
	linux-vdso.so.1 (0x00007fff2e463000)
	libapt-pkg.so.4.12 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 (0x00007f3ab4289000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f3ab4053000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f3ab3e28000)
	libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007f3ab3c22000)
	libcwidget.so.3 => /usr/lib/x86_64-linux-gnu/libcwidget.so.3 (0x00007f3ab390c000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f3ab3643000)
	libboost_iostreams.so.1.55.0 => /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.55.0 (0x00007f3ab342b000)
	libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007f3ab301a000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3ab2dfc000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3ab2af1000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3ab27f0000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3ab25d9000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3ab2230000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f3ab202d000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3ab1e28000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f3ab1c0d000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f3ab19fd000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f3ab17d9000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3ab15d1000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f3ab13cb000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f3ab4c3d000)

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aptitude depends on:
ii  aptitude-common           0.6.11-1
ii  libapt-pkg4.12            1.0.9.3
ii  libboost-iostreams1.55.0  1.55.0+dfsg-3
ii  libc6                     2.19-12
ii  libcwidget3               0.5.17-2
ii  libgcc1                   1:4.9.1-16
ii  libncursesw5              5.9+20140913-1
ii  libsigc++-2.0-0c2a        2.4.0-1
ii  libsqlite3-0              3.8.7-1
ii  libstdc++6                4.9.1-16
ii  libtinfo5                 5.9+20140913-1
ii  libxapian22               1.2.19-1

Versions of packages aptitude recommends:
pn  aptitude-doc-en | aptitude-doc  <none>
ii  libparse-debianchangelog-perl   1.2.0-1.1
ii  sensible-utils                  0.0.9

Versions of packages aptitude suggests:
ii  apt-xapian-index  0.47
ii  debtags           1.12.2
ii  tasksel           3.29

-- no debconf information



Information forwarded to [email protected], Aptitude Development Team <[email protected]>:
Bug#744090; Package aptitude. (Wed, 27 Jan 2016 16:42:22 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).


Message #17 received at [email protected] (full text, mbox, reply):

From: "Manuel A. Fernandez Montecelo" <[email protected]>
To: Axel Beckert <[email protected]>, Hendrik Sattler <[email protected]>, Debian Bug Tracking System <[email protected]>
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]>



Added tag(s) moreinfo. Request was from "Manuel A. Fernandez Montecelo" <[email protected]> to [email protected]. (Wed, 27 Jan 2016 16:42:22 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Mon Nov 11 14:27:34 2024; Machine Name: bembo

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.