Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Mar 1996 03:44:55 +0800
From:      Peter Wemm <peter@jhome.DIALix.COM>
To:        current@freebsd.org
Subject:   The Netscape/Linux emulator scrollbar bug exposed!!! :-)
Message-ID:  <199603041944.DAA01144@jhome.DIALix.COM>

next in thread | raw e-mail | index | archive | help
Well,  I'm afraid I'm going to do it.. I'm going to tell _what_ trivial
bug was preventing the Netscape scrollbars being rendered when using
Netscape-2.0 under the Linux emulator..

It's nothing grand, like the Motif botches, Netscape programming errors,
signal emulation, select emulation, pipe write coalescing, socket code,
lost Xserver events, phase of the moon, etc. :-)

It's actually *unbelievably* trivial! :-)

It is..  *drum roll*....

The Linux emulation of the time(2) syscall was getting an EFAULT for time(0)
and returning zero instead of the correct time....

***AAARRRGGGGHHHH!!!!***

I presume Netscape were simply calling time(0) in their main buzz-loop and
once every second, they were rendering the scrollbar.  Presumably the initial
"last_time_rendered" variable was zero, so it was never drawn, because time(0)
was returning zero..

*** SCREAM ***!!

Yes, this ~10 character change is trivial enough to go into -stable.. :-)

Cheers,
-Peter



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603041944.DAA01144>