{"action":"created","issue":{"url":"https://api.github.com/repos/csound/csound/issues/448","labels_url":"https://api.github.com/repos/csound/csound/issues/448/labels{/name}","comments_url":"https://api.github.com/repos/csound/csound/issues/448/comments","events_url":"https://api.github.com/repos/csound/csound/issues/448/events","html_url":"https://github.com/csound/csound/issues/448","id":64871264,"number":448,"title":"--port flag causes glibc memory error when trying to exit using ctrl-c ","user":{"login":"PaulBatchelor","id":8139389,"avatar_url":"https://avatars.githubusercontent.com/u/8139389?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulBatchelor","html_url":"https://github.com/PaulBatchelor","followers_url":"https://api.github.com/users/PaulBatchelor/followers","following_url":"https://api.github.com/users/PaulBatchelor/following{/other_user}","gists_url":"https://api.github.com/users/PaulBatchelor/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulBatchelor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulBatchelor/subscriptions","organizations_url":"https://api.github.com/users/PaulBatchelor/orgs","repos_url":"https://api.github.com/users/PaulBatchelor/repos","events_url":"https://api.github.com/users/PaulBatchelor/events{/privacy}","received_events_url":"https://api.github.com/users/PaulBatchelor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-27T23:33:29Z","updated_at":"2015-03-28T08:25:20Z","closed_at":null,"body":"I'm currently using Csound 6.04 on a Linux machine running Jack. Typically, I can run Csound indefinitely and use \"ctrl-c\" to exit. However, adding the flag '--port=10000' causes this memory error when I try to exit that way: \r\n\r\n```\r\nerror: syntax error, unexpected '#'  (token \"#\") line 10:\r\n>>># <<<\r\nParsing failed due to invalid input!\r\nStopping on parser failure\r\n*** glibc detected *** csound: free(): invalid pointer: 0xb77613b8 ***\r\n======= Backtrace: =========\r\n/lib/libc.so.6(+0x78027)[0xb72e1027]\r\n/usr/local/lib/libcsound64.so.6.0(+0x381c0)[0xb74501c0]\r\n/usr/local/lib/libcsound64.so.6.0(+0x280336)[0xb7698336]\r\n/usr/local/lib/libcsound64.so.6.0(csoundDeleteTree+0x17)[0xb76983c9]\r\n/usr/local/lib/libcsound64.so.6.0(csoundParseOrc+0x8bb)[0xb76a52bd]\r\n/usr/local/lib/libcsound64.so.6.0(csoundCompileOrc+0x2b)[0xb76a34bb]\r\n/usr/local/lib/libcsound64.so.6.0(+0x1ad196)[0xb75c5196]\r\n/lib/libpthread.so.0(+0x6aea)[0xb7404aea]\r\n/lib/libc.so.6(clone+0x5e)[0xb734eb9e]\r\n======= Memory map: ========\r\n08048000-0804b000 r-xp 00000000 08:02 1884361    /usr/local/bin/csound\r\n0804b000-0804c000 rw-p 00002000 08:02 1884361    /usr/local/bin/csound\r\n091bc000-092c6000 rw-p 00000000 00:00 0          [heap]\r\nb4700000-b4721000 rw-p 00000000 00:00 0\r\nb4721000-b4800000 ---p 00000000 00:00 0\r\nb48fe000-b48ff000 rw-p 00000000 00:00 0\r\nb48ff000-b49ff000 rw-s 00000000 00:04 839221265  /SYSV00000000 (deleted)\r\nb49ff000-b4aff000 rw-s 00000000 00:04 839188488  /SYSV00000000 (deleted)\r\nb4aff000-b4b00000 ---p 00000000 00:00 0\r\nb4b00000-b5400000 rw-p 00000000 00:00 0\r\nb5400000-b5421000 rw-p 00000000 00:00 0\r\nb5421000-b5500000 ---p 00000000 00:00 0\r\nb5599000-b55d3000 rw-s 00000000 00:04 839155719  /SYSV00000000 (deleted)\r\n```\r\netc, etc..  \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/csound/csound/issues/comments/87190128","html_url":"https://github.com/csound/csound/issues/448#issuecomment-87190128","issue_url":"https://api.github.com/repos/csound/csound/issues/448","id":87190128,"user":{"login":"vlazzarini","id":6033815,"avatar_url":"https://avatars.githubusercontent.com/u/6033815?v=3","gravatar_id":"","url":"https://api.github.com/users/vlazzarini","html_url":"https://github.com/vlazzarini","followers_url":"https://api.github.com/users/vlazzarini/followers","following_url":"https://api.github.com/users/vlazzarini/following{/other_user}","gists_url":"https://api.github.com/users/vlazzarini/gists{/gist_id}","starred_url":"https://api.github.com/users/vlazzarini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlazzarini/subscriptions","organizations_url":"https://api.github.com/users/vlazzarini/orgs","repos_url":"https://api.github.com/users/vlazzarini/repos","events_url":"https://api.github.com/users/vlazzarini/events{/privacy}","received_events_url":"https://api.github.com/users/vlazzarini/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T08:25:20Z","updated_at":"2015-03-28T08:25:20Z","body":"You can exit csound clearly by sending the ##close## string. I think if you send scoreline_i  \"e 0\" , it will also close. But I will look at it. The server thread is liable to crash if not exited properly. "}}