Date: 17 Dec 2002 01:53:07 -0500 From: Joe Marcus Clarke <marcus@FreeBSD.org> To: Greg Rumple <grumple@zaphon.llamas.net> Cc: alane@geeksrus.net, Bjarne Wichmann Petersen <freebsd.nospam@mekanix.dk>, Frank Altpeter <frank@altpeter.de>, freebsd-ports@FreeBSD.org Subject: Re: ports/46280: ports/www/phoenix-0.5_3 exit 11 after download Message-ID: <1040107987.1204.359.camel@shumai.marcuscom.com> In-Reply-To: <20021216210247.GG36451@gw.cognigen.net> References: <200212160030.gBG0U5k7014592@freefall.freebsd.org> <200212161151.03426.freebsd.nospam@mekanix.dk> <20021216122206.GA75623@wwweasel.geeksrus.net> <200212161614.07885.freebsd.nospam@mekanix.dk> <20021216152442.GA87956@wwweasel.geeksrus.net> <1040059524.28013.36.camel@shumai.marcuscom.com> <20021216210247.GG36451@gw.cognigen.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-nsZmgOeCuOt9AEloBsJD Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 2002-12-16 at 16:02, Greg Rumple wrote: > Looking at the above, I looked at this. >=20 > (gdb) frame 5 > #5 0x28cf6e8c in rdf_FormatDate (aTime=3D1040071974343975, > aResult=3D@0xbfbfbd1c) at rdfutil.cpp:184 > 184 PR_FormatTimeUSEnglish(buf, sizeof buf, "%a %b %d %H:%M:%S > %Z %Y", &t); > (gdb) print t > $1 =3D {tm_usec =3D 343975, tm_sec =3D 54, tm_min =3D 52, tm_hour =3D 12,= tm_mday =3D 16, tm_month =3D 11,=20 > tm_year =3D 2002, tm_wday =3D 1 '\001', tm_yday =3D 349, tm_params =3D = {tp_gmt_offset =3D -28800,=20 > tp_dst_offset =3D 0}} >=20 > (gdb) print buf > $2 =3D "Mon Dec 16 12:52:54 \200s\t\b@=C2=BE=C2=BF=C2=BF=C2=B6=C2=A5#(0T(= (\0008\225\b;=C2=BF=C2=BF=C3=A8=C3=9A#(0T((P=C2=BC=C2=BF=C2=BF\016\000\000\= 0004\\#(0T((\016\000\000\000=E0=BB=BF=C2=BF=C3=BEp\037(\224=C3=8B=C3=91(=C3= =A0=C3=A3\216\b\234=C2=BC=C2=BF=C2=BF?|#(D=C2=BC=C2=BF=C2=BF\000\000\000\00= 0\020=C2=BC=C2=BF=C2=BF\226\002=C3=8E(=C3=A0=C3=A3\216\b\004\000\000\000=C3= =84=C3=BD=C3=90(\024\000\000\000\224=C3=8B=C3=91(\001\000\000\000\220=C2=BC= =C2=BF=C2=BF@=C3=B0=C3=8E(@=C2=BC=C2=BF=C2=BF\002\000\000\000@=C2=BC=C2=BF= =C2=BF%\004=C3=8E(=C3=A0=C3=A3\216\bP=C2=BC=C2=BF=C2=BF\016\000\000\000R\00= 3=C3=8E(=C2=A1[#(0T((`=C2=BC=C2=BF=C2=BF=C2=A5z#( =C2=BD=C2=BF=C2=BF\000\00= 0\000\000"... > (gdb) print sizeof buf > $3 =3D 256 >=20 > So it looks like it started to format the date when it crashed. First, I'd like to thank you for such a good report of the problem. I wish all problems came with a good backtrace, and thoughtful analysis.=20 Second, I think I found the problem. Not being a Phoenix user (yet), and not having the Mozilla 1.3a source with which to make a patch, you should be able to fix this problem, by editing mozilla/nsprpub/pr/src/misc/prtime.c, and adding the following right below line 1652 (struct tm a): bzero(&a, sizeof(struct tm)); I have tested this with a sample program I created, and this seems to fix the timezone corruption issue. However, as I said, I have not tested this in action. I look forward to hearing your results. Joe --=20 Joe Marcus Clarke FreeBSD GNOME Team :: marcus@FreeBSD.org http://www.FreeBSD.org/gnome --=-nsZmgOeCuOt9AEloBsJD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA9/snSb2iPiv4Uz4cRAuTzAJ4mNyRPknbLzUafhIHsQPoH2yCSjACfdm2l A6LRXaRpg0gOdDcq+UJwu/M= =+krv -----END PGP SIGNATURE----- --=-nsZmgOeCuOt9AEloBsJD-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1040107987.1204.359.camel>