{"action":"created","issue":{"url":"https://api.github.com/repos/ashinn/chibi-scheme/issues/308","repository_url":"https://api.github.com/repos/ashinn/chibi-scheme","labels_url":"https://api.github.com/repos/ashinn/chibi-scheme/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/ashinn/chibi-scheme/issues/308/comments","events_url":"https://api.github.com/repos/ashinn/chibi-scheme/issues/308/events","html_url":"https://github.com/ashinn/chibi-scheme/issues/308","id":131359698,"number":308,"title":"Reader generates a core dump with certain datum labels","user":{"login":"mnieper","id":932291,"avatar_url":"https://avatars.githubusercontent.com/u/932291?v=3","gravatar_id":"","url":"https://api.github.com/users/mnieper","html_url":"https://github.com/mnieper","followers_url":"https://api.github.com/users/mnieper/followers","following_url":"https://api.github.com/users/mnieper/following{/other_user}","gists_url":"https://api.github.com/users/mnieper/gists{/gist_id}","starred_url":"https://api.github.com/users/mnieper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnieper/subscriptions","organizations_url":"https://api.github.com/users/mnieper/orgs","repos_url":"https://api.github.com/users/mnieper/repos","events_url":"https://api.github.com/users/mnieper/events{/privacy}","received_events_url":"https://api.github.com/users/mnieper/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-04T14:14:34Z","updated_at":"2016-02-04T14:48:40Z","closed_at":"2016-02-04T14:25:12Z","body":"The `(read)` procedure in `(scheme read)` crashes when presented the input:\r\n\r\n`#125=#(#213=(1 2 #125# 4 . #213#) (#125#) #213#)`\r\n\r\nThe reader at the repl gives the following error: https://github.com/ashinn/chibi-scheme/blob/3e9092cfccbc6ee4e299fd0bf92b8e0417d177cf/sexp.c#L2874\r\n\r\nThe self-referencing datum above is from: https://github.com/larcenists/larceny/blob/master/test/R7RS/Lib/tests/scheme/read.sld#L307 "},"comment":{"url":"https://api.github.com/repos/ashinn/chibi-scheme/issues/comments/179878647","html_url":"https://github.com/ashinn/chibi-scheme/issues/308#issuecomment-179878647","issue_url":"https://api.github.com/repos/ashinn/chibi-scheme/issues/308","id":179878647,"user":{"login":"mnieper","id":932291,"avatar_url":"https://avatars.githubusercontent.com/u/932291?v=3","gravatar_id":"","url":"https://api.github.com/users/mnieper","html_url":"https://github.com/mnieper","followers_url":"https://api.github.com/users/mnieper/followers","following_url":"https://api.github.com/users/mnieper/following{/other_user}","gists_url":"https://api.github.com/users/mnieper/gists{/gist_id}","starred_url":"https://api.github.com/users/mnieper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnieper/subscriptions","organizations_url":"https://api.github.com/users/mnieper/orgs","repos_url":"https://api.github.com/users/mnieper/repos","events_url":"https://api.github.com/users/mnieper/events{/privacy}","received_events_url":"https://api.github.com/users/mnieper/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T14:48:40Z","updated_at":"2016-02-04T14:48:40Z","body":"I actually quoted the above literal when I entered it at the repl. The session looked like this:\r\n\r\n   $ chibi-scheme \r\n   > '#125=#(#213=(1 2 #125# 4 . #213#) (#125#) #213#)\r\n   \r\n   ERROR on line 1: reader label out of order: 125\r\n   > ERROR on line 1: reader label out of order: 213\r\n   > ERROR on line 1: unknown reader label: 125\r\n   > 4\r\n   > ERROR on line 1: unexpected '.'\r\n   > ERROR on line 1: unknown reader label: 213\r\n   > ERROR on line 1: too many ')'s\r\n   > ERROR on line 1: unknown reader label: 125\r\n   > ERROR on line 1: too many ')'s\r\n   > ERROR on line 1: unknown reader label: 213\r\n   > ERROR on line 1: too many ')'s\r\n   > \r\n\r\nI got the core dump by feeding the quoted literal to (read) at the repl. Funnily, I don't get the errors when executing a top-level program.\r\n"}}