xdotool segfaults if DISPLAY is not set

Bug #1193318 reported by Kasper Dupont
10
This bug affects 2 people
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.1-3ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-48.74-generic 3.2.46
Uname: Linux 3.2.0-48-generic i686
NonfreeKernelModules: nvidia
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)

Revision history for this message
Kasper Dupont (ubuntu-launchpad-feb) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xdotool (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.