Fix crash when printing an invalid dhandle's name on sweep walk

XMLWordPrintableJSON

      format-stress-test-2 on ubuntu2004-stress-nonstandalone

      Host: i-074004a4c885739bd
      Project: wiredtiger-mongo-v8.1
      Commit: 357ec4b9
      Please refer to BF(G) Playbook for instructions on handling BF and BFG tickets as well as Auto-Resolution Rules

      Task Logs:

      format-stress-test-2 task_log

      Logs:

      format.sh: job in /data/mci/abc1a2a4d2ff77578038d47047b896f1/wiredtiger/cmake_build/test/format/RUNDIR.48 killed with signal FORMAT_FAILED_TO_KILL_PARENT_THREAD
      

      logs

      format-stress-test-2 task_log

      Logs:

          Segmentation fault (core dumped)
          *** Segmentation fault
      

      logs

      format-stress-test-2 task_log

      Logs:

          format.sh: job in /data/mci/abc1a2a4d2ff77578038d47047b896f1/wiredtiger/cmake_build/test/format/RUNDIR.48 killed with signal FORMAT_FAILED_TO_KILL_PARENT_THREAD
      

      logs

      format-stress-test-2 task_log

      Logs:

      #0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
      #0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
      #1  0x00007fae5e037d15 in __vfprintf_internal (s=s@entry=0x7fae5dcc8970, format=format@entry=0x7fae5e50343a ", %s", ap=ap@entry=0x7fae5dcc8b08, mode_flags=mode_flags@entry=0) at vfprintf-internal.c:1688
      #2  0x00007fae5e04af9a in __vsnprintf_internal (string=0x7fae5dcc8c3d ", ", maxlen=<optimized out>, format=0x7fae5e50343a ", %s", args=args@entry=0x7fae5dcc8b08, mode_flags=mode_flags@entry=0) at vsnprintf.c:114
      #3  0x00007fae5e04b00c in ___vsnprintf (string=<optimized out>, maxlen=<optimized out>, format=<optimized out>, args=args@entry=0x7fae5dcc8b08) at vsnprintf.c:124
      #4  0x00007fae5e3e5f61 in __wt_vsnprintf_len_incr (buf=<optimized out>, size=<optimized out>, retsizep=retsizep@entry=0x7fae5dcc8c00, fmt=<optimized out>, ap=ap@entry=0x7fae5dcc8b08) at /data/mci/abc1a2a4d2ff77578038d47047b896f1/wiredtiger/src/os_posix/os_snprintf.c:21
      #5  0x00007fae5e4753f8 in __wt_snprintf_len_set (buf=buf@entry=0x7fae5dcc8c3d ", ", size=<optimized out>, retsizep=retsizep@entry=0x7fae5dcc8c00, fmt=fmt@entry=0x7fae5e50343a ", %s") at /data/mci/abc1a2a4d2ff77578038d47047b896f1/wiredtiger/src/include/misc_inline.h:144
      #6  0x00007fae5e475ca2 in __eventv (session=0xaafbb8, is_json=false, error=error@entry=0, func=func@entry=0x0, line=line@entry=0, category=category@entry=WT_VERB_DEFAULT, level=WT_VERBOSE_WARNING, fmt=0x7fae5e4d7128 "Session %u (@: 0x%p name: %s) did not run a sweep for 60 minutes.", ap=0x7fae5dcc9d38) at /data/mci/abc1a2a4d2ff77578038d47047b896f1/wiredtiger/src/support/err.c:303
      #7  0x00007fae5e476e19 in __wt_verbose_worker (session=<optimized out>, category=category@entry=WT_VERB_DEFAULT, level=level@entry=WT_VERBOSE_WARNING, fmt=fmt@entry=0x7fae5e4d7128 "Session %u (@: 0x%p name: %s) did not run a sweep for 60 minutes.") at /data/mci/abc1a2a4d2ff77578038d47047b896f1/wiredtiger/src/support/err.c:638
      #8  0x00007fae5e324923 in __sweep_check_session_callback (session=<optimized out>, array_session=<optimized out>, exit_walkp=<optimized out>, cookiep=<optimized out>) at /data/mci/abc1a2a4d2ff77578038d47047b896f1/wiredtiger/src/conn/conn_sweep.c:375
      #9  0x00007fae5e45f435 in __wt_session_array_walk (session=session@entry=0xaafbb8, walk_func=walk_func@entry=0x7fae5e32480a <__sweep_check_session_callback>, skip_internal=skip_internal@entry=true, cookiep=cookiep@entry=0x7fae5dcc9e98) at /data/mci/abc1a2a4d2ff77578038d47047b896f1/wiredtiger/src/session/session_helper.c:59
      #10 0x00007fae5e324805 in __sweep_check_session_sweep (session=session@entry=0xaafbb8, now=now@entry=1750076215) at /data/mci/abc1a2a4d2ff77578038d47047b896f1/wiredtiger/src/conn/conn_sweep.c:399
      #11 0x00007fae5e324b0f in __sweep_server (arg=0xaafbb8) at /data/mci/abc1a2a4d2ff77578038d47047b896f1/wiredtiger/src/conn/conn_sweep.c:477
      #12 0x00007fae5e1cb609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #13 0x00007fae5e0de353 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      logs

      Repro Artifacts:

            Assignee:
            Linh Tran
            Reporter:
            xgen-buildbaron-user
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: