re-assigning bug to glibc
** Package changed: coreutils (Ubuntu) => glibc (Ubuntu)
** Description changed:
I have been using 'date +%-Y -d "- 2010 years" in a script for years but
today after using the script after upgrading to disco it has failed.
After some experimentation it
Trying on the current fedora 30 livecd they have the same issue
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1824688
Title:
date+%-Y -d "- N years" errors when N > 111
To manage notifications
Further exchange on https://debbugs.gnu.org/35289 suggests this is a
libc6 problem, not a coreutils/date one.
Assaf Gordon (upstream) provided a test that can be run (attached here
are inv-year.c). If it fails on the mktime() call, then it is not
'date', but libc6.
I also found that setting
Assaf's test, attached.
** Attachment added: "inv-year.c"
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1824688/+attachment/5256314/+files/inv-year.c
** Changed in: coreutils (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member
Here's the strace output.
** Attachment added: "straceout"
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1824688/+attachment/5256046/+files/straceout
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
Thanks for the testing C de-Avillez.
Here's the output of debug:
$ date +%-Y -d "- 112 years" --debug
date: parsed relative part: -112 year(s)
date: input timezone: system default
date: using current time as starting value: '20:47:40'
date: using current date as starting value: '(Y-M-D)
Assaf Gordon reports that he did not reproduce the problem on Ubuntu
Live amd64 dated 2019-04-13 22:28; see:
https://debbugs.gnu.org/35289#25
Perhaps the output of 'env' and 'strace' will help the original reporter
diagnose the problem.
--
You received this bug notification because you are a
I have ran a few tests on 16.04, 18.04, 18.10, and 19.04 (all X86_64):
16.04:
root@u1604:~# date +%-Y -d '- 2010 years'
9
root@u1604:~# date --version
date (GNU coreutils) 8.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
I got a reply to my bug report on gnu.org which says:
"
From:
Paul Eggert
It works for me with coreutils 8.31 on RHEL 7 x86-64:
$ date +%-Y -d "- 2010 years"
9
Most likely you are running on a 32-bit machine, and dates in the year 9
cannot be represented in a 32-bit timestamp. So a simple fix
Ok, it is now reported upstream:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35289
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1824688
Title:
date+%-Y -d "- N years" errors when N > 111
To
Thank you for your bug report, that sounds like an upstream issue and
probably worth reporting on https://lists.gnu.org/archive/html/bug-
coreutils/
** Changed in: coreutils (Ubuntu)
Importance: Undecided => Low
--
You received this bug notification because you are a member of Ubuntu
Bugs,
11 matches
Mail list logo