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

test/format failure due to casting of lseek return value

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 1
    • Storage - Ra 2020-12-28

      The Jenkins job at http://build.wiredtiger.com:8080/job/wiredtiger-test-format-stress/73632/console failed because of the test programs use of the error_sys_check macro for lseek.

      The failure message is:

      t: FAILED: copy_blocks/269: lseek(rfd, (wt_off_t)offset, SEEK_SET): error return: -2140901376
      

      But the real problem is that (on the AWS Linux) lseek returns an off_t which is 8 bytes and the error_sys_check casts the return value of a system call to int which is 4 bytes. This fails once the offset goes above 2Gb.

            Assignee:
            jie.chen@mongodb.com Jie Chen
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: