{"action":"created","issue":{"url":"https://api.github.com/repos/aircrack-ng/aircrack-ng/issues/1924","repository_url":"https://api.github.com/repos/aircrack-ng/aircrack-ng","labels_url":"https://api.github.com/repos/aircrack-ng/aircrack-ng/issues/1924/labels{/name}","comments_url":"https://api.github.com/repos/aircrack-ng/aircrack-ng/issues/1924/comments","events_url":"https://api.github.com/repos/aircrack-ng/aircrack-ng/issues/1924/events","html_url":"https://github.com/aircrack-ng/aircrack-ng/issues/1924","id":339669055,"node_id":"MDU6SXNzdWUzMzk2NjkwNTU=","number":1924,"title":"Aircrack segfault when engine .so doesn't open","user":{"login":"ChrisLundquist","id":181256,"node_id":"MDQ6VXNlcjE4MTI1Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/181256?v=4","gravatar_id":"","url":"https://api.github.com/users/ChrisLundquist","html_url":"https://github.com/ChrisLundquist","followers_url":"https://api.github.com/users/ChrisLundquist/followers","following_url":"https://api.github.com/users/ChrisLundquist/following{/other_user}","gists_url":"https://api.github.com/users/ChrisLundquist/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisLundquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisLundquist/subscriptions","organizations_url":"https://api.github.com/users/ChrisLundquist/orgs","repos_url":"https://api.github.com/users/ChrisLundquist/repos","events_url":"https://api.github.com/users/ChrisLundquist/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisLundquist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-10T02:19:18Z","updated_at":"2018-07-10T03:07:41Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"In the old world I would invoke `aircrack-ng--avx2`.\r\nI have a check out, updated to master, and recompiled and saw we don't have this target anymore and we use shared objects.\r\n\r\nI only ran `./configure` and `make` so `make install` never happened.\r\n\r\nThe library it wanted was here.\r\n```\r\nfind ~/aircrack-ng/ -name \"libaircrack-crypto-x86-avx2.so\"\r\n/home/clundquist/aircrack-ng/src/aircrack-crypto/.libs/libaircrack-crypto-x86-avx2.so\r\n```\r\n\r\n```\r\n$ ~/aircrack-ng/src/aircrack-ng  deduped.hashcat -w ~/dictionaries/rockyou.txt --debug 7\r\nCould not open '/usr/local/lib/libaircrack-crypto-x86-avx2.so'.\r\nOpening deduped.hashcat\r\nRead 130 packets.\r\n\r\n   #  BSSID              ESSID                     Encryption\r\n\r\n   1  AE:4E:3F:DA:71:40  1221#207-5G               WPA (1 handshake)\r\n# ...\r\n 130  90:94:E4:FC:D7:88  yoga for bhoga            WPA (1 handshake)\r\n\r\nIndex number of target network ? 130\r\n\r\nOpening deduped.hashcat\r\nSegmentation faultlease wait...\r\n```\r\nNote `Could not open '/usr/local/lib/libaircrack-crypto-x86-avx2.so'.`\r\n\r\n```\r\n(lldb) bt\r\n* thread #1, name = 'aircrack-ng', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)\r\n  * frame #0: 0x0000000000000000\r\n    frame #1: aircrack-ng`main(argc=<unavailable>, argv=<unavailable>) at aircrack-ng.c:6968\r\n    frame #2: libc.so.6`__libc_start_main(main=(aircrack-ng`main at aircrack-ng.c:5677), argc=4, argv=0x00007fffffffe408, init=<unavailable>, fini=<unavailable>, rtld_fini=<unavailable>, stack_end=0x00007fffffffe3f8) at libc-start.c:310\r\n    frame #3: 0x000055555555c09a aircrack-ng`_start + 42\r\n(lldb) frame select 1\r\nframe #1: aircrack-ng`main(argc=<unavailable>, argv=<unavailable>) at aircrack-ng.c:6968\r\n   6965\t\tif (ap_cur->crypt == 3)\r\n   6966\t\t{\r\n   6967\t\tcrack_wpa:\r\n-> 6968\t\t\tdso_ac_crypto_engine_init(&engine);\r\n   6969\t\r\n   6970\t\t\tif (opt.dict == NULL && db == NULL)\r\n   6971\t\t\t{\r\n```\r\n```\r\n(lldb) print engine\r\n(ac_crypto_engine_t) $0 = {\r\n  essid = 0x0000000000000000\r\n  essid_length = 0\r\n  thread_data = {\r\n    [0] = 0x0000000000000000\r\n     # ...\r\n    [255] = 0x00000000000000\r\n```\r\n\r\nIt seems like we should probably bail if we can't initialize our engines, or fall back to `-generic` with warning. Alternatively, we could search for `.libs/libaircrack-crypto-x86-avx2.so` relative to the executable as a work around for source checkouts.\r\n\r\nI'm sure that sooner or later, folks will forget to `make install` when working on the engine and test a different version than expected."},"comment":{"url":"https://api.github.com/repos/aircrack-ng/aircrack-ng/issues/comments/403685315","html_url":"https://github.com/aircrack-ng/aircrack-ng/issues/1924#issuecomment-403685315","issue_url":"https://api.github.com/repos/aircrack-ng/aircrack-ng/issues/1924","id":403685315,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzY4NTMxNQ==","user":{"login":"jbenden","id":73767,"node_id":"MDQ6VXNlcjczNzY3","avatar_url":"https://avatars3.githubusercontent.com/u/73767?v=4","gravatar_id":"","url":"https://api.github.com/users/jbenden","html_url":"https://github.com/jbenden","followers_url":"https://api.github.com/users/jbenden/followers","following_url":"https://api.github.com/users/jbenden/following{/other_user}","gists_url":"https://api.github.com/users/jbenden/gists{/gist_id}","starred_url":"https://api.github.com/users/jbenden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbenden/subscriptions","organizations_url":"https://api.github.com/users/jbenden/orgs","repos_url":"https://api.github.com/users/jbenden/repos","events_url":"https://api.github.com/users/jbenden/events{/privacy}","received_events_url":"https://api.github.com/users/jbenden/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T03:07:41Z","updated_at":"2018-07-10T03:07:41Z","author_association":"COLLABORATOR","body":"You have to either:\r\n\r\n1. Install it. (obviously, you don't wish too. lol)\r\n2. Run from INSIDE the development folder path.\r\n\r\nYou probably are looking for option two, so be inside of `~/aircrack-ng` and then run `./src/aircrack-ng`."}}
{"actor":{"display_login":"jbenden"}}