{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/3734","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/3734/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/3734/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/3734/events","html_url":"https://github.com/kripken/emscripten/issues/3734","id":104439507,"number":3734,"title":"sourcemapper.js fails for \"-O0 -g4\" in 1.34.6 (linux)","user":{"login":"dgrechka","id":5637547,"avatar_url":"https://avatars.githubusercontent.com/u/5637547?v=3","gravatar_id":"","url":"https://api.github.com/users/dgrechka","html_url":"https://github.com/dgrechka","followers_url":"https://api.github.com/users/dgrechka/followers","following_url":"https://api.github.com/users/dgrechka/following{/other_user}","gists_url":"https://api.github.com/users/dgrechka/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrechka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrechka/subscriptions","organizations_url":"https://api.github.com/users/dgrechka/orgs","repos_url":"https://api.github.com/users/dgrechka/repos","events_url":"https://api.github.com/users/dgrechka/events{/privacy}","received_events_url":"https://api.github.com/users/dgrechka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-02T09:36:44Z","updated_at":"2015-09-02T21:56:08Z","closed_at":null,"body":"Hi,\r\n\r\nI run compilation with \"-O0 -g4 -Werror -s DISABLE_EXCEPTION_CATCHING=0 -s ALLOW_MEMORY_GROWTH=1 -s DEMANGLE_SUPPORT=1 -s ASSERTIONS=2\"\r\n\r\non\r\n```\r\nemcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.34.6\r\nclang version 3.7.0 \r\nTarget: x86_64-unknown-linux-gnu\r\nThread model: posix\r\nFound candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8\r\nFound candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.4\r\nFound candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9\r\nFound candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.2\r\nFound candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.0.1\r\nSelected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9\r\nCandidate multilib: .;@m64\r\nSelected multilib: .;@m64\r\n\r\nnode is v0.12.7\r\n```\r\n\r\n[emscripten_temp dir content is here](http://home.dgrechka.net/filestore/for_external/emscripten_temp.tar.gz)\r\n\r\nand get the following failure:\r\n\r\n```\r\n#\r\n# Fatal error in ../deps/v8/src/handles.h, line 48\r\n# CHECK(location_ != NULL) failed\r\n#\r\n\r\n==== C stack trace ===============================\r\n\r\n 1: V8_Fatal\r\n 2: v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::String::NewStringType, int)\r\n 3: node::StringBytes::Encode(v8::Isolate*, char const*, unsigned long, node::encoding)\r\n 4: node::Buffer::Utf8Slice(v8::FunctionCallbackInfo<v8::Value> const&)\r\n 5: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))\r\n 6: ??\r\n 7: ??\r\nTraceback (most recent call last):\r\n  File \"/home/dmitry/bin/emsdk_portable/emscripten/tag-1.34.6/emcc\", line 1802, in <module>\r\n    if debug_level >= 4: generate_source_map(target)\r\n  File \"/home/dmitry/bin/emsdk_portable/emscripten/tag-1.34.6/emcc\", line 1639, in generate_source_map\r\n    '--offset', str(offset)])\r\n  File \"/home/dmitry/bin/emsdk_portable/emscripten/tag-1.34.6/tools/jsrun.py\", line 75, in run_js\r\n    raise Exception('Expected the command ' + str(command) + ' to finish with return code ' + str(assert_returncode) + ', but it returned with code ' + str(proc.returncode) + ' instead! Output: ' + str(ret)[:error_limit])\r\nException: Expected the command ['node', '/home/dmitry/bin/emsdk_portable/emscripten/tag-1.34.6/tools/source-maps/sourcemapper.js', '/tmp/tmpJwbCOE/z3.bc.o.js.pp.js', '--sourceRoot', '/home/dmitry/Repos/z3/build', '--mapFileBaseName', 'z3.js', '--offset', '0'] to finish with return code 0, but it returned with code -4 instead! Output: \r\nMakefile:3212: recipe for target 'z3.js' failed\r\nmake: *** [z3.js] Error 1\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/137257251","html_url":"https://github.com/kripken/emscripten/issues/3734#issuecomment-137257251","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/3734","id":137257251,"user":{"login":"kripken","id":173661,"avatar_url":"https://avatars.githubusercontent.com/u/173661?v=3","gravatar_id":"","url":"https://api.github.com/users/kripken","html_url":"https://github.com/kripken","followers_url":"https://api.github.com/users/kripken/followers","following_url":"https://api.github.com/users/kripken/following{/other_user}","gists_url":"https://api.github.com/users/kripken/gists{/gist_id}","starred_url":"https://api.github.com/users/kripken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kripken/subscriptions","organizations_url":"https://api.github.com/users/kripken/orgs","repos_url":"https://api.github.com/users/kripken/repos","events_url":"https://api.github.com/users/kripken/events{/privacy}","received_events_url":"https://api.github.com/users/kripken/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T21:56:08Z","updated_at":"2015-09-02T21:56:08Z","body":"Worth trying with the latest version of node, might have already been fixed."}}