{"action":"closed","issue":{"url":"https://api.github.com/repos/weechat/weechat/issues/442","labels_url":"https://api.github.com/repos/weechat/weechat/issues/442/labels{/name}","comments_url":"https://api.github.com/repos/weechat/weechat/issues/442/comments","events_url":"https://api.github.com/repos/weechat/weechat/issues/442/events","html_url":"https://github.com/weechat/weechat/issues/442","id":87963910,"number":442,"title":"Data from hook_process is corrupted after repeated usage in (relatively) long time","user":{"login":"tomoe-mami","id":760066,"avatar_url":"https://avatars.githubusercontent.com/u/760066?v=3","gravatar_id":"","url":"https://api.github.com/users/tomoe-mami","html_url":"https://github.com/tomoe-mami","followers_url":"https://api.github.com/users/tomoe-mami/followers","following_url":"https://api.github.com/users/tomoe-mami/following{/other_user}","gists_url":"https://api.github.com/users/tomoe-mami/gists{/gist_id}","starred_url":"https://api.github.com/users/tomoe-mami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomoe-mami/subscriptions","organizations_url":"https://api.github.com/users/tomoe-mami/orgs","repos_url":"https://api.github.com/users/tomoe-mami/repos","events_url":"https://api.github.com/users/tomoe-mami/events{/privacy}","received_events_url":"https://api.github.com/users/tomoe-mami/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/weechat/weechat/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-13T08:42:37Z","updated_at":"2015-07-25T07:17:05Z","closed_at":"2015-07-25T07:17:05Z","body":"When using hook_process/hook_process_hashtable to fetch content of URL, the returned data is prepended with one or more `\\x07` character after about 1 to 2 days of repeated usage.\r\n\r\nI have put [demo triggers for testing this in gist][1]. The trigger will check [this other gist][2] (contains only `AAAAAAAAAA` so it's easier for checking) every 5 minutes. If it detect corruption it will print an error message in core buffer and run `xxd` to dump the hex output. When you're testing the trigger, **do not upgrade/quit weechat**. It looks like doing that reset the state/curl/whatever it is handling hook_process/etc and you'll have to wait another 1-2 days to get the corrupted data.\r\n\r\nI'm using WeeChat 1.3-dev (git: v1.2-24-g799b0ca) [compiled on Jun  9 2015 09:22:20] but this issue has existed at least since v0.4.4-dev/v1.0 so I doubt the version matters.\r\n\r\n[1]: https://gist.github.com/tomoe-mami/e70213c5d1d159df7309\r\n[2]: https://gist.githubusercontent.com/anonymous/516b08a56c6b8c1c8ff5/raw"}}