FS#48287 - [aircrack-ng] Illegal instruction when running airodump-ng

Attached to Project: Community Packages
Opened by Ivan (Amethyst) - Sunday, 21 February 2016, 13:20 GMT
Last edited by Jonathan Steel (jsteel) - Tuesday, 08 May 2018, 18:04 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jonathan Steel (jsteel)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

Gives an error while airodump-ng used with antenna.
There are no errors in previous version of program.

Additional info:
* package version(s)
aircrack-ng-1.2rc4-1-x86_64.pkg.tar.xz

* config and/or log files etc.
1] 5914 illegal hardware instruction sudo airodump-ng wlan1
➜ ~

Steps to reproduce:
run "airodump-ng wlan1"
This task depends upon

Closed by  Jonathan Steel (jsteel)
Tuesday, 08 May 2018, 18:04 GMT
Reason for closing:  Fixed
Comment by Jonathan Steel (jsteel) - Sunday, 21 February 2016, 15:45 GMT
  • Field changed: Category (Packages → Upstream Bugs)
Most likely an upstream bug rather than a packaging issue.
Comment by Jonathan Steel (jsteel) - Sunday, 21 February 2016, 19:05 GMT Comment by Florian (Cvetko) - Friday, 26 February 2016, 06:40 GMT
Hi
I had the same issue, the solution is to downgrade.
# yaourt -S downgrade
# downgrade aircrack-ng
choose de previous version et everything sould be ok.
regards
Comment by Rosen Penev (Mangix) - Monday, 29 February 2016, 02:45 GMT
this is definitely a packaging issue. I just rebuilt using the stock PKGBUILD and it worked fine.
Comment by Jonathan Steel (jsteel) - Monday, 29 February 2016, 08:45 GMT
If you read my previous link, you would have found:
http://trac.aircrack-ng.org/ticket/1679
Comment by Alexandre Bolelli Soares (Semeion) - Monday, 29 February 2016, 14:00 GMT
yes, rc4 is with this and others problems here too, i am using previous version.
Comment by Rosen Penev (Mangix) - Monday, 29 February 2016, 23:41 GMT
oh so the bug is that the machine this was built on has AVX. well, hope this gets fixed soon.
Comment by Jonathan Steel (jsteel) - Tuesday, 01 March 2016, 10:36 GMT
It works fine on my PC. It was built on http://pkgbuild.com. I have an idea which might work around the issue for now (upstream don't seen to have committed any changes in the last few days) but I'm not sure what other implications my change may have. I'll try and find a computer that has this problem, test my workaround and post a link to the new package here for at least one other person to test before updating the package in [community].
Comment by Jonathan Steel (jsteel) - Tuesday, 01 March 2016, 18:50 GMT
My idea didn't work, so I rebuilt on a computer without AVX. Please try 1.2rc4-2. People with AVX may see a warning that AVX support isn't compiled in. Hopefully the next upstream release will fix this.
Comment by Rosen Penev (Mangix) - Wednesday, 02 March 2016, 01:10 GMT
works here.
Comment by Levente Polyak (anthraxx) - Friday, 22 April 2016, 21:49 GMT
this should not be a hard one... also IMHO I totally understand upstream if they enable that as it -mtune=native compiles the best optimized code for the building machine.
You can look at the aircrack configure or Makefile thingie and detect where they pass -mtune=native which overrides our default configs from makepkg.conf (-mtune=generic) [maybe it could also be -march instead of -mtune, look for both).

To be fair with upstream: I would most likely close the upstream bug as a downstream packaging issue (of cause if they provide some sane mechanics to disable there native tuning).
Comment by Jonathan Steel (jsteel) - Wednesday, 11 April 2018, 21:24 GMT
1.2rc5-1 has been pushed to [community-testing]. The upstream bug reports above are down for me, so I cannot see (quickly) if this issue has been resolved upstream. I don't have a PC without AVX to test this on, so if someone can confirm if 1.2rc5-1 is OK on a non-AVX CPU (lscpu | grep avx) that would be great. If I don't hear anything in a week I'll assume it's OK and close this.
Comment by Levente Polyak (anthraxx) - Wednesday, 11 April 2018, 22:19 GMT
you can just grep for AVX instructions via objdump if you want to "test" for AVX
Comment by Levente Polyak (anthraxx) - Wednesday, 11 April 2018, 22:29 GMT
The testing version looks ok in terms of instructions and it uses separated libexec extensions for the instruction specific things...
but its installed into a wrong directory that needs adjustment:

Install Prefix: /usr/local

the intsall prefix should be /usr

> find usr/local
usr/local
usr/local/libexec
usr/local/libexec/aircrack-ng
usr/local/libexec/aircrack-ng/aircrack-ng--sse2
usr/local/libexec/aircrack-ng/aircrack-ng--avx
usr/local/libexec/aircrack-ng/aircrack-ng--generic
usr/local/libexec/aircrack-ng/aircrack-ng--avx2

https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html
Comment by Jonathan Steel (jsteel) - Thursday, 12 April 2018, 07:06 GMT
OK thanks for spotting that. Fixed with 1.2rc5-2.

Loading...