{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/3318","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/3318/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/3318/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/3318/events","html_url":"https://github.com/kripken/emscripten/pull/3318","id":66918397,"number":3318,"title":"Access a literal wide string after a memory growth [embind]","user":{"login":"canning-duck","id":11757268,"avatar_url":"https://avatars.githubusercontent.com/u/11757268?v=3","gravatar_id":"","url":"https://api.github.com/users/canning-duck","html_url":"https://github.com/canning-duck","followers_url":"https://api.github.com/users/canning-duck/followers","following_url":"https://api.github.com/users/canning-duck/following{/other_user}","gists_url":"https://api.github.com/users/canning-duck/gists{/gist_id}","starred_url":"https://api.github.com/users/canning-duck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canning-duck/subscriptions","organizations_url":"https://api.github.com/users/canning-duck/orgs","repos_url":"https://api.github.com/users/canning-duck/repos","events_url":"https://api.github.com/users/canning-duck/events{/privacy}","received_events_url":"https://api.github.com/users/canning-duck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T15:38:18Z","updated_at":"2015-04-08T07:46:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kripken/emscripten/pulls/3318","html_url":"https://github.com/kripken/emscripten/pull/3318","diff_url":"https://github.com/kripken/emscripten/pull/3318.diff","patch_url":"https://github.com/kripken/emscripten/pull/3318.patch"},"body":"Fix the issue #3299.\r\n\r\n*Important*: I've added \"-s ALLOW_MEMORY_GROWTH=1\" to the compilation of the tests in test_embind() of tests/test_other.py.\r\n\r\nTests : other.test_embind + the following random 100:\r\n\r\n* asm1i.test_strstr\r\n* asm2g.test_emscripten_get_compiler_setting\r\n* asm3i.test_stack_varargs\r\n* asm2.test_stdvec\r\n* asm3i.test_trickystring\r\n* asm2nn.test_longjmp_throw\r\n* asm2nn.test_ptrtoint\r\n* asm2nn.test_dynamic_cast_2\r\n* asm3i.test_lua\r\n* asm2nn.test_fuzz\r\n* default.test_atomic\r\n* asm2g.test_unsigned\r\n* asm2.test_locale\r\n* asm3i.test_bigarray\r\n* default.test_cases\r\n* asm2.test_sintvars\r\n* asm2f.test_parseInt\r\n* asm3.test_safe_dyncalls\r\n* asm3i.test_stack_align\r\n* asm2g.test_memmove3\r\n* asm3.test_inlinejs3\r\n* asm3i.test_memcpy3\r\n* asm2g.test_exceptions_refcount\r\n* asm1.test_systypes\r\n* asm2f.test_dlfcn_mallocs\r\n* asm1.test_openjpeg\r\n* asm1.test_longjmp_funcptr\r\n* asm3.test_unicode_js_library\r\n* asm3.test_cases\r\n* asm2.test_strcmp_uni\r\n* asm2f.test_multiply_defined_symbols\r\n* asm1i.test_corruption_3\r\n* asm2.test_exceptions_std\r\n* asm2.test_simd5\r\n* asm1i.test_alloca\r\n* asm2g.test_tracing\r\n* asm1i.test_std_cout_new\r\n* asm3.test_frexp\r\n* asm2.test_sintvars\r\n* asm2.test_the_bullet\r\n* asm2nn.test_unistd_sleep\r\n* asm2f.test_systypes\r\n* asm2g.test_sizeof\r\n* asm3i.test_funcs\r\n* asm2.test_sscanf_3\r\n* asm2nn.test_strstr\r\n* asm2nn.test_funcptr_namecollide\r\n* asm1i.test_systypes\r\n* asm2nn.test_i64_umul\r\n* asm3i.test_double_varargs\r\n* asm1i.test_math_lgamma\r\n* asm2nn.test_inherit\r\n* asm3.test_unsigned\r\n* asm1i.test_atexit\r\n* asm1i.test_stat\r\n* asm3.test_line_endings\r\n* asm2g.test_getopt\r\n* asm1i.test_dlfcn_data_and_fptr\r\n* asm2.test_sscanf_skip\r\n* asm2nn.test_fs_emptyPath\r\n* asm2f.test_stack_overflow\r\n* asm1i.test_errar\r\n* asm3.test_sscanf_whitespace\r\n* asm2nn.test_tcgetattr\r\n* asm3i.test_alloca\r\n* default.test_freetype\r\n* asm1.test_simd5\r\n* asm2f.test_environ\r\n* asm3i.test_unicode_js_library\r\n* asm2g.test_zerodiv\r\n* default.test_inherit\r\n* asm1.test_polymorph\r\n* asm1.test_time\r\n* asm3.test_istream\r\n* asm2.test_math\r\n* asm2f.test_corruption\r\n* asm1i.test_strptime_reentrant\r\n* asm2nn.test_random\r\n* asm2g.test_openjpeg\r\n* asm1i.test_fasta\r\n* asm3.test_memcpy3\r\n* asm1.test_unistd_misc\r\n* asm1i.test_unistd_login\r\n* asm3i.test_strtod\r\n* asm2f.test_strtol_bin\r\n* asm3.test_trickystring\r\n* asm2nn.test_dlfcn_varargs\r\n* default.test_flexarray_struct\r\n* asm2f.test_locale\r\n* asm2nn.test_embind_2\r\n* asm3.test_fast_math\r\n* asm3.test_the_bullet\r\n* asm3.test_dlfcn_qsort\r\n* asm1.test_nestedstructs\r\n* asm3.test_unistd_close\r\n* asm3.test_strndup\r\n* asm2nn.test_fcvt\r\n* asm1i.test_trickystring\r\n* default.test_strftime\r\n* asm2g.test_dynamic_cast\r\n* asm1.test_complex\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/90833471","html_url":"https://github.com/kripken/emscripten/pull/3318#issuecomment-90833471","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/3318","id":90833471,"user":{"login":"canning-duck","id":11757268,"avatar_url":"https://avatars.githubusercontent.com/u/11757268?v=3","gravatar_id":"","url":"https://api.github.com/users/canning-duck","html_url":"https://github.com/canning-duck","followers_url":"https://api.github.com/users/canning-duck/followers","following_url":"https://api.github.com/users/canning-duck/following{/other_user}","gists_url":"https://api.github.com/users/canning-duck/gists{/gist_id}","starred_url":"https://api.github.com/users/canning-duck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canning-duck/subscriptions","organizations_url":"https://api.github.com/users/canning-duck/orgs","repos_url":"https://api.github.com/users/canning-duck/repos","events_url":"https://api.github.com/users/canning-duck/events{/privacy}","received_events_url":"https://api.github.com/users/canning-duck/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T07:46:44Z","updated_at":"2015-04-08T07:46:44Z","body":"force_memory_growth() raises an \"abort\" exception and makes the test fail if memory growth is deactivated. is there a way to check this is the case / avoid the failure? try/catch catches the exception but does not prevent the test failure."}}