{"action":"created","issue":{"url":"https://api.github.com/repos/buaazp/zimg/issues/132","labels_url":"https://api.github.com/repos/buaazp/zimg/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/buaazp/zimg/issues/132/comments","events_url":"https://api.github.com/repos/buaazp/zimg/issues/132/events","html_url":"https://github.com/buaazp/zimg/issues/132","id":129644328,"number":132,"title":"多线程upload图片，进程直接崩溃退出","user":{"login":"linjunnan","id":16936086,"avatar_url":"https://avatars.githubusercontent.com/u/16936086?v=3","gravatar_id":"","url":"https://api.github.com/users/linjunnan","html_url":"https://github.com/linjunnan","followers_url":"https://api.github.com/users/linjunnan/followers","following_url":"https://api.github.com/users/linjunnan/following{/other_user}","gists_url":"https://api.github.com/users/linjunnan/gists{/gist_id}","starred_url":"https://api.github.com/users/linjunnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linjunnan/subscriptions","organizations_url":"https://api.github.com/users/linjunnan/orgs","repos_url":"https://api.github.com/users/linjunnan/repos","events_url":"https://api.github.com/users/linjunnan/events{/privacy}","received_events_url":"https://api.github.com/users/linjunnan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-29T02:21:18Z","updated_at":"2016-01-29T06:04:33Z","closed_at":null,"body":"zimg在做图片上传的性能测试时，遇到多线程情况下崩溃的问题。\r\n又抓到错误：PANIC: unprotected error in call to Lua API (jpgempt to call a number value)\r\n测试版本：zimg-3.1.0\r\n测试环境：本地机器4核，zimg默认开启4线程\r\n测试方法：本地命令行上传图片：\r\nforeach -w 100 -c 10000 \"curl -voa -F 'filename=@/root/test.jpg' 'http://192.168.27.139:60000/upload'\" >/dev/null 2>&1\r\n现象：进程退出，并无输出任何错误日志"},"comment":{"url":"https://api.github.com/repos/buaazp/zimg/issues/comments/176591069","html_url":"https://github.com/buaazp/zimg/issues/132#issuecomment-176591069","issue_url":"https://api.github.com/repos/buaazp/zimg/issues/132","id":176591069,"user":{"login":"linjunnan","id":16936086,"avatar_url":"https://avatars.githubusercontent.com/u/16936086?v=3","gravatar_id":"","url":"https://api.github.com/users/linjunnan","html_url":"https://github.com/linjunnan","followers_url":"https://api.github.com/users/linjunnan/followers","following_url":"https://api.github.com/users/linjunnan/following{/other_user}","gists_url":"https://api.github.com/users/linjunnan/gists{/gist_id}","starred_url":"https://api.github.com/users/linjunnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linjunnan/subscriptions","organizations_url":"https://api.github.com/users/linjunnan/orgs","repos_url":"https://api.github.com/users/linjunnan/repos","events_url":"https://api.github.com/users/linjunnan/events{/privacy}","received_events_url":"https://api.github.com/users/linjunnan/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T06:04:33Z","updated_at":"2016-01-29T06:04:33Z","body":"1. “unprotected error in call to Lua API ”这行错误在进程崩溃时并没有必现，只是偶尔出现\r\n2. zimg配置单线程测试，则不会出现进程退出问题"}}