Bug#484048: gettimeofday() crashes if given a timezone on amd64
Package: libc6
Version: 2.7-10
I just upgraded from etch to lenny on an amd64 machine. gdm crashed
at startup. I traced it down to gdm calling gettimeofday() with a
timezone. The following program also crashes:
#include <sys/time.h>
#include <time.h>
int
main(int argc, char *argv[])
{
struct timeval tv;
struct timezone tz;
gettimeofday(&tv, &tz);
return 0;
}
If you remove the timezone, it works fine. The timezone was
pointless in gdm, so I removed it and it works fine now.
It seems to work fine on an x86 box, which has a different problem :(.
I am using Debian lenny/sid, kernel 2.6.25.
Reply to: