#654938 aptitude gets uncaught exception by keypress in search box

Package:
aptitude
Source:
aptitude
Description:
terminal-based package manager
Submitter:
Goetz Hoffart
Date:
2015-12-16 22:12:05 UTC
Severity:
normal
#654938#5
Date:
2012-01-06 23:02:26 UTC
From:
To:
When using 'aptitude' within an SSH session initiated within "iTerm.app"
(Mac OS X program) and I press /^u ("/", "^", "u"), it crashes:

	Uncaught exception: Unable to read from stdin: Success

If I press "/", "^", "Space", "u" instead all works fine. This crash only
happens with iTerm, not with the standard Terminal.app.

But keypresses of what kind ever shouldn't lead to an uncaught exception,
IMO.

#654938#10
Date:
2015-12-12 15:17:10 UTC
From:
To:
Hi Goetz,

2012-01-06 23:02 Goetz Hoffart:

Thanks for the report.

Can you (or any other user with the same combination of tools) still
reproduce this with recent versions?

I couldn't using Debian, and I use this feature fairly often and never
experienced this, and I suspect that many other people also use it and
don't remember having seen other reports like that.

I also tried within tmux (TERM=screen, as in the system/session where
you reported this).

I wonder if it's something specific about that program, or locales.


Cheers.

#654938#17
Date:
2015-12-12 15:42:17 UTC
From:
To:
Yes. Still happens/crashed with the now newest OS X (10.11.2), newest iTerm (2.1.4) and both of aptitude of Debian 6.0.10 LTS _and_ aptitude of Debian 7.9. I can reproduce this, like described. No ‚screen‘ or ‚tmux‘ involved, but it crashes also within screen.

If I can help with further details, please instruct me.

Regards
Götz

#654938#22
Date:
2015-12-16 22:08:21 UTC
From:
To:
2015-12-12 15:42 Götz Hoffart:

Hmm, thanks.  So can you please:

- install aptitude-dbg, libcwidget*-dbg, valgrind

- run inside valgrind (the same aptitude command, with "valgrind" in the
  beginning of the line)

- repeat the actions to crash

- paste the output of valgrind in this bug report


Cheers.