mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1786] Descrypt-opencl errors on OSX #1191
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1191
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @denis0 on GitHub (Sep 26, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1786
Hi,
Since my last test here ==> https://github.com/magnumripper/JohnTheRipper/issues/1657#issuecomment-135055512
Same machine , same version of OSX ( Mavericks 1.9.5 )
I just test today the last Jumbo version & find some erros with Descrypt
Without any tweak for optimal, just basic to see...
as = ./configure && make
MacBookPro:run xxxxxx$ ./john --list=build-info
Version: 1.8.0.6-jumbo-1-bleeding
Build: darwin13.4.0 64-bit AVX-ac
SIMD: AVX, interleaving: MD4:4 MD5:5 SHA1:2 SHA256:1 SHA512:1
$JOHN is ./
Format interface version: 13
Max. number of reported tunable costs: 3
Rec file version: REC4
Charset file version: CHR3
CHARSET_MIN: 1 (0x01)
CHARSET_MAX: 255 (0xff)
CHARSET_LENGTH: 24
SALT_HASH_SIZE: 1048576
Max. Markov mode level: 400
Max. Markov mode password length: 30
clang version: 6.0 (clang-600.0.57) (gcc 4.2.1 compatibility)
OpenCL library version: 1.2
Crypto library: OpenSSL
OpenSSL library version: 0009081af (loaded: 0009081df)
OpenSSL 0.9.8za 5 Jun 2014 (loaded: OpenSSL 0.9.8zg 14 July 2015)
File locking: fcntl()
fseek(): fseek
ftell(): ftell
fopen(): fopen
memmem(): System's
MacBookPro:run xxxxxx$ ./john --format=descrypt-opencl --test
Device 1: ATI Radeon HD 6750M
Benchmarking: descrypt-opencl, traditional crypt(3) [DES OpenCL]... Options used: -I ./kernels -cl-mad-enable -D__OS_X__ -D__GPU__ -DDEVICE_INFO=10 -DDEV_VER_MAJOR=1 -DDEV_VER_MINOR=2 -D_OPENCL_COMPILER -D WORK_GROUP_SIZE=64 -D index0=31 -D index1=16 -D index2=17 -D index3=18 -D index4=3 -D index5=4 -D index6=3 -D index7=20 -D index8=21 -D index9=22 -D index10=7 -D index11=8 -D index24=15 -D index25=0 -D index26=1 -D index27=2 -D index28=19 -D index29=20 -D index30=19 -D index31=4 -D index32=5 -D index33=6 -D index34=23 -D index35=24 -D index48=63 -D index49=48 -D index50=49 -D index51=50 -D index52=35 -D index53=36 -D index54=35 -D index55=52 -D index56=53 -D index57=54 -D index58=39 -D index59=40 -D index72=47 -D index73=32 -D index74=33 -D index75=34 -D index76=51 -D index77=52 -D index78=51 -D index79=36 -D index80=37 -D index81=38 -D index82=55 -D index83=56
Build log: Error returned by cvms_element_build_from_source
Error -11 building kernel $JOHN/kernels/DES_bs_kernel_h.cl. DEVICE_INFO=10
OpenCL CL_BUILD_PROGRAM_FAILURE error in common-opencl.c:989 - clBuildProgram failed.
To be noted, other open-cl tests, seem working...
So, in case, i run ;
MacBookPro:run xxxxxx$ ./testparas.pl
This will take a while.
Initial configure...
Initial build...
ar: creating archive aes.a
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
Make process completed.
Here we go...
clang: warning: argument unused during compilation: '-pthread'
Make process completed.
== Speeds for 1x interleaving (OMP_SCALE 1): ==
Benchmarking: PBKDF2-HMAC-MD4 [PBKDF2-MD4 128/128 AVX 4x]... DONE
Speed for cost 1 (iteration count) of 1000
Raw: 17608 c/s real, 17608 c/s virtual
Benchmarking: PBKDF2-HMAC-MD5 [PBKDF2-MD5 128/128 AVX 4x]... DONE
Speed for cost 1 (iteration count) of 1000
Raw: 12896 c/s real, 12896 c/s virtual
Benchmarking: PBKDF2-HMAC-SHA1 [PBKDF2-SHA1 128/128 AVX 4x]... DONE
Speed for cost 1 (iteration count) of 1000
Raw: 10608 c/s real, 10608 c/s virtual
Benchmarking: PBKDF2-HMAC-SHA256 [PBKDF2-SHA256 128/128 AVX 4x]... DONE
Speed for cost 1 (iteration count) of 1000
Raw: 4680 c/s real, 4680 c/s virtual
Benchmarking: PBKDF2-HMAC-SHA512, GRUB2 / OS X 10.8+ [PBKDF2-SHA512 128/128 AVX 2x]... DONE
Speed for cost 1 (iteration count) of 1000
Raw: 1852 c/s real, 1852 c/s virtual
clang: warning: argument unused during compilation: '-pthread'
Make process completed.
etc....( multiples times....-
then i got at the end ;
Thread model: posix
John the Ripper 1.8.0.6-jumbo-1-bleeding [darwin13.4.0 64-bit AVX-ac]
Default paras: SIMD: AVX, interleaving: MD4:4 MD5:5 SHA1:2 SHA256:1 SHA512:1
Suggested command line for configure:
./configure CPPFLAGS="-DSIMD_MD4_PARA=3 -DSIMD_MD5_PARA=3 -DSIMD_SHA1_PARA=1 -DSIMD_SHA256_PARA=1 -DSIMD_SHA512_PARA=1"
I past, but same error in final....
Thank you in advance for your help,
Regards,
Denis
@magnumripper commented on GitHub (Sep 26, 2015):
The paras / testparas.pl stuff is totally unrelated to DES.
@Sayantan2048 what has changed recently in DEScrypt-opencl that may have caused new problems?
@magnumripper commented on GitHub (Sep 27, 2015):
I currently don't have any macbook with a proper GPU but here's my current problem:
It worked fine prior to recent changes to the format.
@denis0 commented on GitHub (Sep 28, 2015):
Hi,
I just check the /src folder & see about the modifications done couples of
hours/minutes a go....
I re_compile
same error for me...
MacBookPro:run xxxx$ ./john -form=descrypt --test
Benchmarking: descrypt, traditional crypt(3) [DES 128/128 AVX-16]... DONE
Many salts: 4687K c/s real, 4687K c/s virtual
Only one salt: 4429K c/s real, 4429K c/s virtual
MacBookPro:run xxxx$ ./john -form=descrypt-opencl --test
Device 1: ATI Radeon HD 6750M
Benchmarking: descrypt-opencl, traditional crypt(3) [DES OpenCL]... Options
used: -I ./kernels -cl-mad-enable -D__OS_X__ -D__GPU__ -DDEVICE_INFO=10
-DDEV_VER_MAJOR=1 -DDEV_VER_MINOR=2 -D_OPENCL_COMPILER -D
WORK_GROUP_SIZE=64 -D index0=31 -D index1=16 -D index2=17 -D index3=18 -D
index4=3 -D index5=4 -D index6=3 -D index7=20 -D index8=21 -D index9=22 -D
index10=7 -D index11=8 -D index24=15 -D index25=0 -D index26=1 -D index27=2
-D index28=19 -D index29=20 -D index30=19 -D index31=4 -D index32=5 -D
index33=6 -D index34=23 -D index35=24 -D index48=63 -D index49=48 -D
index50=49 -D index51=50 -D index52=35 -D index53=36 -D index54=35 -D
index55=52 -D index56=53 -D index57=54 -D index58=39 -D index59=40 -D
index72=47 -D index73=32 -D index74=33 -D index75=34 -D index76=51 -D
index77=52 -D index78=51 -D index79=36 -D index80=37 -D index81=38 -D
index82=55 -D index83=56
Build log: Error returned by cvms_element_build_from_source
Error -11 building kernel $JOHN/kernels/DES_bs_kernel_h.cl. DEVICE_INFO=10
OpenCL CL_BUILD_PROGRAM_FAILURE error in common-opencl.c:988 -
clBuildProgram failed.
2015-09-27 19:04 GMT+02:00 magnum notifications@github.com:
@magnumripper commented on GitHub (Sep 28, 2015):
fcb01476fixed it for me.@sayan1an commented on GitHub (Sep 29, 2015):
@magnumripper I think amd_vliw5() macro isn't working on apple.!!
@magnumripper commented on GitHub (Sep 29, 2015):
No, we can't depend on that. It depends on CL_DEVICE_NAME being things like "Cedar" or "Redwood". Apple doesn't call them that, only eg. "ATI Radeon HD 6750M" as in @denis0's case.
Also, no vendor-specific things seem to be supported, like
CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NVorCL_DEVICE_BOARD_NAME_AMD.@magnumripper commented on GitHub (Sep 29, 2015):
I think we simply need to treat Apple devices as "generic" ones and don't bother trying to identify them exactly. We just can't have lists of names like "ATI Radeon HD 6750M" to match - there are hundreds of them and it would need to be updated every month.
@denis0 commented on GitHub (Oct 2, 2015):
Here my last test after complie on the same way as my first post
MacBookPro:run xxxx$ ./john -form=descrypt-opencl --test
Device 1: ATI Radeon HD 6750M
Benchmarking: descrypt-opencl, traditional crypt(3) [DES OpenCL]... Abort trap: 6
@magnumripper commented on GitHub (Oct 2, 2015):
I now get "autotune fail" again, but it works. I'll get back my laptop nvidia tomorrow, I only have the Iris right now.
@denis0 commented on GitHub (Oct 2, 2015):
Hi Magnum,
Thank you for your help, well done...
Beside, if that work in the passed with this fix :
https://github.com/magnumripper/JohnTheRipper/issues/1657#issuecomment-135055512
It is maybe possible to reverse the tweaks about more specificaly the ATI
part ? or that will affected all the other's files ?
2015-10-02 2:29 GMT+02:00 magnum notifications@github.com:
@magnumripper commented on GitHub (Oct 2, 2015):
No, I think the changes to the format was crucial for mask mode and stuff. We'll make it work for you sooner or later, just relax 😎
@magnumripper commented on GitHub (Oct 5, 2015):
@denis0 can you try this please? Run the format like this
You'll get another prompt from lldb. Just say
r(for run) and enter. Then you'll get the crash, typebt(for backtrace) and enter. You'll see something like this:Please paste the exact output from your 'bt' here. I suspect it will be similar (not exact same) as the above (which is with nvidia) and that'd make #1800 a dupe of this issue.
@denis0 commented on GitHub (Oct 6, 2015):
Hi Magnum,
Here my run from the last version downloaded 3 mn a go ;
MacBookPro:run xxxxx$./john -form=descrypt-opencl --test
Device 1: ATI Radeon HD 6750M
Benchmarking: descrypt-opencl, traditional crypt(3) [DES OpenCL]...
Building the kernel, this could take a while
Abort trap: 6
MacBookPro:run xxxxx$ ./john -form=descrypt-opencl --test
Device 1: ATI Radeon HD 6750M
Benchmarking: descrypt-opencl, traditional crypt(3) [DES OpenCL]... Abort
trap: 6
2015-10-05 21:12 GMT+02:00 magnum notifications@github.com:
@magnumripper commented on GitHub (Oct 6, 2015):
This doesn't add any information. Please run it the way I described, with
lldb --before it.@denis0 commented on GitHub (Oct 6, 2015):
Oupss sorry, here the test ;
@magnumripper commented on GitHub (Oct 6, 2015):
From that point, as I wrote, give the
btcommand and paste the output of that.@denis0 commented on GitHub (Oct 7, 2015):
Sorry, here the results ;
@magnumripper commented on GitHub (Oct 7, 2015):
Thanks. That's not quite the same as the problem I see. Still, it looks like a driver bug.
@denis0 commented on GitHub (Oct 7, 2015):
Thank you Magnum.
Another bug find 5 mn a go...after trying the last build = Impossible to finish as well the compilation.
Here the last lines ;
s/aes.a -o ../run/john
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
"_adl_lib", referenced from:
_start_opencl_device in common-opencl.o
"_advance_cursor", referenced from:
_opencl_find_best_lws in common-opencl.o
_opencl_find_best_gws in common-opencl.o
"_amd_get_temp", referenced from:
_start_opencl_device in common-opencl.o
"_amd_probe", referenced from:
_opencl_preinit in common-opencl.o
"_bench_running", referenced from:
_opencl_process_event in common-opencl.o
"_cfg_get_param", referenced from:
_opencl_preinit in common-opencl.o
_opencl_get_user_preferences in common-opencl.o
_opencl_build in common-opencl.o
"_dev_get_temp", referenced from:
_start_opencl_device in common-opencl.o
"_dyna_salt_init", referenced from:
_opencl_find_best_lws in common-opencl.o
_opencl_find_best_gws in common-opencl.o
"_dyna_salt_remove_fp", referenced from:
_opencl_find_best_lws in common-opencl.o
_opencl_find_best_gws in common-opencl.o
"_event_abort", referenced from:
_opencl_process_event in common-opencl.o
"_event_pending", referenced from:
_opencl_process_event in common-opencl.o
"_event_poll_files", referenced from:
_opencl_process_event in common-opencl.o
"_event_save", referenced from:
_opencl_process_event in common-opencl.o
"_event_status", referenced from:
_opencl_process_event in common-opencl.o
"_event_ticksafety", referenced from:
_opencl_process_event in common-opencl.o
"_gpu_device_list", referenced from:
_get_number_of_devices_in_use in common-opencl.o
_opencl_preinit in common-opencl.o
_opencl_done in common-opencl.o
_opencl_list_devices in common-opencl.o
_add_device_to_list in common-opencl.o
"_gpu_id", referenced from:
_opencl_preinit in common-opencl.o
_opencl_get_vector_width in common-opencl.o
_opencl_find_best_gws in common-opencl.o
_opencl_prepare_dev in common-opencl.o
_autotune_get_task_max_work_group_size in opencl_autotune.o
_autotune_get_task_max_size in opencl_autotune.o
"_id2adl", referenced from:
_start_opencl_device in common-opencl.o
"_id2nvml", referenced from:
_start_opencl_device in common-opencl.o
"_itoa16", referenced from:
_opencl_build_kernel in common-opencl.o
"_jtr_basename", referenced from:
_opencl_build in common-opencl.o
"_log_event", referenced from:
_opencl_prepare_dev in common-opencl.o
"_main", referenced from:
implicit entry/start for main executable
"_mask_int_cand", referenced from:
_opencl_find_best_gws in common-opencl.o
"_mem_alloc_align_func", referenced from:
_bt_memalign_alloc in bt.o
"_mem_alloc_func", referenced from:
_bt_malloc in bt.o
_create_perfect_hash_table in bt.o
"_mem_alloc_tiny_func", referenced from:
_opencl_build in common-opencl.o
_ns2string in common-opencl.o
"_mem_calloc_func", referenced from:
_opencl_build in common-opencl.o
_opencl_build_from_binary in common-opencl.o
_opencl_read_source in common-opencl.o
_bt_calloc in bt.o
_create_perfect_hash_table in bt.o
"_nt_buffer8x", referenced from:
_nt_crypt_all_x86_64 in x86-64.o
_nt_crypt_all_8859_1_x86_64 in x86-64.o
"_nvidia_get_temp", referenced from:
_start_opencl_device in common-opencl.o
"_nvidia_probe", referenced from:
_opencl_preinit in common-opencl.o
"_nvml_lib", referenced from:
_start_opencl_device in common-opencl.o
"_options", referenced from:
_opencl_preinit in common-opencl.o
_opencl_get_vector_width in common-opencl.o
_opencl_build in common-opencl.o
_opencl_build_from_binary in common-opencl.o
_opencl_find_best_lws in common-opencl.o
_opencl_find_best_gws in common-opencl.o
_opencl_build_kernel in common-opencl.o
...
"_output8x", referenced from:
_nt_crypt_all_x86_64 in x86-64.o
_nt_crypt_all_8859_1_x86_64 in x86-64.o
"_path_expand", referenced from:
_opencl_build_kernel in common-opencl.o
"_path_expand_safe", referenced from:
_opencl_build in common-opencl.o
_opencl_read_source in common-opencl.o
"_real_error", referenced from:
_opencl_preinit in common-opencl.o
_opencl_get_vector_width in common-opencl.o
_opencl_done in common-opencl.o
_opencl_build in common-opencl.o
_opencl_build_from_binary in common-opencl.o
_opencl_find_best_lws in common-opencl.o
_get_device_type in common-opencl.o
...
"_real_pexit", referenced from:
_opencl_build in common-opencl.o
_opencl_read_source in common-opencl.o
"_rec_save", referenced from:
_opencl_process_event in common-opencl.o
"_status_print", referenced from:
_opencl_process_event in common-opencl.o
"_status_ticks_overflow_safety", referenced from:
_opencl_process_event in common-opencl.o
"_strlwr", referenced from:
_opencl_get_user_preferences in common-opencl.o
"_temp_dev_id", referenced from:
_start_opencl_device in common-opencl.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [../run/john] Error 1
make: *** [default] Error 2
@magnumripper commented on GitHub (Oct 7, 2015):
Yeah, try
ecd4d118. I had to revert a change that exploded in my face.@magnumripper commented on GitHub (Oct 7, 2015):
Actually there are still problems. Bare with me. Perhaps
c32b1d6works?@denis0 commented on GitHub (Oct 8, 2015):
Done, working now & new error in the opencl test issue :
$ ./john -form=descrypt-opencl --test
Device 1: ATI Radeon HD 6750M
Benchmarking: descrypt-opencl, traditional crypt(3) [DES OpenCL]... Can't read source kernel: No such file or directory
@magnumripper commented on GitHub (Oct 8, 2015):
Yeah it was a mess. I'm hoping
29bb2dccput an end to the recent dependency problems.@magnumripper commented on GitHub (Dec 15, 2018):
Closing as too old/dupe