mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #2653] descrypt-opencl "OpenCL CL_OUT_OF_RESOURCES error in opencl_DES_bs_plug.c:549" after 1+ hour #1720
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#1720
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 @aguvillalba on GitHub (Aug 5, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2653
After more than 1 hour running john, I got this error:
command:
./john --format=descrypt-opencl --min-length=8 --progress-every=10 --device=0 --encoding=Latin1 --verbosity=4 ~/jonny.txtOutput:
Build info:
@aguvillalba commented on GitHub (Aug 5, 2017):
GPU info:
@solardiz commented on GitHub (Aug 5, 2017):
Please
--restorethis session and watch GPU memory usage innvidia-smioutput as the session runs - does the memory usage keep increasing? Until what level? Perhaps the code is leaking a certain resource, which could be GPU global memory or/and something else. Thanks.@aguvillalba commented on GitHub (Aug 5, 2017):
If I try to run it with --restore I got this:
I don't get it
@solardiz commented on GitHub (Aug 5, 2017):
--restoreshould be the only option, you don't need to and must not re-list the old options explicitly. Not even the password hash file's name.@aguvillalba commented on GitHub (Aug 5, 2017):
Ok, running again with --restore.
output of nvidia-smi
This is after 10 min running. I'll keep reporting.
Thanks for your help and good job with this software!
@aguvillalba commented on GitHub (Aug 5, 2017):
After 01:25 hr, this is the output of nvidia-smi:
@aguvillalba commented on GitHub (Aug 5, 2017):
After 01:50 hr, this is the output of nvidia-smi:
But only 6 guesses so far:
@solardiz commented on GitHub (Aug 5, 2017):
"Only 6 guesses" means you didn't actually restore the old session, which had cracked 80 - perhaps before you properly ran with
--restore, you somehow overwrote the .rec file (e.g., ran some other attack from scratch). So you almost lost the first 1:40 hours of work, in terms of not having a record of what candidate passwords were already tested, and you redid this work now. That's why it's achieved so few new guesses so far - it had to reach the previous session's point first (with proper--restore, it wouldn't have to - it'd restart right there).@solardiz commented on GitHub (Aug 5, 2017):
Since you're also using this same GPU for your desktop, could the "out of resources" error be caused by a spike in GPU resource usage by your desktop apps, rather than any bug in JtR?
@aguvillalba commented on GitHub (Aug 5, 2017):
Again the failure after 5hrs running:
JtR is the only application running in the computer, so I doubt that the failure is caused by something else than JtR.
@aguvillalba commented on GitHub (Aug 5, 2017):
@solardiz, you are right, before I overwrote the .rec file by running the same command with the --restore flag.
Now I did it correctly and it started from the last point where it crashed (47g).
Thanks for the advise!
@aguvillalba commented on GitHub (Aug 6, 2017):
Again, after 2 more hours of execution:
@solardiz commented on GitHub (Aug 6, 2017):
@aguvillalba "before I overwrote the .rec file by running the same command with the --restore flag." - no, it wouldn't (or at least shouldn't) have overwritten the file. When JtR complains about incompatible combination of options, it exits before writing any files. Perhaps you also ran some other command at the time, such as the same command without
--restoreat all.As to the "out of resources" errors every few hours, the cause is still unclear. Notice how the durations and the numbers of guesses (until hitting the error again) both vary. This suggests that either the cause of the error is external (some of your desktop apps making greater use of the GPU for a moment), or it is internal but intermittent - e.g., it could be a race condition. To try and debug this, please run this command along with JtR:
Then post in here an excerpt from the log file from the time around the error (starting shortly before the error and ending after the error). Thanks!
@solardiz commented on GitHub (Aug 7, 2017):
I suspect that fixing #2613 could help mitigate the "out of resources" issue through not wasting GPU memory on unnecessarily large hash tables. That issue isn't a leak, so not directly what we see here, but fixing it may reduce the initial GPU memory usage, and thus make it less likely that we'll attempt to exceed what's available for allocation later.
@solardiz commented on GitHub (Aug 14, 2017):
@aguvillalba Any status update? Meanwhile, to reduce your GPU memory usage from 1.6 GB to perhaps 500 MB, try prefixing your "./john ..." commands with "GWS=524288 ", like this:
Does this possibly help avoid the out of resources errors?
(This advice is only valid for descrypt-opencl. Other formats may need different GWS settings, and you have no reason to alter their defaults yet.)
@magnumripper commented on GitHub (Aug 15, 2017):
It seems to me the (format specific) auto-tune code doesn't take number of salts in account. This may be one reason (of several) the margin gets too small.
opencl_DES_bs_[bh]_plug.c:
@solardiz commented on GitHub (Aug 15, 2017):
I think the salt count shouldn't affect the tuned GWS here. So that's fine. Per my testing, there's almost no difference in GPU memory usage when running descrypt-opencl against 1 or 2000+ salts - it's around 1.6 GB with auto-tuned GWS either way.
@solardiz commented on GitHub (Jun 9, 2024):
This was a discussion in 2017 where OP stopped commenting after a while. I'll close this issue now, but we can revisit if the same problem gets reported again.