Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] date segfaulting!

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Damien Mascord <tusker AT tusker.org>
  • To: SM-Discuss <SM-Discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] date segfaulting!
  • Date: Wed, 20 Nov 2002 12:31:57 +0800

Seems as though there is probably a small bug of not closing the file descriptor:

2.0.11 -

write(1, "2 day ago\n", 10) = 10
close(1) = 0
munmap(0x40014000, 4096) = 0
_exit(0) = ?


2.0
write(1, "2 day ago\n", 10) = 10
munmap(0x40014000, 4096) = 0
_exit(0) = ?

Damien

At 12:24 PM 20/11/2002 +0800, you wrote:
Heya guys,

For some reason date is segfaulting when trying to parse dates from a file:

echo "2 day ago" | date -f-

Mon Nov 18 20:25:02 SGT 2002
Segmentation fault

Very weird thing. a strace doesn't seem to do anything too wrong.

I am running "date (GNU sh-utils) 2.0", though trying the same thing on a different box (running debian) on "date (GNU sh-utils) 2.0.11" doesn't segfault.

Perhaps upgrading sh-utils is in order?

Damien


_______________________________________________
SM-Discuss mailing list
SM-Discuss AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/sm-discuss







Archive powered by MHonArc 2.6.24.

Top of Page