{"action":"closed","issue":{"url":"https://api.github.com/repos/CEED/libCEED/issues/49","repository_url":"https://api.github.com/repos/CEED/libCEED","labels_url":"https://api.github.com/repos/CEED/libCEED/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/CEED/libCEED/issues/49/comments","events_url":"https://api.github.com/repos/CEED/libCEED/issues/49/events","html_url":"https://github.com/CEED/libCEED/issues/49","id":309428205,"node_id":"MDU6SXNzdWUzMDk0MjgyMDU=","number":49,"title":"Apparent race condition when creating OCCA kernels","user":{"login":"jedbrown","id":3303,"node_id":"MDQ6VXNlcjMzMDM=","avatar_url":"https://avatars3.githubusercontent.com/u/3303?v=4","gravatar_id":"","url":"https://api.github.com/users/jedbrown","html_url":"https://github.com/jedbrown","followers_url":"https://api.github.com/users/jedbrown/followers","following_url":"https://api.github.com/users/jedbrown/following{/other_user}","gists_url":"https://api.github.com/users/jedbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/jedbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedbrown/subscriptions","organizations_url":"https://api.github.com/users/jedbrown/orgs","repos_url":"https://api.github.com/users/jedbrown/repos","events_url":"https://api.github.com/users/jedbrown/events{/privacy}","received_events_url":"https://api.github.com/users/jedbrown/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"camierjs","id":20000517,"node_id":"MDQ6VXNlcjIwMDAwNTE3","avatar_url":"https://avatars1.githubusercontent.com/u/20000517?v=4","gravatar_id":"","url":"https://api.github.com/users/camierjs","html_url":"https://github.com/camierjs","followers_url":"https://api.github.com/users/camierjs/followers","following_url":"https://api.github.com/users/camierjs/following{/other_user}","gists_url":"https://api.github.com/users/camierjs/gists{/gist_id}","starred_url":"https://api.github.com/users/camierjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camierjs/subscriptions","organizations_url":"https://api.github.com/users/camierjs/orgs","repos_url":"https://api.github.com/users/camierjs/repos","events_url":"https://api.github.com/users/camierjs/events{/privacy}","received_events_url":"https://api.github.com/users/camierjs/received_events","type":"User","site_admin":false},"assignees":[{"login":"camierjs","id":20000517,"node_id":"MDQ6VXNlcjIwMDAwNTE3","avatar_url":"https://avatars1.githubusercontent.com/u/20000517?v=4","gravatar_id":"","url":"https://api.github.com/users/camierjs","html_url":"https://github.com/camierjs","followers_url":"https://api.github.com/users/camierjs/followers","following_url":"https://api.github.com/users/camierjs/following{/other_user}","gists_url":"https://api.github.com/users/camierjs/gists{/gist_id}","starred_url":"https://api.github.com/users/camierjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camierjs/subscriptions","organizations_url":"https://api.github.com/users/camierjs/orgs","repos_url":"https://api.github.com/users/camierjs/repos","events_url":"https://api.github.com/users/camierjs/events{/privacy}","received_events_url":"https://api.github.com/users/camierjs/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2018-03-28T15:55:23Z","updated_at":"2018-07-19T21:49:12Z","closed_at":"2018-07-19T21:49:12Z","author_association":"MEMBER","body":"To reproduce, break (`^C`) while a kernel is compiling:\r\n\r\n```\r\n$ rm -r ~/.occa/\r\n$ CEED_DEBUG=1 ./bp1-petsc -ceed_resource /cpu/occa\r\nProcess decomposition: 1 1 1                                                                     \r\nLocal elements: 1000 = 10 10 10                                                                            \r\nOwned dofs: 1331 = 11 11 11                                                   \r\n[CeedInit] resource: /cpu/occa                                                                                                                                                                 \r\n[CeedInit] deviceID: 0                                                                                            \r\n[CeedInit] mode: mode: 'Serial'\r\nFinding compiler vendor: g++ /home/jed/.occa/cache/b00dc65d91a54606/compilerVendorTest.cpp -o /home/jed/.occa/cache/b00dc65d91a54606/binary > /home/jed/.occa/cache/b00dc65d91a54606/build.log\r\n2>&1                                                                                          \r\n[CeedInit] returned deviceMode: Serial                                                        \r\n[CeedElemRestriction][Create]                                                                                                                                                                  \r\n[CeedElemRestriction][Create] Allocating                                                                                                                                                       \r\n[CeedElemRestriction][Create] Building kRestrict                                                                                                                                               \r\n[CeedElemRestriction][Create] filename=/home/jed/src/libceed/backends/occa/ceed-occa-restrict.okl                                                                                              \r\nCompiling [kRestrict0]                                                                                                                                                                         \r\ng++ -x c++ -fPIC -shared -g /home/jed/.occa/cache/da672fb4983a24d2/launchSource.cpp -o /home/jed/.occa/cache/da672fb4983a24d2/launch-binary -I/home/jed/src/occa/src/tools//../../include -L/ho\r\nme/jed/src/occa/src/tools//../../lib -locca                                                                                                                                                    \r\n                                                                                                                                                                                               \r\n^C                                           \r\n```\r\n\r\nthen try to run again\r\n\r\n```\r\n$ gdb -ex r --args ./bp1-petsc -ceed_resource /cpu/occa\r\nNo symbol table is loaded.  Use the \"file\" command.\r\nBreakpoint 1 (PetscError) pending.\r\nReading symbols from ./bp1-petsc...done.\r\nStarting program: /tmp/jed/petsc/bp1-petsc -ceed_resource /cpu/occa\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/usr/lib/libthread_db.so.1\".\r\n[New Thread 0x7fffeea8b700 (LWP 616)]\r\nProcess decomposition: 1 1 1\r\nLocal elements: 1000 = 10 10 10\r\nOwned dofs: 1331 = 11 11 11\r\n\r\nThread 1 \"bp1-petsc\" received signal SIGSEGV, Segmentation fault.\r\n0x0000000000000000 in ?? ()\r\n(gdb) bt\r\n#0  0x0000000000000000 in ?? ()\r\n#1  0x00007ffff1f43a8c in occa::serial::kernel::runFromArguments(int, occa::kernelArg const*) const () from /home/jed/src/occa/lib/libocca.so\r\n#2  0x00007ffff1ee9af7 in occa::kernel::runFromArguments() const () from /home/jed/src/occa/lib/libocca.so\r\n#3  0x00007ffff1ecbc99 in occaKernelRunN () from /home/jed/src/occa/lib/libocca.so\r\n#4  0x00007ffff69e859a in CeedElemRestrictionApply_Occa (r=<optimized out>, tmode=CEED_NOTRANSPOSE, ncomp=3, lmode=CEED_NOTRANSPOSE, u=0x555555cc3120, v=0x555555bd3a60, request=0x7ffff6bf7448 <ceed_request_immediate>) at /home/jed/src/libceed/backends/occa/ceed-occa-restrict.c:60\r\n#5  0x00007ffff69e6d5a in CeedOperatorApply_Occa (op=0x555555e5cd30, qdata=0x555555bd42a0, ustate=0x555555cc3120, residual=0x0, request=0x7ffff6bf7448 <ceed_request_immediate>) at /home/jed/src/libceed/backends/occa/ceed-occa-operator.c:79\r\n#6  0x000055555555797c in main (argc=<optimized out>, argv=<optimized out>) at bp1-petsc.c:306\r\n```\r\n\r\nThis as of a820fbcde076af5c5b50ef8dec742695f7fceea9."}}
{"actor":{"display_login":"jedbrown"}}