Package: libc6
Version: 2.3.6.ds1-13
Severity: important
I was writing a program using localtime, and i noticed some crashes every so
often (a call every 50ms or so, a crash every 1-2 minutes), which yielded the
following message :
tzfile.c:544: __tzfile_compute: Assertion `num_types == 1'
This one time, at band camp, Sven Luther said:
The code yielding to this was of the kind of :
struct tm tm;
time_t t;
t = time(NULL);
localtime (t, tm);
This is in a fr_FR.utf8 locale, on a powerpc box. The same code on an x86 box
just segfaults without error message.
That
On Wed, Apr 04, 2007 at 07:50:02PM +0100, Stephen Gran wrote:
This one time, at band camp, Sven Luther said:
The code yielding to this was of the kind of :
struct tm tm;
time_t t;
t = time(NULL);
localtime (t, tm);
This is in a fr_FR.utf8 locale, on a powerpc box.
This one time, at band camp, Sven Luther said:
And indeed, like i said, it worked fine 100s of times, and then died. Try :
int main (void) {
struct tm tm;
time_t t;
while (1) {
t = time(NULL);
localtime_r (t, tm);
}
exit(0);
}
[EMAIL PROTECTED]:~$ cat t.c
#include
On Thu, Apr 05, 2007 at 12:00:01AM +0100, Stephen Gran wrote:
This one time, at band camp, Sven Luther said:
And indeed, like i said, it worked fine 100s of times, and then died. Try :
int main (void) {
struct tm tm;
time_t t;
while (1) {
t = time(NULL);
localtime_r
5 matches
Mail list logo