mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1863] Segmentation fault on ARM build #1238
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#1238
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 @thecommandline on GitHub (Oct 29, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1863
Originally assigned to: @jfoug on GitHub.
I am trying to run JtR on a raspberry pi 2 ( ARM Cortex-A7 ) running RASPBIAN JESSIE fully updated. I compiled with MPI enabled since my end goal is to run it on a cluster.
@magnumripper commented on GitHub (Oct 29, 2015):
The "Could not find section" is strange, we had one other user report that recently. And why did you not get that under gdb?
Your segfault seem to be within OpenSSL and I see no clue as to why. Unless that's just some normal exception during CPU enumeration, that you can 'c'ontinue from and get on to the real problem? The "Illegal instruction" suggests so while the "memory at address 0x0" does not.
In case you have lldb, try using it instead of gdb. Sometimes it gives better backtraces.
@magnumripper commented on GitHub (Oct 29, 2015):
Also, perhaps you can run a
./john --list=build-infowithout getting a segfault? Post output here please.@magnumripper commented on GitHub (Oct 29, 2015):
@jfoug there actually is no dynamic_1000 in dynamic.conf - it starts at dynamic_1001. Why do we get that message? And why do I not get it?!
@magnumripper commented on GitHub (Oct 29, 2015):
@priorityinterrupt you are running latest (give or take) code from here, right? As opposed to some ancient tarball or "release".
@lei-april commented on GitHub (Oct 29, 2015):
@priorityinterrupt What version of gcc are you using here? I remember having some trouble building JtR for ARM with gcc 4.6.3, while gcc 4.7.3 just worked fine. This might be irrelevant to the segfault you met, though.
@thecommandline commented on GitHub (Oct 29, 2015):
Yes I cloned the git repo from here right before the build. Here is the build info.
Sorry Im not very familiar with gdb. I was able to continue and get some more info.
Here is the backtrace after the "could not find section" error.
I installed lldb but am less familiar with it than I am with gdb which is not saying much. I am failing to get any useful info out of it. But if you can give me the right syntax I can run it.
@magnumripper commented on GitHub (Oct 29, 2015):
That backtrace after the "could not find section" is just what we needed, thanks! I'll have a look at the code.
@magnumripper commented on GitHub (Oct 29, 2015):
@priorityinterrupt please try
d194066. It doesn't fix the root issue (I have absolutely no idea what it is) but it adds some safety so you should not get that segfault.@jfoug what the heck is going on here, how come it's looking for dynamic_1000 at all? There is no such thing in the entire source tree, yet it looks for it? I really can't see what would be different on an ARM system that causes this.
@magnumripper commented on GitHub (Oct 29, 2015):
OK apparently it brute-forces all numbers from 0 to 4999. That is hideous, but OT - it shouldn't cause these problems.
@magnumripper commented on GitHub (Oct 29, 2015):
@jfoug I think the problem is this system defaults to unsigned char, and you are using char as a tristate with -1, 0 and 1.
@magnumripper commented on GitHub (Oct 29, 2015):
If I'm right about that,
ff38778hopefully fixes all problems.@thecommandline commented on GitHub (Oct 29, 2015):
OK build
d194066runs now but before it runs it produces a lot of stderr output.@thecommandline commented on GitHub (Oct 29, 2015):
Compiling
ff38778now.@magnumripper commented on GitHub (Oct 29, 2015):
I'm willing to bet I nailed it but I'm not 100% sure I fixed all instances of it. It's kind of hard to search for this bug. I wonder if there's a compiler warning we could enable.
OTOH we could add
-fsigned-charto the compiler flags... but that would be cheating, wouldn't it? Better fix all the (likely very few) cases like this one.Note to self: The switches
-funsigned-charand-fsigned-chardo not refer tochar *.@thecommandline commented on GitHub (Oct 29, 2015):
Awesome it looks like you got it. The benchmarks are running and there were no error or warning messages before it started.
Thank you!
@magnumripper commented on GitHub (Oct 29, 2015):
Cool. Please report any failures from full
--test(as separate issues), there might be similar bugs in some formats although it should be rare.BTW for just self-test with no benchmark, a
--test=0is a whole lot quicker.