Segmentation fault (core dumped) oclHachCat-plus v 0.14
#1
hi every one i have a problem:
i am using ubuntu 12.04 on alien hardware with ati graphics card.
here are some describtions :
Code:
root@whiteshadow:~# fglrxinfo
display: :0  screen: 0                                                                                                      
OpenGL vendor string: Advanced Micro Devices, Inc.                                                        
OpenGL renderer string: ATI Mobility Radeon HD 5800 Series                                      
OpenGL version string: 4.2.12217 Compatibility Profile Context 12.104
and also
Code:
[fglrx] module loaded - fglrx 12.10.5 [Mar 28 2013] with 2 minors
i have installed the fglrx modules and ran the oclhashcat-plus64.bin according to the manual on .hccap file
but every time i am trying to run it to crack wpa converted files i get this:
Code:
/root/Downloads/oclHashcat-plus-0.14/oclHashcat-plus64.bin  -a 3 -m 2500 /root/out.hcap.hccap  /var/whiteshadow/dictionary/test1_25/test1_25.txt
Segmentation fault (core dumped)
when i have checked the log file i found :
Code:
May 30 07:21:41 whiteshadow kernel: [ 1338.973513] oclHashcat-plus[4602]: segfault at fffffffffffffff8 ip 00007f75448adbc3 sp 00007fff5d7952d8 error 7 in libstdc++.so.6.0.16[7f754480f000+e2000]
please help me to sort this out
thanks in advance
tux
#2
Hey tux,
- does those crashes happen only w/ a specifc hash type (mode 2500) or others too?
- could you please try to use the hccap example http://hashcat.net/misc/example_hashes/hashcat.hccap and a (smaller) dictionary w/ 'hashcat!' (w/o quotes) included?
- could you please run the plus oclExample*.sh commands and see if you have problems also for those?
- try to run oclHashcat-plus32.bin on the same system ans see if it reports same crash

We need to pinpoint this problem a little bit more... when exactly it happens.

BTW: are you using the "Catalyst 13.1 -exact-" driver version as recommended here: http://hashcat.net/oclhashcat-plus/ ??? If not, if possible try that one
#3
hi philsmd,
# i have tried only on wpa cause thats the only one i need.
# i have run the exaple.sh files and i am getting the same issue
# same goes for oclhashcat-plus32.bin - segfault
# about the driver - i am using 13.4 because amd don't have it on their web page , but i am willing to try 13.1 if you have the link
here are the outputs for examples:
Code:
/oclExample0.sh
./oclExample0.sh: line 1:  4026 Segmentation fault      (core dumped) ./oclHashcat-plus64.bin -t 32 -a 7 example0.hash ?a?a?a?a example.dict
[/code ]

and another one :
[code]
oclExample400.sh
./oclExample400.sh: line 1:  4032 Broken pipe             cat example.dict
      4033 Segmentation fault      (core dumped) | ./oclHashcat-plus64.bin -m 400 example400.hash

and the last but not the least :
Code:
/oclExample500.sh
./oclExample500.sh: line 1:  4122 Segmentation fault      (core dumped) ./oclHashcat-plus64.bin -m 500 example500.hash example.dict

thanks again
#4
I think it is this one: http://support.amd.com/us/gpudownload/wi...6&rev=13.1

UPDATE: please also try to run:
Code:
./oclHashcat-plus64.bin -h
does this also crash?
#5
(05-30-2013, 02:07 PM)philsmd Wrote: I think it is this one: http://support.amd.com/us/gpudownload/wi...6&rev=13.1

UPDATE: please also try to run:
Code:
./oclHashcat-plus64.bin -h
does this also crash?

no it doesn't
i have also found the driver and downgraded it to 13.1 as you said befoe - but no luck Sad
#6
We need to investigate this more, could you please join us in irc: http://webchat.freenode.net/?channels=hashcat

Please query me (philsmd) there and we can see if we can sort this problem out faster then posting here every few seconds or so. Please

