[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
This bug was fixed in the package tzdata - 2024a-3ubuntu1.1 --- tzdata (2024a-3ubuntu1.1) noble; urgency=medium * d/rules: Support creating symlinks pointing to symlinks * Fixup for avoid timezones being symlinks to symlinks (LP: #2062522) tzdata (2024a-3ubuntu1) noble; urgency=medium * Merge with Debian unstable. Remaining changes: - Ship 2024a ICU timezone data which are utilized by PHP in tzdata-icu - Add autopkgtest test case for ICU timezone data - Do not rename NEWS into changelog.gz, this fixes a build failure on moment-timezone.js - Point Vcs-Browser/Git to Launchpad - generate_debconf_templates: Work around AttributeError on icu import tzdata (2024a-3) unstable; urgency=medium * Avoid timezones being symlinks to symlinks to avoid breaking C++20 standard expectation (LP: #2062522) -- Benjamin Drung Fri, 03 May 2024 13:27:11 +0200 ** Changed in: tzdata (Ubuntu Noble) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
It seems this doesn't have anything to do with glibc? Marking as Invalid there. ** Changed in: glibc (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
This bug was fixed in the package tzdata - 2024a-4ubuntu1 --- tzdata (2024a-4ubuntu1) oracular; urgency=medium * Merge with Debian unstable. Remaining changes: - Ship 2024a ICU timezone data which are utilized by PHP in tzdata-icu - Add autopkgtest test case for ICU timezone data - Do not rename NEWS into changelog.gz, this fixes a build failure on moment-timezone.js - Point Vcs-Browser/Git to Launchpad - generate_debconf_templates: Work around AttributeError on icu import tzdata (2024a-4) unstable; urgency=medium * d/rules: Support creating symlinks pointing to symlinks * Fixup for avoid timezones being symlinks to symlinks (LP: #2062522) tzdata (2024a-3) unstable; urgency=medium * Avoid timezones being symlinks to symlinks to avoid breaking C++20 standard expectation (LP: #2062522) -- Benjamin Drung Thu, 02 May 2024 18:34:12 +0200 ** Changed in: tzdata (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
All autopkgtest runs succeeded except four autopkgtest fail on armhf with tmpfail: * dateparser * golang-github-rickb777-date * prometheus-alertmanager * reposurgeon -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
Verified that the testcase does not crash any more after updating tzdata: ``` $ ./testcase $ dpkg -s tzdata | grep ^Version Version: 2024a-3ubuntu1.1 ``` ** Tags removed: verification-needed verification-needed-noble ** Tags added: verification-done verification-done-noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
Uploaded tzdata 2024a-3ubuntu1.1 to apply the follow-up fix. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
Verification failed. The C++ code seems to read /usr/share/zoneinfo/tzdata.zi which still has the wrong link: ``` $ dpkg -s tzdata | grep ^Version Version: 2024a-3ubuntu1 $ grep Asia/Chungking /usr/share/zoneinfo/tzdata.zi L Asia/Chongqing Asia/Chungking $ ls -l /usr/share/zoneinfo/Asia/Chungking lrwxrwxrwx 1 root root 8 Apr 19 19:51 /usr/share/zoneinfo/Asia/Chungking -> Shanghai ``` -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
Verified that tzdata-legacy 2024a-2ubuntu1 crashes with the test case. ** Description changed: + [ Impact ] + forwarded from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114770 ``` #include int main() { - (void) std::chrono::locate_zone("Asia/Chungking"); + (void) std::chrono::locate_zone("Asia/Chungking"); } ``` With the latest tzdata (version 2024a-2) on Debian Sid this fails: terminate called after throwing an instance of 'std::runtime_error' - what(): tzdb: cannot locate zone: Asia/Chungking + what(): tzdb: cannot locate zone: Asia/Chungking Aborted (core dumped) The problem is a Debian patch that enables link chaining, so that one link can have another link as its target: https://sources.debian.org/patches/tzdata/2024a-2/ziguard.awk-Move-link-to-link-feature-from-vanguard-to-ma.patch/ This feature was added to tzdata in 2022, but isn't compatible with the expectations of the C++20 standard. When chrono::locate_zone finds a link, it expects its target to be a zone, not another link. + + [ Test Plan ] + + 1. Create `testcase.cpp`: + + ``` + #include + int main() + { + (void) std::chrono::locate_zone("Asia/Chungking"); + } + ``` + + 2. Compile: `g++ -std=c++20 -o testcase testcase.cpp` + 3. Run: `./testcase` + + The test case should not crash. ** Description changed: [ Impact ] forwarded from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114770 ``` #include int main() { (void) std::chrono::locate_zone("Asia/Chungking"); } ``` With the latest tzdata (version 2024a-2) on Debian Sid this fails: terminate called after throwing an instance of 'std::runtime_error' what(): tzdb: cannot locate zone: Asia/Chungking Aborted (core dumped) The problem is a Debian patch that enables link chaining, so that one link can have another link as its target: https://sources.debian.org/patches/tzdata/2024a-2/ziguard.awk-Move-link-to-link-feature-from-vanguard-to-ma.patch/ This feature was added to tzdata in 2022, but isn't compatible with the expectations of the C++20 standard. When chrono::locate_zone finds a link, it expects its target to be a zone, not another link. [ Test Plan ] - 1. Create `testcase.cpp`: + 1. Install tzdata-legacy + 2. Create `testcase.cpp`: ``` #include int main() { (void) std::chrono::locate_zone("Asia/Chungking"); } ``` - 2. Compile: `g++ -std=c++20 -o testcase testcase.cpp` - 3. Run: `./testcase` + 3. Compile: `g++ -std=c++20 -o testcase testcase.cpp` + 4. Run: `./testcase` The test case should not crash. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
Waiting for the package to hit the mirror... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
This is a follow-up fix for the fix in bug #2055718 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
Hello Matthias, or anyone else affected, Accepted tzdata into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/tzdata/2024a-3ubuntu1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed- noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed-noble. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Changed in: tzdata (Ubuntu Noble) Status: New => Fix Committed ** Tags added: verification-needed verification-needed-noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
** Changed in: tzdata (Ubuntu) Status: New => Fix Committed ** Changed in: tzdata (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
This bug report is misleading, because Asia/Chungking is not a symlink to another symlink: ``` $ ls -l /usr/share/zoneinfo/Asia/Chungking /usr/share/zoneinfo/Asia/Shanghai lrwxrwxrwx 1 root root 8 Apr 5 20:24 /usr/share/zoneinfo/Asia/Chungking -> Shanghai -rw-r--r-- 1 root root 561 Apr 5 20:24 /usr/share/zoneinfo/Asia/Shanghai ``` Asia/Chungking is part of tzdata-legacy and this package is probably not installed. Anyways, I'll replace the symlinks that point to symlinks. ** Description changed: forwarded from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114770 + + ``` + #include + int main() + { + (void) std::chrono::locate_zone("Asia/Chungking"); + } + ``` + + With the latest tzdata (version 2024a-2) on Debian Sid this fails: + + terminate called after throwing an instance of 'std::runtime_error' + what(): tzdb: cannot locate zone: Asia/Chungking + Aborted (core dumped) + + The problem is a Debian patch that enables link chaining, so that one link can have another link as its target: + https://sources.debian.org/patches/tzdata/2024a-2/ziguard.awk-Move-link-to-link-feature-from-vanguard-to-ma.patch/ + + This feature was added to tzdata in 2022, but isn't compatible with the + expectations of the C++20 standard. When chrono::locate_zone finds a + link, it expects its target to be a zone, not another link. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2062522] Re: std::chrono::locate_zone("Asia/Chungking") fails
** Also affects: tzdata (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062522 Title: std::chrono::locate_zone("Asia/Chungking") fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2062522/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs