mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #586] raw-sha1-ng intermittently fails in OMP builds #257
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#257
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 @magnumripper on GitHub (May 16, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/586
It's very intermittent, and it's only in OMP (or extremely rare without OMP?)
(this from #575)
@ghost commented on GitHub (May 17, 2014):
2 threads seems to be Ok too.
3 threads fails sometimes and works other times. More than 3 seems to fail always.
@ghost commented on GitHub (May 17, 2014):
I cannot reproduce this on bleeding. I mean, bleeding-jumbo seems to work fine (more on #575 later).
@ghost commented on GitHub (May 17, 2014):
I am able to fix it on autoconf. Below, from an autoconf generated Makefile:
Some questions:
After this, SHA1-ng seems to be working as expected.
@magnumripper commented on GitHub (May 17, 2014):
$(AMDAPP) would resolve to that variable, which might come from environment.
CPPFLAGS+=O2 would be a no-op as far as I'm aware.
What exact CFLAGS did you end up with that worked? Was -march=native required in LDFLAGS? It should not be needed.
@jfoug commented on GitHub (May 17, 2014):
If this was simply lack of the -O2 flag, that has now been added. Please make sure the current configure (without doing hand edits), works properly for you.
@jfoug commented on GitHub (May 17, 2014):
NOTE, $(AMDAPP) was removed, in the 2nd to latest Makefile.in. I thought this was a carry over, and not required, since we are handling this type stuff in configure. If this needs to be re-added, that is a trivial change to Makefile.in
@ghost commented on GitHub (May 17, 2014):
It is working now.
I agree.
Yes, I only added -O2 flag and it worked fine (as it doing now).
@magnumripper commented on GitHub (May 18, 2014):
We should definitely use -O2 but otoh I see absolutely no reason it should fail self-test without it! Anyway, closing this for now.
@jfoug commented on GitHub (May 18, 2014):
The 'extra' command switches do NOT become part of CFLAGS. They are passed in as a separate @CFLAGS_EXTRA@ replacement to Makefile.in. We may also need to compute some unique switches within the triplet parsing code, or even possibly simply blindly set them. Again, my 'does this work' logic depends upon the -Werror flag. If the compiler on some of these other systems is not gcc, then that detection method may not work. NOTE, I have not tried on sparc yet, and moreover on sparc's cc yet. I will do so in a few days.