{"action":"created","issue":{"url":"https://api.github.com/repos/sass/libsass/issues/1443","labels_url":"https://api.github.com/repos/sass/libsass/issues/1443/labels{/name}","comments_url":"https://api.github.com/repos/sass/libsass/issues/1443/comments","events_url":"https://api.github.com/repos/sass/libsass/issues/1443/events","html_url":"https://github.com/sass/libsass/issues/1443","id":100675794,"number":1443,"title":"crash on invalid input when compiled with Visual Studio","user":{"login":"hmoffatt","id":7577172,"avatar_url":"https://avatars.githubusercontent.com/u/7577172?v=3","gravatar_id":"","url":"https://api.github.com/users/hmoffatt","html_url":"https://github.com/hmoffatt","followers_url":"https://api.github.com/users/hmoffatt/followers","following_url":"https://api.github.com/users/hmoffatt/following{/other_user}","gists_url":"https://api.github.com/users/hmoffatt/gists{/gist_id}","starred_url":"https://api.github.com/users/hmoffatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmoffatt/subscriptions","organizations_url":"https://api.github.com/users/hmoffatt/orgs","repos_url":"https://api.github.com/users/hmoffatt/repos","events_url":"https://api.github.com/users/hmoffatt/events{/privacy}","received_events_url":"https://api.github.com/users/hmoffatt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sass/libsass/labels/Bug%20-%20Confirmed","name":"Bug - Confirmed","color":"e11d21"},{"url":"https://api.github.com/repos/sass/libsass/labels/Bug%20-%20Regression","name":"Bug - Regression","color":"FF0066"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sass/libsass/milestones/4","html_url":"https://github.com/sass/libsass/milestones/3.3","labels_url":"https://api.github.com/repos/sass/libsass/milestones/4/labels","id":912458,"number":4,"title":"3.3","description":"- Better parser code\r\n- Selector functions\r\n- Parent Selector handling","creator":{"login":"mgreter","id":282293,"avatar_url":"https://avatars.githubusercontent.com/u/282293?v=3","gravatar_id":"","url":"https://api.github.com/users/mgreter","html_url":"https://github.com/mgreter","followers_url":"https://api.github.com/users/mgreter/followers","following_url":"https://api.github.com/users/mgreter/following{/other_user}","gists_url":"https://api.github.com/users/mgreter/gists{/gist_id}","starred_url":"https://api.github.com/users/mgreter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgreter/subscriptions","organizations_url":"https://api.github.com/users/mgreter/orgs","repos_url":"https://api.github.com/users/mgreter/repos","events_url":"https://api.github.com/users/mgreter/events{/privacy}","received_events_url":"https://api.github.com/users/mgreter/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":124,"state":"open","created_at":"2014-12-22T17:37:08Z","updated_at":"2015-08-13T10:05:43Z","due_on":"2015-07-31T22:00:00Z","closed_at":null},"comments":4,"created_at":"2015-08-13T02:14:21Z","updated_at":"2015-08-13T11:08:21Z","closed_at":null,"body":"When I compile libsass + sassc with Visual Studio 2013 (using the vcxproj included with libsass), and the input CSS source contains errors, sassc is crashing. \r\n\r\nMy input is simply:\r\n`foo { color: rgba(10,10,10,10); }`\r\n\r\nFirst an exception is thrown at error_handling.cpp:36, but immediately after this there is an invalid pointer operation in memory_manager.cpp:70 (Memory_Manager<T>::destroy, deleting np).\r\n\r\n\tsassc.exe!Sass::Memory_Manager<Sass::AST_Node>::destroy(Sass::AST_Node * np=0x004bac98) Line 70\tC++\r\n \tsassc.exe!operator delete<Sass::AST_Node>(void * np=0x004bac98, Sass::Memory_Manager<Sass::AST_Node> & mem={...}) Line 38\tC++\r\n \tsassc.exe!_GetSystemTimeAsFileTime@4\u001E()\tC++\r\n \tsassc.exe!Sass::Eval::operator()(Sass::Function_Call * c=0x0049b348) Line 644\tC++\r\n \tsassc.exe!Sass::Function_Call::perform(Sass::Operation<Sass::Expression *> * op=0x0038f128) Line 1084\tC++\r\n \tsassc.exe!Sass::Expand::operator()(Sass::Declaration * d=0x0049a9e8) Line 207\tC++\r\n \tsassc.exe!Sass::Declaration::perform(Sass::Operation<Sass::Statement *> * op=0x0038f120) Line 497\tC++\r\n \tsassc.exe!Sass::Expand::append_block(Sass::Block * b=0x0049a758) Line 587\tC++\r\n \tsassc.exe!Sass::Expand::operator()(Sass::Block * b=0x0049a758) Line 79\tC++\r\n \tsassc.exe!Sass::Block::perform(Sass::Operation<Sass::Statement *> * op=0x0038f120) Line 362\tC++\r\n \tsassc.exe!Sass::Expand::operator()(Sass::Ruleset * r=0x00498458) Line 104\tC++\r\n \tsassc.exe!Sass::Ruleset::perform(Sass::Operation<Sass::Statement *> * op=0x0038f120) Line 392\tC++\r\n \tsassc.exe!Sass::Expand::append_block(Sass::Block * b=0x00498290) Line 587\tC++\r\n \tsassc.exe!Sass::Expand::operator()(Sass::Block * b=0x00498290) Line 79\tC++\r\n \tsassc.exe!Sass::Block::perform(Sass::Operation<Sass::Statement *> * op=0x0038f120) Line 362\tC++\r\n \tsassc.exe!Sass::Context::parse_file() Line 324\tC++\r\n \tsassc.exe!sass_parse_block(Sass_Compiler * compiler=0x00499c70) Line 504\tC++\r\n \tsassc.exe!sass_compiler_parse(Sass_Compiler * compiler=0x00499c70) Line 655\tC++\r\n \tsassc.exe!sass_compile_context(Sass_Context * c_ctx=0x00497838, Sass::Context::Data cpp_opt={...}) Line 537\tC++\r\n \tsassc.exe!sass_compile_file_context(Sass_File_Context * file_ctx=0x00497838) Line 642\tC++\r\n \tsassc.exe!compile_file(Sass_Options * options=0x00497428, char * input_path=0x0048b897, char * outfile=0x00000000) Line 108\tC\r\n \tsassc.exe!main(int argc=2, char * * argv=0x0048b858) Line 284\tC\r\n \tsassc.exe!__tmainCRTStartup() Line 626\tC\r\n \tsassc.exe!mainCRTStartup() Line 466\tC\r\n \tkernel32.dll!@BaseThreadInitThunk@12\u001E()\tUnknown\r\n \tntdll.dll!___RtlUserThreadStart@8\u001E()\tUnknown\r\n \tntdll.dll!__RtlUserThreadStart@8\u001E()\tUnknown\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/25708792-crash-on-invalid-input-when-compiled-with-visual-studio?utm_campaign=plugin&utm_content=tracker%2F283068&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F283068&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/sass/libsass/issues/comments/130619597","html_url":"https://github.com/sass/libsass/issues/1443#issuecomment-130619597","issue_url":"https://api.github.com/repos/sass/libsass/issues/1443","id":130619597,"user":{"login":"xzyfer","id":579928,"avatar_url":"https://avatars.githubusercontent.com/u/579928?v=3","gravatar_id":"","url":"https://api.github.com/users/xzyfer","html_url":"https://github.com/xzyfer","followers_url":"https://api.github.com/users/xzyfer/followers","following_url":"https://api.github.com/users/xzyfer/following{/other_user}","gists_url":"https://api.github.com/users/xzyfer/gists{/gist_id}","starred_url":"https://api.github.com/users/xzyfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xzyfer/subscriptions","organizations_url":"https://api.github.com/users/xzyfer/orgs","repos_url":"https://api.github.com/users/xzyfer/repos","events_url":"https://api.github.com/users/xzyfer/events{/privacy}","received_events_url":"https://api.github.com/users/xzyfer/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T11:08:21Z","updated_at":"2015-08-13T11:08:21Z","body":"I can confirm reverting 222d8c0 fixes the issue. Do have a time to take a look @mgreter? I can't see the issue but I'm not feeling the greatest atm.\r\n\r\nAs as aside we shouldn't be throwing an error here, but removing the error doesn't fix the real issue."}}