{"action":"created","issue":{"url":"https://api.github.com/repos/IllidanS4/PawnPlus/issues/4","repository_url":"https://api.github.com/repos/IllidanS4/PawnPlus","labels_url":"https://api.github.com/repos/IllidanS4/PawnPlus/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/IllidanS4/PawnPlus/issues/4/comments","events_url":"https://api.github.com/repos/IllidanS4/PawnPlus/issues/4/events","html_url":"https://github.com/IllidanS4/PawnPlus/issues/4","id":345044580,"node_id":"MDU6SXNzdWUzNDUwNDQ1ODA=","number":4,"title":"amx_fork/threaded crash [Linux]","user":{"login":"yoranjj","id":17703007,"node_id":"MDQ6VXNlcjE3NzAzMDA3","avatar_url":"https://avatars2.githubusercontent.com/u/17703007?v=4","gravatar_id":"","url":"https://api.github.com/users/yoranjj","html_url":"https://github.com/yoranjj","followers_url":"https://api.github.com/users/yoranjj/followers","following_url":"https://api.github.com/users/yoranjj/following{/other_user}","gists_url":"https://api.github.com/users/yoranjj/gists{/gist_id}","starred_url":"https://api.github.com/users/yoranjj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoranjj/subscriptions","organizations_url":"https://api.github.com/users/yoranjj/orgs","repos_url":"https://api.github.com/users/yoranjj/repos","events_url":"https://api.github.com/users/yoranjj/events{/privacy}","received_events_url":"https://api.github.com/users/yoranjj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-07-26T23:56:58Z","updated_at":"2018-08-01T15:51:17Z","closed_at":null,"author_association":"NONE","body":"Hey again, not quite sure what the issue here is, but;\r\n\r\nI've been looking through the documentation examples and have tried a few. A few work and a few just crash the plugin (server).\r\n\r\nTried using this in a command;\r\n\r\n```\r\nnew result;\r\namx_forked(.result=result)\r\n{\r\n    task_yield(1);\r\n    threaded(sync_explicit)\r\n    {\r\n        thread_sleep(1000);\r\n        print(\"Thread end\");\r\n    }\r\n    print(\"Fork end\"); //after 1 s\r\n}\r\nassert result == 1; //immediately\r\n```\r\n\r\nAnd I get a crash error;\r\n\r\n```\r\n[01:54:23] [debug] Server crashed due to an unknown error\r\n[01:54:23] [debug] Native backtrace:\r\n[01:54:23] [debug] #0 f72e2371 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so\r\n[01:54:23] [debug] #1 f72d996d in _ZN18CrashDetectHandler20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so\r\n[01:54:23] [debug] #2 f72da98d in _ZN18CrashDetectHandler20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so\r\n[01:54:23] [debug] #3 f72dcd1d in _ZN18CrashDetectHandler7OnCrashERKN2os7ContextE () from plugins/crashdetect.so\r\n[01:54:23] [debug] #4 f72e183c in ?? () from plugins/crashdetect.so\r\n[01:54:23] [debug] #5 f76efbd0 in ?? ()\r\n[01:54:23] [debug] #6 f72dc6aa in _ZN18CrashDetectHandler13HandleAMXExecEPii () from plugins/crashdetect.so\r\n[01:54:23] [debug] #7 f72df999 in ?? () from plugins/crashdetect.so\r\n[01:54:23] [debug] #8 f5964406 in ?? () from plugins/streamer.so\r\n[01:54:23] [debug] #9 f564744c in _Z15amx_ExecContextP6tagAMXPiibPN3amx5resetEb () from plugins/PawnPlus.so\r\n[01:54:23] [debug] #10 f5649154 in _Z15amx_ExecContextP6tagAMXPiibPN3amx5resetEb () from plugins/PawnPlus.so\r\n[01:54:23] [debug] #11 f564b9e6 in _ZN5Hooks8amx_ExecEP6tagAMXPii () from plugins/PawnPlus.so\r\n[01:54:23] [debug] #12 706f7264 in ?? () from D\u0016\u0018\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/IllidanS4/PawnPlus/issues/comments/409622304","html_url":"https://github.com/IllidanS4/PawnPlus/issues/4#issuecomment-409622304","issue_url":"https://api.github.com/repos/IllidanS4/PawnPlus/issues/4","id":409622304,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTYyMjMwNA==","user":{"login":"IllidanS4","id":1337208,"node_id":"MDQ6VXNlcjEzMzcyMDg=","avatar_url":"https://avatars0.githubusercontent.com/u/1337208?v=4","gravatar_id":"","url":"https://api.github.com/users/IllidanS4","html_url":"https://github.com/IllidanS4","followers_url":"https://api.github.com/users/IllidanS4/followers","following_url":"https://api.github.com/users/IllidanS4/following{/other_user}","gists_url":"https://api.github.com/users/IllidanS4/gists{/gist_id}","starred_url":"https://api.github.com/users/IllidanS4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IllidanS4/subscriptions","organizations_url":"https://api.github.com/users/IllidanS4/orgs","repos_url":"https://api.github.com/users/IllidanS4/repos","events_url":"https://api.github.com/users/IllidanS4/events{/privacy}","received_events_url":"https://api.github.com/users/IllidanS4/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T15:51:17Z","updated_at":"2018-08-01T15:51:17Z","author_association":"OWNER","body":"crashdetect replaces the implementation of AMX with its own, so it basically controls every execution. I was probably using a version which doesn't cause an issue. Mine is CrashDetect v4.15.1."}}
{"actor":{"display_login":"IllidanS4"}}