{"action":"created","issue":{"url":"https://api.github.com/repos/amonakov/primus/issues/166","labels_url":"https://api.github.com/repos/amonakov/primus/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/amonakov/primus/issues/166/comments","events_url":"https://api.github.com/repos/amonakov/primus/issues/166/events","html_url":"https://github.com/amonakov/primus/issues/166","id":69304170,"number":166,"title":"CS GO crash every time it exits","user":{"login":"AnAkIn1","id":2837002,"avatar_url":"https://avatars.githubusercontent.com/u/2837002?v=3","gravatar_id":"","url":"https://api.github.com/users/AnAkIn1","html_url":"https://github.com/AnAkIn1","followers_url":"https://api.github.com/users/AnAkIn1/followers","following_url":"https://api.github.com/users/AnAkIn1/following{/other_user}","gists_url":"https://api.github.com/users/AnAkIn1/gists{/gist_id}","starred_url":"https://api.github.com/users/AnAkIn1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnAkIn1/subscriptions","organizations_url":"https://api.github.com/users/AnAkIn1/orgs","repos_url":"https://api.github.com/users/AnAkIn1/repos","events_url":"https://api.github.com/users/AnAkIn1/events{/privacy}","received_events_url":"https://api.github.com/users/AnAkIn1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-18T12:16:18Z","updated_at":"2015-04-19T16:18:53Z","closed_at":null,"body":"Since CS GO has been ported to linux, I've been running it through primusrun and always had a very annoying issue: it crashes every time I quit the game, which produces a core dump and freeze my laptop for up to 30s every time the game is exited.\r\nI can't disable core dumps because I need them to debug crashes in applications I develop.\r\n\r\nThe backtrace (which doesn't have symbols) is the following:\r\n>#0  0xeac140f6 in ?? ()\r\n>#1  signal handler called\r\n>#2  0xf7409546 in pthread_mutex_lock () from /usr/lib32/libpthread.so.0\r\n>#3  0xf7180419 in ?? () from /usr/lib32/nvidia/libGL.so.1\r\n>#4  0xf715ad0d in ?? () from /usr/lib32/nvidia/libGL.so.1\r\n>#5  0xf715b4cc in ?? () from /usr/lib32/nvidia/libGL.so.1\r\n>#6  0xf7154f68 in ?? () from /usr/lib32/nvidia/libGL.so.1\r\n>#7  0xf7149e24 in glXDestroyPbuffer () from /usr/lib32/nvidia/libGL.so.1\r\n>#8  0xf7532b04 in ?? () from /usr/lib32/primus/libGL.so.1\r\n>#9  0xf7547c6a in ?? () from /usr/lib32/primus/libGL.so.1\r\n>#10 0xf7547c5c in ?? () from /usr/lib32/primus/libGL.so.1\r\n>#11 0xf7547c5c in ?? () from /usr/lib32/primus/libGL.so.1\r\n>#12 0xf7547d1d in ?? () from /usr/lib32/primus/libGL.so.1\r\n>#13 0xf758fc4c in __cxa_finalize () from /usr/lib32/libc.so.6\r\n>#14 0xf752cc13 in ?? () from /usr/lib32/primus/libGL.so.1\r\n>#15 0xf77af294 in _dl_fini () from /lib/ld-linux.so.2\r\n>#16 0xf758f8c3 in __run_exit_handlers () from /usr/lib32/libc.so.6\r\n>#17 0xf758f921 in exit () from /usr/lib32/libc.so.6\r\n>#18 0xf757965a in __libc_start_main () from /usr/lib32/libc.so.6\r\n>#19 0x08048645 in _start ()\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/amonakov/primus/issues/comments/94291776","html_url":"https://github.com/amonakov/primus/issues/166#issuecomment-94291776","issue_url":"https://api.github.com/repos/amonakov/primus/issues/166","id":94291776,"user":{"login":"amonakov","id":1997391,"avatar_url":"https://avatars.githubusercontent.com/u/1997391?v=3","gravatar_id":"","url":"https://api.github.com/users/amonakov","html_url":"https://github.com/amonakov","followers_url":"https://api.github.com/users/amonakov/followers","following_url":"https://api.github.com/users/amonakov/following{/other_user}","gists_url":"https://api.github.com/users/amonakov/gists{/gist_id}","starred_url":"https://api.github.com/users/amonakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amonakov/subscriptions","organizations_url":"https://api.github.com/users/amonakov/orgs","repos_url":"https://api.github.com/users/amonakov/repos","events_url":"https://api.github.com/users/amonakov/events{/privacy}","received_events_url":"https://api.github.com/users/amonakov/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T16:18:53Z","updated_at":"2015-04-19T16:18:53Z","body":"From the (privately sent) log it looks like glibc decides to run both nVidia and Mesa libGL destructors before primus. I suspect that is not supposed to happen. I'll try to look if anything goes wrong in glibc."}}