[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#484048: marked as done (gettimeofday() crashes if given a timezone on amd64)



Your message dated Tue, 3 Jun 2008 08:48:26 +0200
with message-id <20080603064826.GR29466@stro.at>
and subject line Re: gettimeofday() crashes if given a timezone on amd64
has caused the Debian Bug report #484048,
regarding gettimeofday() crashes if given a timezone on amd64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
484048: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=484048
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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.




--- End Message ---
--- Begin Message ---
tried to reproduce but example code, just runs fine.

> I recompiled it to see what was happening and the problem went away.
> The only difference was that I compiled by hand (with "make") instead of
> using the debian tool to compile it, and it was compiled under etch.  So
> it's not a problem any more, but if you see this again you know what it
> is.


seems you used an supported gcc version, gcc 4.3 was known to miscompile
older kernel versions.

thus closing


-- 
maks


--- End Message ---

Reply to: