{"action":"opened","issue":{"url":"https://api.github.com/repos/WebAssembly/binaryen/issues/259","repository_url":"https://api.github.com/repos/WebAssembly/binaryen","labels_url":"https://api.github.com/repos/WebAssembly/binaryen/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/WebAssembly/binaryen/issues/259/comments","events_url":"https://api.github.com/repos/WebAssembly/binaryen/issues/259/events","html_url":"https://github.com/WebAssembly/binaryen/issues/259","id":142085479,"number":259,"title":"Error in wasm::WasmBinaryWriter::write","user":{"login":"antelle","id":633557,"avatar_url":"https://avatars.githubusercontent.com/u/633557?v=3","gravatar_id":"","url":"https://api.github.com/users/antelle","html_url":"https://github.com/antelle","followers_url":"https://api.github.com/users/antelle/followers","following_url":"https://api.github.com/users/antelle/following{/other_user}","gists_url":"https://api.github.com/users/antelle/gists{/gist_id}","starred_url":"https://api.github.com/users/antelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antelle/subscriptions","organizations_url":"https://api.github.com/users/antelle/orgs","repos_url":"https://api.github.com/users/antelle/repos","events_url":"https://api.github.com/users/antelle/events{/privacy}","received_events_url":"https://api.github.com/users/antelle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-19T17:41:49Z","updated_at":"2016-03-19T17:41:49Z","closed_at":null,"body":"Hello!\r\n\r\nI've tried to compile a file to binary wasm. `asm2wasm` works ok, producing a 237-MB binary wast file. Buw `wasm-as` fails:\r\n\r\n```\r\n$ bin/wasm-as test.wast -o test.wasm\r\nAborted (core dumped)\r\n```\r\n\r\nHere's the stack trace:\r\n```\r\n(gdb) bt full\r\n#0  0x00007f46365af267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55\r\n        resultvar = 0\r\n        pid = 6771\r\n        selftid = 6771\r\n#1  0x00007f46365b0eca in __GI_abort () at abort.c:89\r\n        save_stage = 2\r\n        act = {__sigaction_handler = {sa_handler = 0x7ffe716de550, sa_sigaction = 0x7ffe716de550}, \r\n          sa_mask = {__val = {140730801448064, 813244400, 139939546087200, 8589934593, 17179869187, \r\n              140730801447856, 4263318, 7277816998805175600, 1449734235334599680, 4355662, \r\n              140730801448288, 965892840, 965929296, 59044, 59044, 40164432}}, sa_flags = 65279, \r\n          sa_restorer = 0x0}\r\n        sigs = {__val = {32, 0 <repeats 15 times>}}\r\n#2  0x0000000000419f15 in wasm::WasmBinaryWriter::write() ()\r\nNo symbol table info available.\r\n#3  0x000000000040b02a in main ()\r\n```\r\n\r\nI've compiled binaryen from today master branch, tested this on Mac OS X and Ubuntu."}}