{"action":"created","issue":{"url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1357","labels_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1357/labels{/name}","comments_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1357/comments","events_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1357/events","html_url":"https://github.com/magnumripper/JohnTheRipper/issues/1357","id":81213595,"number":1357,"title":"Markov mode: segfault","user":{"login":"loverszhaokai","id":2187242,"avatar_url":"https://avatars.githubusercontent.com/u/2187242?v=3","gravatar_id":"","url":"https://api.github.com/users/loverszhaokai","html_url":"https://github.com/loverszhaokai","followers_url":"https://api.github.com/users/loverszhaokai/followers","following_url":"https://api.github.com/users/loverszhaokai/following{/other_user}","gists_url":"https://api.github.com/users/loverszhaokai/gists{/gist_id}","starred_url":"https://api.github.com/users/loverszhaokai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loverszhaokai/subscriptions","organizations_url":"https://api.github.com/users/loverszhaokai/orgs","repos_url":"https://api.github.com/users/loverszhaokai/repos","events_url":"https://api.github.com/users/loverszhaokai/events{/privacy}","received_events_url":"https://api.github.com/users/loverszhaokai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magnumripper/JohnTheRipper/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-27T01:21:00Z","updated_at":"2015-06-01T19:52:19Z","closed_at":"2015-06-01T19:52:19Z","body":"# 1. Reproduce\r\n\r\n$ ./configure && make -sj8\r\n$ cat test_pw\r\n```\r\n$apr1$a2Jqm...$grFrwEgiQleDr0zR4Jx1b.\r\n```\r\n$ ../john test_pw --markov:10:1:3\r\n```C\r\nUsing default input encoding: UTF-8\r\nLoaded 1 password hash (md5crypt, crypt(3) $1$ [MD5 256/256 AVX2 8x3])\r\nWill run 8 OpenMP threads\r\nPress 'q' or Ctrl-C to abort, almost any other key for status\r\nWarning: End = 3 is too large (max = 1)\r\nMKV start (stats=$JOHN/stats, lvl=10 len=12 pwd=0)\r\nSegmentation fault (core dumped)\r\n```\r\n\r\n# 2. GDB debug\r\n\r\n$ gdb ../john\r\n$ set args  test_pw --markov:10:1:3\r\n$ r\r\n```C\r\nPress 'q' or Ctrl-C to abort, almost any other key for status\r\nWarning: End = 3 is too large (max = 1)\r\nMKV start (stats=$JOHN/stats, lvl=10 len=12 pwd=0)\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x00000000005f109b in show_pwd_r (pwd=pwd@entry=0x7fffffffe6e0, bs=bs@entry=1) at mkv.c:111\r\n111\t\ti = nbparts[pwd->password[pwd->len-1] + pwd->len*256 + pwd->level*256*gmax_len];\r\n(gdb) bt\r\n#0  0x00000000005f109b in show_pwd_r (pwd=pwd@entry=0x7fffffffe6e0, bs=bs@entry=1) at mkv.c:111\r\n#1  0x00000000005f237b in show_pwd (start=<optimized out>) at mkv.c:191\r\n#2  do_markov_crack (db=<optimized out>, mkv_param=<optimized out>) at mkv.c:673\r\n#3  0x00000000005cf8f2 in john_run () at john.c:1434\r\n#4  0x00000000005d0054 in main (argc=3, argv=0x7fffffffe998) at john.c:1709\r\n```"},"comment":{"url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/comments/107684702","html_url":"https://github.com/magnumripper/JohnTheRipper/issues/1357#issuecomment-107684702","issue_url":"https://api.github.com/repos/magnumripper/JohnTheRipper/issues/1357","id":107684702,"user":{"login":"jfoug","id":1270024,"avatar_url":"https://avatars.githubusercontent.com/u/1270024?v=3","gravatar_id":"","url":"https://api.github.com/users/jfoug","html_url":"https://github.com/jfoug","followers_url":"https://api.github.com/users/jfoug/followers","following_url":"https://api.github.com/users/jfoug/following{/other_user}","gists_url":"https://api.github.com/users/jfoug/gists{/gist_id}","starred_url":"https://api.github.com/users/jfoug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfoug/subscriptions","organizations_url":"https://api.github.com/users/jfoug/orgs","repos_url":"https://api.github.com/users/jfoug/repos","events_url":"https://api.github.com/users/jfoug/events{/privacy}","received_events_url":"https://api.github.com/users/jfoug/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T19:52:19Z","updated_at":"2015-06-01T19:52:19Z","body":"f3d5f9e fixes the problem"}}