Ctrl-\ after rejected key-encryption password causes hang
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssl (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: openssl
Create the following shell script:
#!/bin/sh
openssl genrsa -aes256
And run it.
After a key is generated, you will be prompted for an encryption password. Press enter. Since empty passwords are not allowed here, you will be prompted a second time. Now press Ctrl-\. Openssl then falls into an infinite loop of repeatedly displaying the password prompt without responding to user input.
This behavior does *not* seem to occur if:
1. You run openssl directly from the shell rather than from a shell script; or
2. You press Ctrl-\ immediately without first having a password rejected; or
3. You use an openssl built from upstream sources. Hence, this seems to be a Debian- or Ubuntu-specific bug.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: openssl 0.9.8o-1ubuntu4.1
ProcVersionSign
Uname: Linux 2.6.35-22-virtual i686
Architecture: i386
Date: Fri Oct 22 16:33:12 2010
Ec2AMI: ami-508c7839
Ec2AMIManifest: (unknown)
Ec2Availability
Ec2InstanceType: t1.micro
Ec2Kernel: aki-407d9529
Ec2Ramdisk: unavailable
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: openssl
Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner. There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates.
I tried to reproduce your issue on Precise, but I do not have the problem.
It would help us a lot if you could test it on a currently supported Ubuntu version. When you test it and it is still an issue, kindly upload the updated logs by running apport-collect 665209 and any other logs that are relevant for this particular issue.