[GH-ISSUE #835] Test fix_state() in all modes #445

Closed
opened 2026-10-14 03:07:58 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @magnumripper on GitHub (Oct 28, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/835

I think we need to test the following:

  • Start a session.
  • Ensure it saves some progress in the session file (eg. wait one minute, or send a SIGHUP).
  • After some more time (where more work is definitely done, but not saved), abort it BRUTALLY, like kill -9.
  • Resume session, let it run to finish and see if something was lost.

This test needs to be made for each mode, any one salted format will do. Hybrid Mask needs to be tested separate from pure Mask, but that testing can be made with any one parent mode (which should be tested and deemed good alone first).

I think we should do this with a pretty fast but salted format, using several salts. Using the default Save = 60 in john.conf, we could kill it after eg. 90 or 105 seconds so maybe aim for a test file that takes about two minutes to complete when not aborted.

Originally created by @magnumripper on GitHub (Oct 28, 2014). Original GitHub issue: https://github.com/openwall/john/issues/835 I think we need to test the following: - Start a session. - Ensure it saves some progress in the session file (eg. wait one minute, or send a SIGHUP). - After some more time (where more work is definitely done, but not saved), abort it BRUTALLY, like `kill -9`. - Resume session, let it run to finish and see if something was lost. This test needs to be made for each _mode_, any one salted format will do. Hybrid Mask needs to be tested separate from pure Mask, but that testing can be made with any one parent mode (which should be tested and deemed good alone first). I think we should do this with a pretty fast but salted format, using several salts. Using the default `Save = 60` in john.conf, we could kill it after eg. 90 or 105 seconds so maybe aim for a test file that takes about two minutes to complete when not aborted.
bsakaguchi 2026-10-14 03:07:58 +07:00
  • closed this issue
  • added the
    testing
    label
Author
Owner

@magnumripper commented on GitHub (Oct 28, 2014):

Another option is to set a huge value for john.conf Save Option and only use SIGHUP for saving.

<!-- gh-comment-id:60791041 --> @magnumripper commented on GitHub (Oct 28, 2014): Another option is to set a huge value for john.conf `Save` Option and only use SIGHUP for saving.
Author
Owner

@magnumripper commented on GitHub (Nov 8, 2014):

I think I was confused. Our (my) normal save/resume tests will test this.

<!-- gh-comment-id:62235173 --> @magnumripper commented on GitHub (Nov 8, 2014): I think I was confused. Our (my) normal save/resume tests will test this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#445
No description provided.