2024-04-19 08:59:44 |
Matthias Klose |
bug |
|
|
added bug |
2024-04-19 09:01:18 |
Benjamin Drung |
bug task added |
|
tzdata (Ubuntu) |
|
2024-04-19 19:28:03 |
Benjamin Drung |
description |
forwarded from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114770 |
forwarded from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114770
```
#include <chrono>
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. |
|
2024-04-19 19:56:02 |
Benjamin Drung |
tzdata (Ubuntu): status |
New |
Fix Committed |
|
2024-04-19 19:56:04 |
Benjamin Drung |
tzdata (Ubuntu): importance |
Undecided |
Medium |
|
2024-04-30 20:44:41 |
Steve Langasek |
tzdata (Ubuntu Noble): status |
New |
Fix Committed |
|
2024-04-30 20:44:44 |
Steve Langasek |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2024-04-30 20:44:48 |
Steve Langasek |
bug |
|
|
added subscriber SRU Verification |
2024-04-30 20:44:51 |
Steve Langasek |
tags |
|
verification-needed verification-needed-noble |
|
2024-04-30 21:49:38 |
Benjamin Drung |
description |
forwarded from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114770
```
#include <chrono>
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. |
[ Impact ]
forwarded from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114770
```
#include <chrono>
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`:
```
#include <chrono>
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. |
|
2024-04-30 21:50:25 |
Benjamin Drung |
description |
[ Impact ]
forwarded from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114770
```
#include <chrono>
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`:
```
#include <chrono>
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. |
[ Impact ]
forwarded from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114770
```
#include <chrono>
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. Install tzdata-legacy
2. Create `testcase.cpp`:
```
#include <chrono>
int main()
{
(void) std::chrono::locate_zone("Asia/Chungking");
}
```
3. Compile: `g++ -std=c++20 -o testcase testcase.cpp`
4. Run: `./testcase`
The test case should not crash. |
|
2024-05-03 15:04:31 |
Benjamin Drung |
tags |
verification-needed verification-needed-noble |
verification-done verification-done-noble |
|
2024-05-20 20:10:48 |
Launchpad Janitor |
tzdata (Ubuntu): status |
Fix Committed |
Fix Released |
|
2024-06-04 12:32:55 |
Simon Chopin |
glibc (Ubuntu): status |
New |
Invalid |
|
2024-06-04 21:45:29 |
Launchpad Janitor |
tzdata (Ubuntu Noble): status |
Fix Committed |
Fix Released |
|
2024-06-04 21:45:31 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|