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

test/format failure due to casting of lseek return value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Story Points:
      1
    • Sprint:
      Storage - Ra 2020-12-28

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: