xdotool segfaults if DISPLAY is not set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xdotool (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When using xdotool from a command line with no DISPLAY environment variable it segfaults:
$ xdotool key alt+Tab
Error: Can't open display: (null)
Segmentation fault (core dumped)
After printing the first error message it should exit with EXIT_FAILURE, and not segfault.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: xdotool 1:2.20110530.
ProcVersionSign
Uname: Linux 3.2.0-48-generic i686
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu17.3
Architecture: i386
Date: Fri Jun 21 13:20:40 2013
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
MarkForUpload: True
SourcePackage: xdotool
UpgradeStatus: Upgraded to precise on 2012-05-08 (408 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.