Title: test_syslog: test_syslog_threaded() crashs randomly on ARM64 macOS 3.x · Issue #98178 · python/cpython · GitHub
Open Graph Title: test_syslog: test_syslog_threaded() crashs randomly on ARM64 macOS 3.x · Issue #98178 · python/cpython
X Title: test_syslog: test_syslog_threaded() crashs randomly on ARM64 macOS 3.x · Issue #98178 · python/cpython
Description: test_syslog crashed 4 times in the last 2 days, each time in the test_syslog_threaded() function, on the "ARM64 macOS 3.x" buildbot: Today: https://buildbot.python.org/all/#/builders/725/builds/2786 2 days ago: https://buildbot.python.or...
Open Graph Description: test_syslog crashed 4 times in the last 2 days, each time in the test_syslog_threaded() function, on the "ARM64 macOS 3.x" buildbot: Today: https://buildbot.python.org/all/#/builders/725/builds/278...
X Description: test_syslog crashed 4 times in the last 2 days, each time in the test_syslog_threaded() function, on the "ARM64 macOS 3.x" buildbot: Today: https://buildbot.python.org/all/#/builders/725/...
Opengraph URL: https://github.com/python/cpython/issues/98178
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_syslog: test_syslog_threaded() crashs randomly on ARM64 macOS 3.x","articleBody":"test_syslog crashed 4 times in the last 2 days, each time in the test_syslog_threaded() function, on the \"ARM64 macOS 3.x\" buildbot:\r\n\r\n* Today: https://buildbot.python.org/all/#/builders/725/builds/2786\r\n* 2 days ago: https://buildbot.python.org/all/#/builders/725/builds/2780\r\n\r\nExample of crash:\r\n\r\n```\r\nFatal Python error: Segmentation fault\r\n\r\nThread 0x000000017bbcf000 (most recent call first):\r\n File \"/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/test/test_syslog.py\", line 67 in logger\r\n File \"/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/threading.py\", line 986 in run\r\n File \"/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/threading.py\", line 1049 in _bootstrap_inner\r\n File \"/Users/buildbot/buildarea/3.x.pablogsal-macos-m1.macos-with-brew/build/Lib/threading.pymake: *** [buildbottest] Segmentation fault: 11\r\n```\r\n\r\nThis crash is on the ``syslog.syslog()`` call in a thread. Code:\r\n\r\n```py\r\n @threading_helper.requires_working_threading()\r\n def test_syslog_threaded(self):\r\n start = threading.Event()\r\n stop = False\r\n def opener():\r\n start.wait(10)\r\n i = 1\r\n while not stop:\r\n syslog.openlog(f'python-test-{i}') # new string object\r\n i += 1\r\n def logger():\r\n start.wait(10)\r\n while not stop:\r\n syslog.syslog('test message from python test_syslog') # \u003c=== HERE: line 67\r\n\r\n orig_si = sys.getswitchinterval()\r\n support.setswitchinterval(1e-9)\r\n try:\r\n threads = [threading.Thread(target=opener)]\r\n threads += [threading.Thread(target=logger) for k in range(10)]\r\n with threading_helper.start_threads(threads):\r\n start.set()\r\n time.sleep(0.1)\r\n stop = True\r\n finally:\r\n sys.setswitchinterval(orig_si)\r\n```","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2022-10-11T07:17:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":31},"url":"https://github.com/98178/cpython/issues/98178"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:48af2c86-7df3-3736-a59e-ebe6d17163fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8018:37ADE8:905CD5:C47939:696AB7AE |
| html-safe-nonce | 5743b6bdf8f5de99f7943cfb3afc40381821f8478d988d6ed06a53df06d58d63 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDE4OjM3QURFODo5MDVDRDU6QzQ3OTM5OjY5NkFCN0FFIiwidmlzaXRvcl9pZCI6Ijg3NzI3OTE5NjMxMDczNzUwMjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c9f6c9fcc3ed09e06cecc91d6a2050e562c0596b063ff99f1cc22f8cdb161fa8 |
| hovercard-subject-tag | issue:1404125042 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/98178/issue_layout |
| twitter:image | https://opengraph.githubassets.com/502211701bd9c07fd93884496695e15015dcf13cf24ea3a57581bab2e0f435a5/python/cpython/issues/98178 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/502211701bd9c07fd93884496695e15015dcf13cf24ea3a57581bab2e0f435a5/python/cpython/issues/98178 |
| og:image:alt | test_syslog crashed 4 times in the last 2 days, each time in the test_syslog_threaded() function, on the "ARM64 macOS 3.x" buildbot: Today: https://buildbot.python.org/all/#/builders/725/builds/278... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 41f276818bd204c4a30a0281fb3c576298d9474c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width