[1.1.1] Linux: xdotool check: CommandLine.parse("xdotool -v") --- fixed 1.1.2 2017-05-01

Bug #1687263 reported by RaiMan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

*** based on: https://github.com/RaiMan/SikuliX-2014/issues/253
---------------------

I think CommandLine.parse("xdotool version") should be CommandLine.parse("xdotool -v") in the checkFeatureAvailability method of LinuxUtil.java.

On Ubuntu 14.04 and Ubuntu 16.04 xdotool version fails with a segmentation fault.

It is a bug in xdotool that any unknown parameter that is passed causes a segfault. See my tests below:

htplainf@ub-mguibot:~$ cat /etc/issue
Ubuntu 16.04.2 LTS \n \l
htplainf@ub-mguibot:~$ xdotool -v
xdotool version 3.20150503.1
htplainf@ub-mguibot:~$ xdotool version
Segmentation fault (core dumped)
htplainf@ub-mguibot:~$ xdotool any_unknown_param_causes_segfault
Segmentation fault (core dumped)
htplainf@ub-mguibot:~$

RaiMan (raimund-hocke)
description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Invalid
RaiMan (raimund-hocke)
Changed in sikuli:
status: Invalid → Fix Committed
importance: Undecided → Critical
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.2
summary: - [1.1.1] Linux: xdotool check: CommandLine.parse("xdotool -v")
+ [1.1.1] Linux: xdotool check: CommandLine.parse("xdotool -v") --- fixed
+ 1.1.2 2017-05-01
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.