Closed janstarke closed 2 years ago
I have a similar but a tad simpler case
$ ./john -stdout -w -regex='ab\d\0'
Using default input encoding: UTF-8
Proceeding with wordlist:../run/password.lst
Segmentation fault: 11
Same with rexgen alone:
$ rexgen -f password.lst 'ab\d\0'
Segmentation fault: 11
Backtrace from the latter (they are similar)
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
* frame #0: 0x00000001002029d3 librexgen.2.1.4.dylib`rexgen::IteratorContainer::updateReferences(rexgen::IteratorState&) + 35
frame #1: 0x00000001002074a3 librexgen.2.1.4.dylib`rexgen::TopIterator::TopIterator(std::__1::shared_ptr<rexgen::Regex>&) + 243
frame #2: 0x0000000100207fff librexgen.2.1.4.dylib`c_regex_iterator + 143
frame #3: 0x000000010000477a rexgen`main + 362
frame #4: 0x00000001000194fe dyld`start + 462
Additional segfault info:
Originally posted by @frank-dittrich in https://github.com/openwall/john/issues/4905#issuecomment-983364741