[GH-ISSUE #1545] dynamic_1016: SegFault #1008

Closed
opened 2026-10-14 03:31:38 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @loverszhaokai on GitHub (Jul 12, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1545

#1. Reproduce

$ cat pwfile

$dynamic_1016$08e3ded271f83affc8f127dae3cb5bed$HEX$4845582465333030303366613030303130303030303030313030303030303030303030303030303030$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$3030303030303030303030303030303030303030303030303030303030303030303030303030303030303064376464313036306565303662656332

$ ./configure && make -sj8
$ ./john pwfile

Segmentation fault

#2. GDB Debug

(gdb) set args err_pwfiles/pwfile.dynamic_1016
(gdb) r
Starting program: /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_kai/run/john err_pwfiles/pwfile.dynamic_1016
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x000000000046d4d2 in ConvertFromHex (p=0x7ffffffce000 <incomplete sequence \343>, len=<optimized out>) at dynamic_fmt.c:2037
2037            *cp++ = atoi16[ARCH_INDEX(p[i])]*16 + atoi16[ARCH_INDEX(p[i+1])];
(gdb) bt
#0  0x000000000046d4d2 in ConvertFromHex (p=0x7ffffffce000 <incomplete sequence \343>, len=<optimized out>) at dynamic_fmt.c:2037
#1  0x0000000000471257 in salt_external_to_internal_convert (Buffer=<optimized out>, extern_salt=<optimized out>) at dynamic_fmt.c:2098
#2  get_salt (ciphertext=0x6 <error: Cannot access memory at address 0x6>) at dynamic_fmt.c:2340
#3  0x6f6f6f6f6f6f6f6f in ?? ()
#4  0x6f6f6f6f6f6f6f6f in ?? ()
#5  0x6f6f6f6f6f6f6f6f in ?? ()
#6  0x6f6f6f6f6f6f6f6f in ?? ()
#7  0x6f6f6f6f6f6f6f6f in ?? ()
#8  0x6f6f6f6f6f6f6f6f in ?? ()
#9  0x6f6f6f6f6f6f6f6f in ?? ()
#10 0x6f6f6f6f6f6f6f6f in ?? ()
#11 0x6f6f6f6f6f6f6f6f in ?? ()
#12 0x6f6f6f6f6f6f6f6f in ?? ()
#13 0x6f6f6f6f6f6f6f6f in ?? ()
#14 0x6f6f6f6f6f6f6f6f in ?? ()
#15 0x6f6f6f6f6f6f6f6f in ?? ()
#16 0x6f6f6f6f6f6f6f6f in ?? ()
#17 0x6f6f6f6f6f6f6f6f in ?? ()
#18 0x6f6f6f6f6f6f6f6f in ?? ()
#19 0x6f6f6f6f6f6f6f6f in ?? ()
#20 0x6f6f6f6f6f6f6f6f in ?? ()
#21 0x6f6f6f6f6f6f6f6f in ?? ()
#22 0x6f6f6f6f6f6f6f6f in ?? ()
#23 0x6f6f6f6f6f6f6f6f in ?? ()
#24 0x6f6f6f6f6f6f6f6f in ?? ()
#25 0x6f6f6f6f6f6f6f6f in ?? ()
#26 0x6f6f6f6f6f6f6f6f in ?? ()
#27 0x6f6f6f6f6f6f6f6f in ?? ()
#28 0x6f6f6f6f6f6f6f6f in ?? ()
#29 0x6f6f6f6f6f6f6f6f in ?? ()
#30 0x6f6f6f6f6f6f6f6f in ?? ()
#31 0x6f6f6f6f6f6f6f6f in ?? ()
#32 0x6f6f6f6f6f6f6f6f in ?? ()
#33 0x6f6f6f6f6f6f6f6f in ?? ()
#34 0x6f6f6f6f6f6f6f6f in ?? ()
#35 0x6f6f6f6f6f6f6f6f in ?? ()
#36 0x6f6f6f6f6f6f6f6f in ?? ()
#37 0x6f6f6f6f6f6f6f6f in ?? ()
#38 0x6f6f6f6f6f6f6f6f in ?? ()
#39 0x6f6f6f6f6f6f6f6f in ?? ()
#40 0x6f6f6f6f6f6f6f6f in ?? ()
#41 0x6f6f6f6f6f6f6f6f in ?? ()
---Type <return> to continue, or q <return> to quit---q
Originally created by @loverszhaokai on GitHub (Jul 12, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1545 #1. Reproduce $ cat pwfile ``` $dynamic_1016$08e3ded271f83affc8f127dae3cb5bed$HEX$4845582465333030303366613030303130303030303030313030303030303030303030303030303030$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$3030303030303030303030303030303030303030303030303030303030303030303030303030303030303064376464313036306565303662656332 ``` $ ./configure && make -sj8 $ ./john pwfile ``` Segmentation fault ``` #2. GDB Debug ``` C (gdb) set args err_pwfiles/pwfile.dynamic_1016 (gdb) r Starting program: /home/zhaokai/WorkSpace/open_wall/JohnTheRipper_kai/run/john err_pwfiles/pwfile.dynamic_1016 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x000000000046d4d2 in ConvertFromHex (p=0x7ffffffce000 <incomplete sequence \343>, len=<optimized out>) at dynamic_fmt.c:2037 2037 *cp++ = atoi16[ARCH_INDEX(p[i])]*16 + atoi16[ARCH_INDEX(p[i+1])]; (gdb) bt #0 0x000000000046d4d2 in ConvertFromHex (p=0x7ffffffce000 <incomplete sequence \343>, len=<optimized out>) at dynamic_fmt.c:2037 #1 0x0000000000471257 in salt_external_to_internal_convert (Buffer=<optimized out>, extern_salt=<optimized out>) at dynamic_fmt.c:2098 #2 get_salt (ciphertext=0x6 <error: Cannot access memory at address 0x6>) at dynamic_fmt.c:2340 #3 0x6f6f6f6f6f6f6f6f in ?? () #4 0x6f6f6f6f6f6f6f6f in ?? () #5 0x6f6f6f6f6f6f6f6f in ?? () #6 0x6f6f6f6f6f6f6f6f in ?? () #7 0x6f6f6f6f6f6f6f6f in ?? () #8 0x6f6f6f6f6f6f6f6f in ?? () #9 0x6f6f6f6f6f6f6f6f in ?? () #10 0x6f6f6f6f6f6f6f6f in ?? () #11 0x6f6f6f6f6f6f6f6f in ?? () #12 0x6f6f6f6f6f6f6f6f in ?? () #13 0x6f6f6f6f6f6f6f6f in ?? () #14 0x6f6f6f6f6f6f6f6f in ?? () #15 0x6f6f6f6f6f6f6f6f in ?? () #16 0x6f6f6f6f6f6f6f6f in ?? () #17 0x6f6f6f6f6f6f6f6f in ?? () #18 0x6f6f6f6f6f6f6f6f in ?? () #19 0x6f6f6f6f6f6f6f6f in ?? () #20 0x6f6f6f6f6f6f6f6f in ?? () #21 0x6f6f6f6f6f6f6f6f in ?? () #22 0x6f6f6f6f6f6f6f6f in ?? () #23 0x6f6f6f6f6f6f6f6f in ?? () #24 0x6f6f6f6f6f6f6f6f in ?? () #25 0x6f6f6f6f6f6f6f6f in ?? () #26 0x6f6f6f6f6f6f6f6f in ?? () #27 0x6f6f6f6f6f6f6f6f in ?? () #28 0x6f6f6f6f6f6f6f6f in ?? () #29 0x6f6f6f6f6f6f6f6f in ?? () #30 0x6f6f6f6f6f6f6f6f in ?? () #31 0x6f6f6f6f6f6f6f6f in ?? () #32 0x6f6f6f6f6f6f6f6f in ?? () #33 0x6f6f6f6f6f6f6f6f in ?? () #34 0x6f6f6f6f6f6f6f6f in ?? () #35 0x6f6f6f6f6f6f6f6f in ?? () #36 0x6f6f6f6f6f6f6f6f in ?? () #37 0x6f6f6f6f6f6f6f6f in ?? () #38 0x6f6f6f6f6f6f6f6f in ?? () #39 0x6f6f6f6f6f6f6f6f in ?? () #40 0x6f6f6f6f6f6f6f6f in ?? () #41 0x6f6f6f6f6f6f6f6f in ?? () ---Type <return> to continue, or q <return> to quit---q ```
bsakaguchi 2026-10-14 03:31:38 +07:00
  • closed this issue
  • added the
    bug
    label
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#1008
No description provided.