Red Hat Bugzilla – Bug 8352
date -f : Segmentation fault
Last modified: 2008-05-01 11:37:53 EDT
Using the -f switch with the date command, the date strings in the file are
processed properly, and then I get a segmentation fault. For example:
$ date > t.t
$ date >> t.t
$ date -f t.t
Mon Jan 10 18:29:25 EST 2000
Mon Jan 10 18:29:29 EST 2000
Segmentation fault (core dumped)
This was not a problem on RedHat 5.2. Running strace, it looks like a final
read runs off the end of the file causing the fault.
Works with the 'date' on my system, I'll assume it has been fixed recently.