{"action":"created","issue":{"url":"https://api.github.com/repos/lichray/nvi2/issues/33","labels_url":"https://api.github.com/repos/lichray/nvi2/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/lichray/nvi2/issues/33/comments","events_url":"https://api.github.com/repos/lichray/nvi2/issues/33/events","html_url":"https://github.com/lichray/nvi2/issues/33","id":68741623,"number":33,"title":"Sentence deletion segfaults","user":{"login":"0branch","id":701332,"avatar_url":"https://avatars.githubusercontent.com/u/701332?v=3","gravatar_id":"","url":"https://api.github.com/users/0branch","html_url":"https://github.com/0branch","followers_url":"https://api.github.com/users/0branch/followers","following_url":"https://api.github.com/users/0branch/following{/other_user}","gists_url":"https://api.github.com/users/0branch/gists{/gist_id}","starred_url":"https://api.github.com/users/0branch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0branch/subscriptions","organizations_url":"https://api.github.com/users/0branch/orgs","repos_url":"https://api.github.com/users/0branch/repos","events_url":"https://api.github.com/users/0branch/events{/privacy}","received_events_url":"https://api.github.com/users/0branch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-15T17:32:06Z","updated_at":"2015-08-15T06:09:16Z","closed_at":null,"body":"(Encountered under OS X.)\r\n\r\nFirst case:\r\n\r\n- `printf \"\\nfoo\" > a && nvi a`\r\n- `d(`\r\n\r\nSecond case:\r\n\r\n- `printf \"bar\\n\\n  baz\" > b && nvi +3 b`\r\n- `d(`\r\n\r\nHaven't had time to look into this yet; here's the offending call,\r\n\r\n    (lldb) up\r\n    frame #2: 0x000000010000b0b1 nvi`del(sp=0x0000000100805400, fm=0x00007fff5fbff2a8, tm=0x00007fff5fbff2b8, lmode=0) + 1969 at delete.c:100\r\n       97  \t\t\tGET_SPACE_RETW(sp, bp, blen, len);\r\n       98  \t\t\tif (fm->cno != 0)\r\n       99  \t\t\t\tMEMCPY(bp, p, fm->cno);\r\n    -> 100 \t\t\tMEMCPY(bp + fm->cno, p + (tm->cno + 1),\r\n       101 \t\t\t\tlen - (tm->cno + 1));\r\n       102 \t\t\tif (db_set(sp, fm->lno,\r\n       103 \t\t\t    bp, len - ((tm->cno - fm->cno) + 1)))\r\n\r\nFrame variables (`break set -f delete.c -l 100`):\r\n\r\n    (lldb) fr var\r\n    (SCR *) sp = 0x0000000100805400\r\n    (MARK *) fm = 0x00007fff5fbff288\r\n    (MARK *) tm = 0x00007fff5fbff298\r\n    (int) lmode = 0\r\n    (recno_t) lno = 2\r\n    (size_t) blen = 256\r\n    (size_t) len = 0\r\n    (size_t) nlen = 210453397506\r\n    (size_t) tlen = 0\r\n    (CHAR_T *) bp = 0x000000010020b1a0 L\"\\U0000fffd\\U0000fffd\\U0000fffd\\U0000fffd\\U0000fffd\\U0000fffd\\U0000fffd\\U0000fffd਩\": unmodified: line 1 (pid 28160)\r\n    (CHAR_T *) p = 0x000000010020b2f0 L\"foo\"\r\n    (int) eof = 1\r\n    (int) rval = 8410112"},"comment":{"url":"https://api.github.com/repos/lichray/nvi2/issues/comments/131307577","html_url":"https://github.com/lichray/nvi2/issues/33#issuecomment-131307577","issue_url":"https://api.github.com/repos/lichray/nvi2/issues/33","id":131307577,"user":{"login":"lichray","id":433009,"avatar_url":"https://avatars.githubusercontent.com/u/433009?v=3","gravatar_id":"","url":"https://api.github.com/users/lichray","html_url":"https://github.com/lichray","followers_url":"https://api.github.com/users/lichray/followers","following_url":"https://api.github.com/users/lichray/following{/other_user}","gists_url":"https://api.github.com/users/lichray/gists{/gist_id}","starred_url":"https://api.github.com/users/lichray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lichray/subscriptions","organizations_url":"https://api.github.com/users/lichray/orgs","repos_url":"https://api.github.com/users/lichray/repos","events_url":"https://api.github.com/users/lichray/events{/privacy}","received_events_url":"https://api.github.com/users/lichray/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T06:09:16Z","updated_at":"2015-08-15T06:09:16Z","body":"I know... I'm traveling without my BSD laptop.  I will take this 2 weeks later."}}