Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-9927

hang analyzer failed for asan build

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • 0
    • Storage Engines - 2022-10-17

      In a time out test, the hang analyzer failed to dump the core with permission denied error:

      [2022/09/28 06:53:00.452]   File "../test/wt_hang_analyzer/wt_hang_analyzer.py", line 615, in main
      [2022/09/28 06:53:00.452]     avoid_asan_dump(pid)
      [2022/09/28 06:53:00.452]   File "../test/wt_hang_analyzer/wt_hang_analyzer.py", line 646, in avoid_asan_dump
      [2022/09/28 06:53:00.452]     with open("/proc/%d/coredump_filter" % pid, "w+") as f:
      [2022/09/28 06:53:00.452] PermissionError: [Errno 13] Permission denied: '/proc/739/coredump_filter'
      [2022/09/28 06:53:00.452] During handling of the above exception, another exception occurred:
      [2022/09/28 06:53:00.452] Traceback (most recent call last):
      [2022/09/28 06:53:00.453]   File "/usr/lib/python3.8/logging/__init__.py", line 1085, in emit
      [2022/09/28 06:53:00.453]     msg = self.format(record)
      [2022/09/28 06:53:00.453]   File "/usr/lib/python3.8/logging/__init__.py", line 929, in format
      [2022/09/28 06:53:00.453]     return fmt.format(record)
      [2022/09/28 06:53:00.453]   File "/usr/lib/python3.8/logging/__init__.py", line 668, in format
      [2022/09/28 06:53:00.453]     record.message = record.getMessage()
      [2022/09/28 06:53:00.453]   File "/usr/lib/python3.8/logging/__init__.py", line 373, in getMessage
      [2022/09/28 06:53:00.453]     msg = msg % self.args
      [2022/09/28 06:53:00.453] TypeError: not all arguments converted during string formatting
      [2022/09/28 06:53:00.453] Call stack:
      [2022/09/28 06:53:00.453]   File "../test/wt_hang_analyzer/wt_hang_analyzer.py", line 652, in <module>
      [2022/09/28 06:53:00.453]     main()
      [2022/09/28 06:53:00.453]   File "../test/wt_hang_analyzer/wt_hang_analyzer.py", line 617, in main
      [2022/09/28 06:53:00.453]     root_logger.warn("Error encountered when removing ASAN mappings from core dump", err)
      [2022/09/28 06:53:00.453] Message: 'Error encountered when removing ASAN mappings from core dump'
      [2022/09/28 06:53:00.453] Arguments: (PermissionError(13, 'Permission denied'),)
      [2022/09/28 06:53:00.460] Command failed: shell script encountered problem: exit code 1
      [2022/09/28 06:53:00.460] Finished 'shell.exec' in "run wt hang analyzer" in 2.319428799s
      [2022/09/28 06:53:00.460] [message='Finished running timeout commands' total_time='2.402209409s']
      [2022/09/28 06:53:00.461] Task completed - FAILURE.
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            chenhao.qu@mongodb.com Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: