perl -MTime::Piece -e 'print localtime->strftime'
would produce a perl.core on my system.I'll use POSIX::strftime for now.I submitted a bug report, however in meanwhile I will look at fixing it myself. The timesone pointer in the below mytm structrure seems to be a culprit:
#3 0x06223323 in XS_Time__Piece__strftime (cv=0x8aab36fc) at Piece.xs:830
830 len = strftime(tmpbuf, sizeof tmpbuf, fmt, &mytm);
(gdb) p mytm
$1 = {tm_sec = 45, tm_min = 13, tm_hour = 17, tm_mday = 17, tm_mon = 1, tm_year = 106,
tm_wday = 5, tm_yday = 47, tm_isdst = 0, tm_gmtoff = -2089609684,
tm_zone = 0xde6cd6c <Address 0xde6cd6c out of bounds>}
No comments:
Post a Comment