From: Ravindra [mailto:rsahlot@yahoo.com] Sent: Saturday, September 25, 2010 8:01 To: Olson, Arthur David (NIH/NCI) [E] Subject: RE: zic and zoneinfo.zip
BTW, I'm looking at various possibilities because I'm using the code and data from version "2010l" and I'm hitting following memory error in valgrind log:
==5207== Thread 27: ==5207== Conditional jump or move depends on uninitialised value(s) ==5207== at 0x1B9F988: typesequiv (localtime.c:522) ==5207== by 0x1B9F830: tzload (localtime.c:493) ==5207== by 0x1BA261B: tz_validate (tz.c:1717)
Below call is hitting above memory error (line numbers may not match with original code because we have integrated it in our code):
1712 struct state state = {0}; 1713 time_t now; 1714 struct tm tm; 1715 1716 time(&now); *** 1717 tzload(gmt, &state, TRUE, 0);
Perhaps the extra parameter in your modified tzload() function has something to do with the problem? *** Regarding 64-bit and 32-bit, I have a 32-bit chrooted environment on my 64-bit system, and the data produced by 64-bit zic running outside the chrooted environment is identical to the data produced by the 32-bit zic running inside the 32-bit chrooted environment. (That's with the 2010l versions of tzcode and tzdata.) -- -=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-