The solution (hopefully we get it soon) will be posted here of course later on.
Thx
#7
OK............... so after very long discussions and chats with philsmd, and after very long night of search for asnwer/debug , i found the way TO MAKE IT WORK!!!!!!
here is short tutorial on how to install and config the ati drivers on ubuntu/kubuntu/debian/mint linux :
1. download catalyst 13.1 driver from amd web page : [Link] http://support.amd.com/us/gpudownload/wi...6&rev=13.1 [/Link]
2. give the downloaded file the "execute" permissions :
Code:
chmod  +x  file.run
3. direct install may not work (as it happened several times with me) so the best way to install on debian based os would be to generate files and install them : TO GENERATE FILES:
Code:
downloadedfile.run --buildpkg Ubuntu/precise
please note that i have used kubuntu/presice, this might be any other debian based distro with its own name
TOINSTALL THE GENERATED FILES :
Code:
dpkg -i fglrx*
the generated files will begin with the name "fglrx". the "*" sign is regex, meaning to use every thing that starts with "fglrx" prefix.
4. check is the files were installed correctly by runnig :
Code:
dmesg|tail
Code:
dpkg - |grep fglrx
Code:
cat /etc/ati/fglrx-install.g

IF NOT INSTALL CORRECTLY : remove the files by running unintsll sctipt
Code:
bash /usr/share/ati/fglrx-uninstall.sh
if it is not there use dpkg
Code:
dpkg -r fglrx*

and purge it of course :
Code:
dpkg -P fglrx*
abd REBOOT and TRY TO REINSTALL ONCE AGAIN
5.IF INSTALLED CORRECTLY:
after install run the initial command:
Code:
aticonfig --initial -f
and REBOOT
usually force optionnis not needed yet you can never know Tongue
6. link 2 libraries together :
Code:
ln -s /usr/lib32  /usr/lib/
and REBOOT
7. download lates version of oclHashCatplus(v0.14) and run the example.sh

GOOD LUCK GUYS
#8
Hey tux,
thanks for the tutorial.

I think there is only very few to add to the tutorial, maybe those points:
  • You should check that there is *no* conflicting AMDAPP folder, especially there should be no *additional* libOpenCL.so* files around (use sudo updatedb and locate libOpenCL.so to find them)
  • Depending on your distro, it may be best you choose to install drivers manually. this implies you need to remove all distro provided packages that are for the amd graphic support (they typically start w/ fglrx*)
  • Currently you should stick to 13.1 driver since it is the only officially supported by hashcat (might change, but check GPU Driver and SDK Requirements here: http://hashcat.net/oclhashcat-plus/ )

Glad we managed to get it working
#9
(05-31-2013, 01:12 PM)philsmd Wrote: Hey tux,
thanks for the tutorial.

I think there is only very few to add to the tutorial, maybe those points:
  • You should check that there is *no* conflicting AMDAPP folder, especially there should be no *additional* libOpenCL.so* files around (use sudo updatedb and locate libOpenCL.so to find them)
  • Depending on your distro, it may be best you choose to install drivers manually. this implies you need to remove all distro provided packages that are for the amd graphic support (they typically start w/ fglrx*)
  • Currently you should stick to 13.1 driver since it is the only officially supported by hashcat (might change, but check GPU Driver and SDK Requirements here: http://hashcat.net/oclhashcat-plus/ )

Glad we managed to get it working

thanks for help adding philsmd - now where do i put SOLVED on this ?Smile
#10
Hi,
Tnx for explanation guide, but I have a same issue with different driver set.
As I have AMD FirePro V5900, 13.1 Catalyst at your link is not working for my card, and I have to use 9.0 Catalyst from link http://support.amd.com/us/gpudownload/fi...linux.aspx

Driver is installed correctly, and tools like glxgears and fgl_glxgears works correctly. But ./oclExample0.sh still returning ./oclExample0.sh: line 1: 15331 Segmentation fault (core dumped) ./oclHashcat-plus64.bin -t 32 -a 7 example0.hash ?a?a?a?a example.dict

This drivers has OpenCL Runtime so ocl should work, but for some reason I am getting Segmentation fault issue.

Any suggestion ?