{"action":"created","issue":{"url":"https://api.github.com/repos/sass/libsass/issues/875","labels_url":"https://api.github.com/repos/sass/libsass/issues/875/labels{/name}","comments_url":"https://api.github.com/repos/sass/libsass/issues/875/comments","events_url":"https://api.github.com/repos/sass/libsass/issues/875/events","html_url":"https://github.com/sass/libsass/issues/875","id":56429810,"number":875,"title":"`sass_make_error` and `sass_make_warning` cause segfault in custom user functions on windows","user":{"login":"asottile","id":1810591,"avatar_url":"https://avatars.githubusercontent.com/u/1810591?v=3","gravatar_id":"","url":"https://api.github.com/users/asottile","html_url":"https://github.com/asottile","followers_url":"https://api.github.com/users/asottile/followers","following_url":"https://api.github.com/users/asottile/following{/other_user}","gists_url":"https://api.github.com/users/asottile/gists{/gist_id}","starred_url":"https://api.github.com/users/asottile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asottile/subscriptions","organizations_url":"https://api.github.com/users/asottile/orgs","repos_url":"https://api.github.com/users/asottile/repos","events_url":"https://api.github.com/users/asottile/events{/privacy}","received_events_url":"https://api.github.com/users/asottile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-03T20:10:04Z","updated_at":"2015-02-04T05:25:47Z","closed_at":null,"body":"I've prepped a branch to demonstrate this (with minor patches from 3.1.0 to get one file to build):\r\n\r\nhttps://github.com/asottile/libsass/tree/bug_report\r\n\r\nI've debugged this a little bit, it appears that a basically-garbage entry gets allocated into `ctx.mem` while processing the result of the custom C function.\r\n\r\nI've also taken the same patch and applied it on top of master and received the same output.\r\n\r\nThis is kinda blocking my work here: https://github.com/dahlia/libsass-python/pull/44"},"comment":{"url":"https://api.github.com/repos/sass/libsass/issues/comments/72792895","html_url":"https://github.com/sass/libsass/issues/875#issuecomment-72792895","issue_url":"https://api.github.com/repos/sass/libsass/issues/875","id":72792895,"user":{"login":"asottile","id":1810591,"avatar_url":"https://avatars.githubusercontent.com/u/1810591?v=3","gravatar_id":"","url":"https://api.github.com/users/asottile","html_url":"https://github.com/asottile","followers_url":"https://api.github.com/users/asottile/followers","following_url":"https://api.github.com/users/asottile/following{/other_user}","gists_url":"https://api.github.com/users/asottile/gists{/gist_id}","starred_url":"https://api.github.com/users/asottile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asottile/subscriptions","organizations_url":"https://api.github.com/users/asottile/orgs","repos_url":"https://api.github.com/users/asottile/repos","events_url":"https://api.github.com/users/asottile/events{/privacy}","received_events_url":"https://api.github.com/users/asottile/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T05:25:46Z","updated_at":"2015-02-04T05:25:46Z","body":"Here's a run in appveyor demonstrating the issue: https://ci.appveyor.com/project/asottile/libsass/build/1.0.9"}}