{"action":"closed","issue":{"url":"https://api.github.com/repos/grpc/grpc/issues/2857","labels_url":"https://api.github.com/repos/grpc/grpc/issues/2857/labels{/name}","comments_url":"https://api.github.com/repos/grpc/grpc/issues/2857/comments","events_url":"https://api.github.com/repos/grpc/grpc/issues/2857/events","html_url":"https://github.com/grpc/grpc/issues/2857","id":99757384,"number":2857,"title":"tsan-reported race in connectivity state code","user":{"login":"vjpai","id":8864912,"avatar_url":"https://avatars.githubusercontent.com/u/8864912?v=3","gravatar_id":"","url":"https://api.github.com/users/vjpai","html_url":"https://github.com/vjpai","followers_url":"https://api.github.com/users/vjpai/followers","following_url":"https://api.github.com/users/vjpai/following{/other_user}","gists_url":"https://api.github.com/users/vjpai/gists{/gist_id}","starred_url":"https://api.github.com/users/vjpai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjpai/subscriptions","organizations_url":"https://api.github.com/users/vjpai/orgs","repos_url":"https://api.github.com/users/vjpai/repos","events_url":"https://api.github.com/users/vjpai/events{/privacy}","received_events_url":"https://api.github.com/users/vjpai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grpc/grpc/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/grpc/grpc/labels/concurrency","name":"concurrency","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/grpc/grpc/milestones/25","html_url":"https://github.com/grpc/grpc/milestones/Beta","labels_url":"https://api.github.com/repos/grpc/grpc/milestones/25/labels","id":1134869,"number":25,"title":"Beta","description":"","creator":{"login":"ctiller","id":10120821,"avatar_url":"https://avatars.githubusercontent.com/u/10120821?v=3","gravatar_id":"","url":"https://api.github.com/users/ctiller","html_url":"https://github.com/ctiller","followers_url":"https://api.github.com/users/ctiller/followers","following_url":"https://api.github.com/users/ctiller/following{/other_user}","gists_url":"https://api.github.com/users/ctiller/gists{/gist_id}","starred_url":"https://api.github.com/users/ctiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctiller/subscriptions","organizations_url":"https://api.github.com/users/ctiller/orgs","repos_url":"https://api.github.com/users/ctiller/repos","events_url":"https://api.github.com/users/ctiller/events{/privacy}","received_events_url":"https://api.github.com/users/ctiller/received_events","type":"User","site_admin":false},"open_issues":115,"closed_issues":396,"state":"open","created_at":"2015-05-26T22:29:20Z","updated_at":"2015-08-24T15:07:45Z","due_on":"2015-08-29T07:00:00Z","closed_at":null},"comments":1,"created_at":"2015-08-08T01:19:44Z","updated_at":"2015-08-24T15:07:46Z","closed_at":"2015-08-24T15:07:45Z","body":"\r\n\r\nWARNING: ThreadSanitizer: data race (pid=11978)\r\n  Write of size 4 at 0x7d540000fe18 by main thread (mutexes: write M1425):\r\n    #0 grpc_connectivity_state_set_with_scheduler /var/local/git/grpc/src/core/transport/connectivity_state.c:123 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x000000117646)\r\n    #1 grpc_connectivity_state_set /var/local/git/grpc/src/core/transport/connectivity_state.c:146 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000001179fb)\r\n    #2 cc_start_transport_op /var/local/git/grpc/src/core/channel/client_channel.c:573 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x000000125e7b)\r\n    #3 grpc_channel_next_op /var/local/git/grpc/src/core/channel/channel_stack.c:201 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000001257e5)\r\n    #4 grpc_channel_destroy /var/local/git/grpc/src/core/surface/channel.c:268 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000fac7b)\r\n    #5 shutdown_client /var/local/git/grpc/test/core/end2end/tests/cancel_after_invoke.c:89 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000cbc35)\r\n    #6 end_test /var/local/git/grpc/test/core/end2end/tests/cancel_after_invoke.c:95 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000cb6a5)\r\n    #7 test_cancel_after_invoke /var/local/git/grpc/test/core/end2end/tests/cancel_after_invoke.c:181 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000cb2c0)\r\n    #8 grpc_end2end_tests /var/local/git/grpc/test/core/end2end/tests/cancel_after_invoke.c:190 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000ca79b)\r\n    #9 main /var/local/git/grpc/test/core/end2end/fixtures/chttp2_fullstack_with_poll.c:112 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000ca4fc)\r\n\r\n  Previous read of size 4 at 0x7d540000fe18 by thread T1:\r\n    #0 grpc_connectivity_state_set_with_scheduler /var/local/git/grpc/src/core/transport/connectivity_state.c:119 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x00000011757c)\r\n    #1 grpc_connectivity_state_set /var/local/git/grpc/src/core/transport/connectivity_state.c:146 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000001179fb)\r\n    #2 cc_on_config_changed /var/local/git/grpc/src/core/channel/client_channel.c:507 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x000000127d05)\r\n    #3 background_callback_executor /var/local/git/grpc/src/core/iomgr/iomgr.c:68 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000d53e8)\r\n    #4 thread_body /var/local/git/grpc/src/core/support/thd_posix.c:57 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x00000018f472)\r\n\r\n  Location is heap block of size 536 at 0x7d540000fc80 allocated by main thread:\r\n    #0 malloc <null>:0 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000627fd)\r\n    #1 gpr_malloc /var/local/git/grpc/src/core/support/alloc.c:40 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x000000182df0)\r\n    #2 grpc_channel_create_from_filters /var/local/git/grpc/src/core/surface/channel.c:96 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000f8dbe)\r\n    #3 grpc_insecure_channel_create /var/local/git/grpc/src/core/surface/channel_create.c:175 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000fb358)\r\n    #4 chttp2_init_client_fullstack /var/local/git/grpc/test/core/end2end/fixtures/chttp2_fullstack_with_poll.c:75 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000ca06c)\r\n    #5 begin_test /var/local/git/grpc/test/core/end2end/tests/cancel_after_invoke.c:59 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000cb50b)\r\n    #6 test_cancel_after_invoke /var/local/git/grpc/test/core/end2end/tests/cancel_after_invoke.c:109 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000ca8b2)\r\n    #7 grpc_end2end_tests /var/local/git/grpc/test/core/end2end/tests/cancel_after_invoke.c:190 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000ca79b)\r\n    #8 main /var/local/git/grpc/test/core/end2end/fixtures/chttp2_fullstack_with_poll.c:112 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000ca4fc)\r\n\r\n  Mutex M1425 (0x7d540000fdb8) created at:\r\n    #0 pthread_mutex_init <null>:0 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x000000067920)\r\n    #1 gpr_mu_init /var/local/git/grpc/src/core/support/sync_posix.c:44 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x00000018e60a)\r\n    #2 init_channel_elem /var/local/git/grpc/src/core/channel/client_channel.c:658 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x000000126783)\r\n    #3 grpc_channel_stack_init /var/local/git/grpc/src/core/channel/channel_stack.c:126 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000001248c5)\r\n    #4 grpc_channel_create_from_filters /var/local/git/grpc/src/core/surface/channel.c:137 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000f97a5)\r\n    #5 grpc_insecure_channel_create /var/local/git/grpc/src/core/surface/channel_create.c:175 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000fb358)\r\n    #6 chttp2_init_client_fullstack /var/local/git/grpc/test/core/end2end/fixtures/chttp2_fullstack_with_poll.c:75 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000ca06c)\r\n    #7 begin_test /var/local/git/grpc/test/core/end2end/tests/cancel_after_invoke.c:59 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000cb50b)\r\n    #8 test_cancel_after_invoke /var/local/git/grpc/test/core/end2end/tests/cancel_after_invoke.c:109 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000ca8b2)\r\n    #9 grpc_end2end_tests /var/local/git/grpc/test/core/end2end/tests/cancel_after_invoke.c:190 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000ca79b)\r\n    #10 main /var/local/git/grpc/test/core/end2end/fixtures/chttp2_fullstack_with_poll.c:112 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000ca4fc)\r\n\r\n  Thread T1 (tid=11980, running) created by main thread at:\r\n    #0 pthread_create <null>:0 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x000000066511)\r\n    #1 gpr_thd_new /var/local/git/grpc/src/core/support/thd_posix.c:76 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x00000018f2bc)\r\n    #2 grpc_iomgr_init /var/local/git/grpc/src/core/iomgr/iomgr.c:99 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000d4fec)\r\n    #3 grpc_init /var/local/git/grpc/src/core/surface/init.c:81 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000ff16d)\r\n    #4 main /var/local/git/grpc/test/core/end2end/fixtures/chttp2_fullstack_with_poll.c:109 (chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test+0x0000000ca492)\r\n\r\nSUMMARY: ThreadSanitizer: data race /var/local/git/grpc/src/core/transport/connectivity_state.c:123 grpc_connectivity_state_set_with_scheduler\r\n"}}