RaiMan / SikuliX-2014

SikuliX version 1.1.2 (until February 2018)
http://sikulix.com
806 stars 234 forks source link

xdotool parameter should be -v instead of version in LinuxUtil.java - Segmentation fault #253

Closed pla1 closed 7 years ago

pla1 commented 7 years ago

Hi,

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:~$ 

Thank-you!

PLA

RaiMan commented 7 years ago

Thanks for finding:

made a bug: https://bugs.launchpad.net/sikuli/+bug/1687263

... and will fix it in version 1.1.2

RaiMan commented 7 years ago

fixed per today: see https://raiman.github.io/SikuliX-2014/nightly.html