{"action":"created","issue":{"url":"https://api.github.com/repos/sass/node-sass/issues/1672","repository_url":"https://api.github.com/repos/sass/node-sass","labels_url":"https://api.github.com/repos/sass/node-sass/issues/1672/labels{/name}","comments_url":"https://api.github.com/repos/sass/node-sass/issues/1672/comments","events_url":"https://api.github.com/repos/sass/node-sass/issues/1672/events","html_url":"https://github.com/sass/node-sass/issues/1672","id":172220934,"number":1672,"title":"Segmentation fault upon syntax error","user":{"login":"montchr","id":1757914,"avatar_url":"https://avatars.githubusercontent.com/u/1757914?v=3","gravatar_id":"","url":"https://api.github.com/users/montchr","html_url":"https://github.com/montchr","followers_url":"https://api.github.com/users/montchr/followers","following_url":"https://api.github.com/users/montchr/following{/other_user}","gists_url":"https://api.github.com/users/montchr/gists{/gist_id}","starred_url":"https://api.github.com/users/montchr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montchr/subscriptions","organizations_url":"https://api.github.com/users/montchr/orgs","repos_url":"https://api.github.com/users/montchr/repos","events_url":"https://api.github.com/users/montchr/events{/privacy}","received_events_url":"https://api.github.com/users/montchr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sass/node-sass/labels/BLOCKED","name":"BLOCKED","color":"e11d21"},{"url":"https://api.github.com/repos/sass/node-sass/labels/Bug%20-%20Maybe","name":"Bug - Maybe","color":"f7c6c7"},{"url":"https://api.github.com/repos/sass/node-sass/labels/Invalid%20-%20Not%20Reproducible","name":"Invalid - Not Reproducible","color":"ffffff"},{"url":"https://api.github.com/repos/sass/node-sass/labels/OS%20-%20OSX","name":"OS - OSX","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"saper","id":248374,"avatar_url":"https://avatars.githubusercontent.com/u/248374?v=3","gravatar_id":"","url":"https://api.github.com/users/saper","html_url":"https://github.com/saper","followers_url":"https://api.github.com/users/saper/followers","following_url":"https://api.github.com/users/saper/following{/other_user}","gists_url":"https://api.github.com/users/saper/gists{/gist_id}","starred_url":"https://api.github.com/users/saper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saper/subscriptions","organizations_url":"https://api.github.com/users/saper/orgs","repos_url":"https://api.github.com/users/saper/repos","events_url":"https://api.github.com/users/saper/events{/privacy}","received_events_url":"https://api.github.com/users/saper/received_events","type":"User","site_admin":false},"assignees":[{"login":"saper","id":248374,"avatar_url":"https://avatars.githubusercontent.com/u/248374?v=3","gravatar_id":"","url":"https://api.github.com/users/saper","html_url":"https://github.com/saper","followers_url":"https://api.github.com/users/saper/followers","following_url":"https://api.github.com/users/saper/following{/other_user}","gists_url":"https://api.github.com/users/saper/gists{/gist_id}","starred_url":"https://api.github.com/users/saper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saper/subscriptions","organizations_url":"https://api.github.com/users/saper/orgs","repos_url":"https://api.github.com/users/saper/repos","events_url":"https://api.github.com/users/saper/events{/privacy}","received_events_url":"https://api.github.com/users/saper/received_events","type":"User","site_admin":false}],"milestone":null,"comments":24,"created_at":"2016-08-19T21:08:24Z","updated_at":"2016-08-23T13:16:07Z","closed_at":null,"body":"I'm using `grunt-sass` to compile several files across my project. If there are no syntax errors, everything runs smoothly. If I run into a syntax error or any similar error, I encounter a segmentation fault. I've used `node-segfault-handler` to get the following log:\r\n\r\n```\r\nPID 25667 received SIGSEGV for address: 0x0\r\n0   segfault-handler.node               0x0000000101ce91c8 _ZL16segfault_handleriP9__siginfoPv + 280\r\n1   libsystem_platform.dylib            0x00007fff882e952a _sigtramp + 26\r\n2   binding.node                        0x000000010893f9d8 _ZN4Sass15names_to_colorsE + 30520\r\n3   binding.node                        0x0000000108825b45 _ZN4Sass13color_to_nameEd + 31\r\n4   binding.node                        0x0000000108893522 _ZN4Sass7InspectclEPNS_5ColorE + 968\r\n5   binding.node                        0x00000001088908fb _ZN4Sass7InspectclEPNS_11DeclarationE + 207\r\n6   binding.node                        0x00000001088a035f _ZN4Sass6OutputclEPNS_7RulesetE + 1185\r\n7   binding.node                        0x0000000108890383 _ZN4Sass7InspectclEPNS_5BlockE + 149\r\n8   binding.node                        0x00000001088357d6 _ZN4Sass7Context6renderEPNS_5BlockE + 50\r\n9   binding.node                        0x00000001088d2a7d sass_compiler_execute + 107\r\n10  binding.node                        0x00000001088d2697 _Z20sass_compile_contextP12Sass_ContextPN4Sass7ContextE + 34\r\n11  node                                0x000000010096e28a worker + 90\r\n12  node                                0x000000010097a494 uv__thread_start + 25\r\n13  libsystem_pthread.dylib             0x00007fff967e999d _pthread_body + 131\r\n14  libsystem_pthread.dylib             0x00007fff967e991a _pthread_body + 0\r\n15  libsystem_pthread.dylib             0x00007fff967e7351 thread_start + 13\r\n```\r\n\r\nThe issue also seems connected to how many files or how many `@import` statements are being processed. If I move all the files out of the watched directories and leave just one file, it fails on syntax error just fine without a segfault. If I add two, three, four files with just a few imports, it's still fine. But then I add another file with a lot of imports, and the segfault appears again. If I leave that last file where the segfault was just introduced, and I remove all the others, there's no issue, so it doesn't appear to be connected to particular files.\r\n\r\nI've searched for solutions to this issue for a while but I've picked up on few patterns between the failures and none of the other Sass segfault solutions out there have worked. I've tried:\r\n\r\n- `rm -rf node_modules && npm cache clear && npm install`\r\n- Downgrading `grunt-sass` to previous versions (which track previous versions of `node-sass`)\r\n- Downgrading `node` to previous versions\r\n- Disabling sourcemaps\r\n"},"comment":{"url":"https://api.github.com/repos/sass/node-sass/issues/comments/241726370","html_url":"https://github.com/sass/node-sass/issues/1672#issuecomment-241726370","issue_url":"https://api.github.com/repos/sass/node-sass/issues/1672","id":241726370,"user":{"login":"saper","id":248374,"avatar_url":"https://avatars.githubusercontent.com/u/248374?v=3","gravatar_id":"","url":"https://api.github.com/users/saper","html_url":"https://github.com/saper","followers_url":"https://api.github.com/users/saper/followers","following_url":"https://api.github.com/users/saper/following{/other_user}","gists_url":"https://api.github.com/users/saper/gists{/gist_id}","starred_url":"https://api.github.com/users/saper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saper/subscriptions","organizations_url":"https://api.github.com/users/saper/orgs","repos_url":"https://api.github.com/users/saper/repos","events_url":"https://api.github.com/users/saper/events{/privacy}","received_events_url":"https://api.github.com/users/saper/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T13:16:07Z","updated_at":"2016-08-23T13:16:07Z","body":"Thanks. The stacktrace also points to the color name conversion routines. In my file there are two files that grunt tries to process, `valid.scss` and `invalid.scss`. Do we also get a segmentation fault when there is only one file to be processed?"}}
{"actor":{"display_login":"saper"}}