{"action":"created","issue":{"url":"https://api.github.com/repos/nukedzn/node-tcl/issues/1","labels_url":"https://api.github.com/repos/nukedzn/node-tcl/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/nukedzn/node-tcl/issues/1/comments","events_url":"https://api.github.com/repos/nukedzn/node-tcl/issues/1/events","html_url":"https://github.com/nukedzn/node-tcl/issues/1","id":94818754,"number":1,"title":"core dump when trying to run the basic example","user":{"login":"unmanifest","id":4008865,"avatar_url":"https://avatars.githubusercontent.com/u/4008865?v=3","gravatar_id":"","url":"https://api.github.com/users/unmanifest","html_url":"https://github.com/unmanifest","followers_url":"https://api.github.com/users/unmanifest/followers","following_url":"https://api.github.com/users/unmanifest/following{/other_user}","gists_url":"https://api.github.com/users/unmanifest/gists{/gist_id}","starred_url":"https://api.github.com/users/unmanifest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unmanifest/subscriptions","organizations_url":"https://api.github.com/users/unmanifest/orgs","repos_url":"https://api.github.com/users/unmanifest/repos","events_url":"https://api.github.com/users/unmanifest/events{/privacy}","received_events_url":"https://api.github.com/users/unmanifest/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nukedzn/node-tcl/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"uditha-atukorala","id":2161935,"avatar_url":"https://avatars.githubusercontent.com/u/2161935?v=3","gravatar_id":"","url":"https://api.github.com/users/uditha-atukorala","html_url":"https://github.com/uditha-atukorala","followers_url":"https://api.github.com/users/uditha-atukorala/followers","following_url":"https://api.github.com/users/uditha-atukorala/following{/other_user}","gists_url":"https://api.github.com/users/uditha-atukorala/gists{/gist_id}","starred_url":"https://api.github.com/users/uditha-atukorala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uditha-atukorala/subscriptions","organizations_url":"https://api.github.com/users/uditha-atukorala/orgs","repos_url":"https://api.github.com/users/uditha-atukorala/repos","events_url":"https://api.github.com/users/uditha-atukorala/events{/privacy}","received_events_url":"https://api.github.com/users/uditha-atukorala/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-07-13T21:43:21Z","updated_at":"2015-10-29T14:09:58Z","closed_at":"2015-10-28T19:43:18Z","body":"Trying to run the following code after building tcl.node.\r\n\r\n```javascript\r\nvar tcl = require( 'tcl' );\r\n \r\n// synchronous commands \r\nconsole.log( tcl.version() );\r\nconsole.log( tcl.cmdSync( 'info tclversion' ) );\r\nconsole.log( tcl.evalSync( 'info tclversion' ) );\r\n```\r\n\r\nUsing iojs on Fedora 20 - gcc: 4.8.3; System info:\r\n```\r\n$ node -v\r\nv1.2.0\r\n$ npm -v\r\n2.5.1\r\n```\r\nGot similar results with node.js 0.10 and 0.12. Appreciate any help.\r\n\r\nI get a core dump (see below):\r\n```\r\n/usr/local/bin/node bar.js\r\n*** Error in `/usr/local/bin/node': double free or corruption (fasttop): 0x00007f32dc00a450 ***\r\n======= Backtrace: =========\r\n/lib64/libc.so.6[0x3aa8475a4f]\r\n/lib64/libc.so.6[0x3aa847cd78]\r\n/lib64/libc.so.6[0x3aa847f5c0]\r\n/lib64/libc.so.6(realloc+0xd2)[0x3aa8480272]\r\n/lib64/libtcl8.5.so(Tcl_AttemptSetObjLength+0xa6)[0x3aa98c34d6]\r\n/lib64/libtcl8.5.so[0x3aa98c368b]\r\n/lib64/libtcl8.5.so(Tcl_AppendLimitedToObj+0x91)[0x3aa98c3801]\r\n/lib64/libtcl8.5.so[0x3aa98ac4b4]\r\n/lib64/libtcl8.5.so[0x3aa98997ce]\r\n/lib64/libtcl8.5.so(Tcl_CreateInterp+0x5ab)[0x3aa983260b]\r\n/home/me/tmp/tickle/node_modules/tcl/build/Debug/tcl.node(_ZN10TaskRunner6workerEv+0x27)[0x7f32e1d17c53]\r\n/home/me/tmp/tickle/node_modules/tcl/build/Debug/tcl.node(_ZNKSt7_Mem_fnIM10TaskRunnerFvvEEclIIEvEEvPS0_DpOT_+0x65)[0x7f32e1d1b403]\r\n/home/me/tmp/tickle/node_modules/tcl/build/Debug/tcl.node(_ZNSt12_Bind_simpleIFSt7_Mem_fnIM10TaskRunnerFvvEEPS1_EE9_M_invokeIILm0EEEEvSt12_Index_tupleIIXspT_EEE+0x43)[0x7f32e1d1b379]\r\n/home/me/tmp/tickle/node_modules/tcl/build/Debug/tcl.node(_ZNSt12_Bind_simpleIFSt7_Mem_fnIM10TaskRunnerFvvEEPS1_EEclEv+0x1b)[0x7f32e1d1b2a7]\r\n/home/me/tmp/tickle/node_modules/tcl/build/Debug/tcl.node(_ZNSt6thread5_ImplISt12_Bind_simpleIFSt7_Mem_fnIM10TaskRunnerFvvEEPS3_EEE6_M_runEv+0x1c)[0x7f32e1d1b264]\r\n/lib64/libstdc++.so.6[0x3aab8b5600]\r\n/lib64/libpthread.so.0[0x3aa8c07ee5]\r\n/lib64/libc.so.6(clone+0x6d)[0x3aa84f4d1d]\r\n======= Memory map: ========\r\n00400000-0106a000 r-xp 00000000 fd:03 2098999                            /opt/iojs-v1.2.0-linux-x64/bin/iojs\r\n01269000-01281000 rw-p 00c69000 fd:03 2098999                            /opt/iojs-v1.2.0-linux-x64/bin/iojs\r\n01281000-0128d000 rw-p 00000000 00:00 0 \r\n01672000-01873000 rw-p 00000000 00:00 0                                  [heap]\r\n3aa8000000-3aa8020000 r-xp 00000000 fd:00 133042                         /usr/lib64/ld-2.18.so\r\n3aa821f000-3aa8220000 r--p 0001f000 fd:00 133042                         /usr/lib64/ld-2.18.so\r\n3aa8220000-3aa8221000 rw-p 00020000 fd:00 133042                         /usr/lib64/ld-2.18.so\r\n3aa8221000-3aa8222000 rw-p 00000000 00:00 0 \r\n3aa8400000-3aa85b4000 r-xp 00000000 fd:00 133515                         /usr/lib64/libc-2.18.so\r\n3aa85b4000-3aa87b3000 ---p 001b4000 fd:00 133515                         /usr/lib64/libc-2.18.so\r\n3aa87b3000-3aa87b7000 r--p 001b3000 fd:00 133515                         /usr/lib64/libc-2.18.so\r\n3aa87b7000-3aa87b9000 rw-p 001b7000 fd:00 133515                         /usr/lib64/libc-2.18.so\r\n3aa87b9000-3aa87be000 rw-p 00000000 00:00 0 \r\n3aa8800000-3aa8803000 r-xp 00000000 fd:00 150209                         /usr/lib64/libdl-2.18.so\r\n3aa8803000-3aa8a02000 ---p 00003000 fd:00 150209                         /usr/lib64/libdl-2.18.so\r\n3aa8a02000-3aa8a03000 r--p 00002000 fd:00 150209                         /usr/lib64/libdl-2.18.so\r\n3aa8a03000-3aa8a04000 rw-p 00003000 fd:00 150209                         /usr/lib64/libdl-2.18.so\r\n3aa8c00000-3aa8c18000 r-xp 00000000 fd:00 136893                         /usr/lib64/libpthread-2.18.so\r\n3aa8c18000-3aa8e17000 ---p 00018000 fd:00 136893                         /usr/lib64/libpthread-2.18.so\r\n3aa8e17000-3aa8e18000 r--p 00017000 fd:00 136893                         /usr/lib64/libpthread-2.18.so\r\n3aa8e18000-3aa8e19000 rw-p 00018000 fd:00 136893                         /usr/lib64/libpthread-2.18.so\r\n3aa8e19000-3aa8e1d000 rw-p 00000000 00:00 0 \r\n3aa9000000-3aa9105000 r-xp 00000000 fd:00 150215                         /usr/lib64/libm-2.18.so\r\n3aa9105000-3aa9305000 ---p 00105000 fd:00 150215                         /usr/lib64/libm-2.18.so\r\n3aa9305000-3aa9306000 r--p 00105000 fd:00 150215                         /usr/lib64/libm-2.18.so\r\n3aa9306000-3aa9307000 rw-p 00106000 fd:00 150215                         /usr/lib64/libm-2.18.so\r\n3aa9800000-3aa991a000 r-xp 00000000 fd:00 133162                         /usr/lib64/libtcl8.5.so\r\n3aa991a000-3aa9b19000 ---p 0011a000 fd:00 133162                         /usr/lib64/libtcl8.5.so\r\n3aa9b19000-3aa9b1e000 r--p 00119000 fd:00 133162                         /usr/lib64/libtcl8.5.so\r\n3aa9b1e000-3aa9b25000 rw-p 0011e000 fd:00 133162                         /usr/lib64/libtcl8.5.so\r\n3aa9b25000-3aa9b26000 rw-p 00000000 00:00 0 \r\n3aa9c00000-3aa9c15000 r-xp 00000000 fd:00 150544                         /usr/lib64/libgcc_s-4.8.3-20140911.so.1\r\n3aa9c15000-3aa9e14000 ---p 00015000 fd:00 150544                         /usr/lib64/libgcc_s-4.8.3-20140911.so.1\r\n3aa9e14000-3aa9e15000 r--p 00014000 fd:00 150544                         /usr/lib64/libgcc_s-4.8.3-20140911.so.1\r\n3aa9e15000-3aa9e16000 rw-p 00015000 fd:00 150544                         /usr/lib64/libgcc_s-4.8.3-20140911.so.1\r\n3aaa800000-3aaa807000 r-xp 00000000 fd:00 133192                         /usr/lib64/librt-2.18.so\r\n3aaa807000-3aaaa06000 ---p 00007000 fd:00 133192                         /usr/lib64/librt-2.18.so\r\n3aaaa06000-3aaaa07000 r--p 00006000 fd:00 133192                         /usr/lib64/librt-2.18.so\r\n3aaaa07000-3aaaa08000 rw-p 00007000 fd:00 133192                         /usr/lib64/librt-2.18.so\r\n3aab800000-3aab8e9000 r-xp 00000000 fd:00 145105                         /usr/lib64/libstdc++.so.6.0.19\r\n3aab8e9000-3aabae9000 ---p 000e9000 fd:00 145105                         /usr/lib64/libstdc++.so.6.0.19\r\n3aabae9000-3aabaf1000 r--p 000e9000 fd:00 145105                         /usr/lib64/libstdc++.so.6.0.19\r\n3aabaf1000-3aabaf3000 rw-p 000f1000 fd:00 145105                         /usr/lib64/libstdc++.so.6.0.19\r\n3aabaf3000-3aabb08000 rw-p 00000000 00:00 0 \r\n43c8f518000-43c8f519000 r-xp 00000000 00:00 0 \r\n9ed79800000-9ed79900000 rw-p 00000000 00:00 0 \r\nac2dc000000-ac2dc015000 rw-p 00000000 00:00 0 \r\nebd96100000-ebd96200000 rw-p 00000000 00:00 0 \r\n11279a69e000-11279a6ae000 rw-p 00000000 00:00 0 \r\n11279a6ae000-11279a89e000 ---p 00000000 00:00 0 \r\n16ed60567000-16ed60580000 ---p 00000000 00:00 0 \r\n16ed60580000-16ed605a0000 rw-p 00000000 00:00 0 \r\n16ed605a0000-16ed605c7000 ---p 00000000 00:00 0 \r\n18b97e30f000-18b97e500000 ---p 00000000 00:00 0 \r\n18b97e500000-18b97e505000 rw-p 00000000 00:00 0 \r\n18b97e505000-18b97e506000 ---p 00000000 00:00 0 \r\n18b97e506000-18b97e507000 rwxp 00000000 00:00 0 \r\n18b97e507000-18b97e600000 ---p 00000000 00:00 0 \r\n18b97e600000-18b97e605000 rw-p 00000000 00:00 0 \r\n18b97e605000-18b97e606000 ---p 00000000 00:00 0 \r\n18b97e606000-18b97e607000 rwxp 00000000 00:00 0 \r\n18b97e607000-18b97e700000 ---p 00000000 00:00 0 \r\n18b97e700000-18b97e705000 rw-p 00000000 00:00 0 \r\n18b97e705000-18b97e706000 ---p 00000000 00:00 0 \r\n18b97e706000-18b97e707000 rwxp 00000000 00:00 0 \r\n18b97e707000-18b97e800000 ---p 00000000 00:00 0 \r\n18b97e800000-18b97e805000 rw-p 00000000 00:00 0 \r\n18b97e805000-18b97e806000 ---p 00000000 00:00 0 \r\n18b97e806000-18b97e8ff000 rwxp 00000000 00:00 0 \r\n18b97e8ff000-18b99e30f000 ---p 00000000 00:00 0 \r\n193d37d00000-193d37d25000 rw-p 00000000 00:00 0 \r\n2bb7ba000000-2bb7ba200000 rw-p 00000000 00:00 0 \r\n2bb7ba200000-2bb7bb000000 ---p 00000000 00:00 0 \r\n2bb7bb000000-2bb7bb200000 rw-p 00000000 00:00 0 \r\n2bb7bb200000-2bb7bc000000 ---p 00000000 00:00 0 \r\n3040f1700000-3040f1725000 rw-p 00000000 00:00 0 \r\n31b7a9a00000-31b7a9b00000 rw-p 00000000 00:00 0 \r\n330f2f600000-330f2f635000 rw-p 00000000 00:00 0 \r\n7f32d5ad7000-7f32dc000000 r--p 00000000 fd:00 284951                     /usr/lib/locale/locale-archive\r\n7f32dc000000-7f32dc021000 rw-p 00000000 00:00 0 \r\n7f32dc021000-7f32e0000000 ---p 00000000 00:00 0 \r\n7f32e127f000-7f32e128a000 r-xp 00000000 fd:00 136789                     /usr/lib64/libnss_files-2.18.so\r\n7f32e128a000-7f32e1489000 ---p 0000b000 fd:00 136789                     /usr/lib64/libnss_files-2.18.so\r\n7f32e1489000-7f32e148a000 r--p 0000a000 fd:00 136789                     /usr/lib64/libnss_files-2.18.so\r\n7f32e148a000-7f32e148b000 rw-p 0000b000 fd:00 136789                     /usr/lib64/libnss_files-2.18.so\r\n7f32e14ab000-7f32e14ac000 ---p 00000000 00:00 0 \r\n7f32e14ac000-7f32e1cfc000 rw-p 00000000 00:00 0                          [stack:16685]\r\n7f32e1cfc000-7f32e1d23000 r-xp 00000000 fd:06 1974737                    /home/me/tmp/tickle/node_modules/tcl/build/Debug/tcl.node\r\n7f32e1d23000-7f32e1f22000 ---p 00027000 fd:06 1974737                    /home/me/tmp/tickle/node_modules/tcl/build/Debug/tcl.node\r\n7f32e1f22000-7f32e1f23000 r--p 00026000 fd:06 1974737                    /home/me/tmp/tickle/node_modules/tcl/build/Debug/tcl.node\r\n7f32e1f23000-7f32e1f25000 rw-p 00027000 fd:06 1974737                    /home/me/tmp/tickle/node_modules/tcl/build/Debug/tcl.node\r\n7f32e1f25000-7f32e1f26000 ---p 00000000 00:00 0 \r\n7f32e1f26000-7f32e2776000 rw-p 00000000 00:00 0                          [stack:16684]\r\n7f32e2776000-7f32e2777000 ---p 00000000 00:00 0 \r\n7f32e2777000-7f32e2fc7000 rw-p 00000000 00:00 0                          [stack:16683]\r\n7f32e2fc7000-7f32e2fc8000 ---p 00000000 00:00 0 \r\n7f32e2fc8000-7f32e3818000 rw-p 00000000 00:00 0                          [stack:16682]\r\n7f32e3818000-7f32e3819000 ---p 00000000 00:00 0 \r\n7f32e3819000-7f32e4069000 rw-p 00000000 00:00 0                          [stack:16681]\r\n7f32e4069000-7f32e406a000 ---p 00000000 00:00 0 \r\n7f32e406a000-7f32e48c0000 rw-p 00000000 00:00 0                          [stack:16680]\r\n7f32e48df000-7f32e48e1000 rw-p 00000000 00:00 0 \r\n7fffa2314000-7fffa2335000 rw-p 00000000 00:00 0                          [stack]\r\n7fffa23d8000-7fffa23da000 r--p 00000000 00:00 0                          [vvar]\r\n7fffa23da000-7fffa23dc000 r-xp 00000000 00:00 0                          [vdso]\r\nffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]\r\nzsh: abort (core dumped)  /usr/local/bin/node bar.js\r\n ```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nukedzn/node-tcl/issues/comments/152192216","html_url":"https://github.com/nukedzn/node-tcl/issues/1#issuecomment-152192216","issue_url":"https://api.github.com/repos/nukedzn/node-tcl/issues/1","id":152192216,"user":{"login":"aidanhs","id":1050652,"avatar_url":"https://avatars.githubusercontent.com/u/1050652?v=3","gravatar_id":"","url":"https://api.github.com/users/aidanhs","html_url":"https://github.com/aidanhs","followers_url":"https://api.github.com/users/aidanhs/followers","following_url":"https://api.github.com/users/aidanhs/following{/other_user}","gists_url":"https://api.github.com/users/aidanhs/gists{/gist_id}","starred_url":"https://api.github.com/users/aidanhs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidanhs/subscriptions","organizations_url":"https://api.github.com/users/aidanhs/orgs","repos_url":"https://api.github.com/users/aidanhs/repos","events_url":"https://api.github.com/users/aidanhs/events{/privacy}","received_events_url":"https://api.github.com/users/aidanhs/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T14:09:58Z","updated_at":"2015-10-29T14:09:58Z","body":"You could simulate async (even if you only have sync) by using setTimeout."}}