Coder Social home page Coder Social logo

Comments (6)

mversche avatar mversche commented on June 11, 2024

I assume we may not have a test-environment with a filesystem with 32 bit time stamps. Could you elaborate on your environment?

from bde.

greghogan avatar greghogan commented on June 11, 2024

This is compiling on an Amazon Linux 2 EC2 instance with the default xfs filesystem. Running Linux 5.10 but big timestamps are not enabled.

$ mount | grep xfs
/dev/nvme0n1p1 on / type xfs (rw,noatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)

$ xfs_info / | grep bigtime

$ uname -r
5.10.130-118.517.amzn2.x86_64

$ sudo /bin/touch -d 22000101 /file && /bin/stat /file && sudo rm /file
  File: β€˜/file’
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 10301h/66305d	Inode: 2572269     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2038-01-19 03:14:07.000000000 +0000
Modify: 2038-01-19 03:14:07.000000000 +0000
Change: 2022-11-08 18:39:16.840670282 +0000
 Birth: -

from bde.

mversche avatar mversche commented on June 11, 2024

https://github.com/bloomberg/bde/blob/main/groups/bdl/bdls/bdls_filesystemutil.t.cpp#L3458 appears meant to handle systems which do not provide 32 bits for their time stamps. I would assume though that the logic being performed here makes compile-time assumption (based on the build environment) about the range of available offsets. I would assume this may be a runtime property based on the file location.

from bde.

mversche avatar mversche commented on June 11, 2024

internal tracking 170731132

from bde.

MungoG avatar MungoG commented on June 11, 2024

Thank you Greg for pointing this out. We are setting up an environment which will enable us to reproduce this (and ensure any fix is suitably tested prior to release), and will let you know how this progresses.

from bde.

mversche avatar mversche commented on June 11, 2024

The fix for this has been merged. Should be available once the main branch syncs.

Commit id:
1925c93e7bf8bca1ba4cade05b09cbff07561fd7

from bde.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.