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

Fix null pointer within wt3338_partial_update csuite

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • WT10.0.1, 4.4.8, 5.0.2, 5.1.0-rc0
    • None
    • 2
    • Storage - Ra 2021-07-12

    Description

      Fallout of errors coming from new UBSAN Build variants in WT-7552. Within test/csuite/wt3338_partial_update/main.c.

        [2021/06/28 05:05:12.512] ../../../test/csuite/wt3338_partial_update/main.c:130:12: runtime error: null pointer passed as argument 1, which is declared to never be null
       [2021/06/28 05:05:12.512] /usr/include/string.h:60:62: note: nonnull attribute specified here
       [2021/06/28 05:05:12.512]     #0 0x42541e in slow_apply_api /data/mci/ca8a7d950f1bf956b286e945a18a82e9/wiredtiger/build_posix/test/csuite/../../../test/csuite/wt3338_partial_update/main.c:130:5
       [2021/06/28 05:05:12.512]     #1 0x4236f9 in modify_run /data/mci/ca8a7d950f1bf956b286e945a18a82e9/wiredtiger/build_posix/test/csuite/../../../test/csuite/wt3338_partial_update/main.c:295:13
       [2021/06/28 05:05:12.512]     #2 0x4233d2 in main /data/mci/ca8a7d950f1bf956b286e945a18a82e9/wiredtiger/build_posix/test/csuite/../../../test/csuite/wt3338_partial_update/main.c:339:5
       [2021/06/28 05:05:12.512]     #3 0x7fab2acfebf6 in __libc_start_main /build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310
       [2021/06/28 05:05:12.512]     #4 0x403909 in _start (/data/mci/ca8a7d950f1bf956b286e945a18a82e9/wiredtiger/build_posix/test/csuite/test_wt3338_partial_update+0x403909)
       [2021/06/28 05:05:12.512] FAIL test_wt3338_partial_update (exit status: 1)
      

      The error is occurring from this piece of code:

          memset((uint8_t *)tb->mem, 0xff, tb->memsize);
      

      Verify against UBSAN build once fixed.

      Attachments

        Issue Links

          Activity

            People

              jeremy.thorp@mongodb.com Jeremy Thorp
              jie.chen@mongodb.com Jie Chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: