Anyone notice this?

David P. Reese, Jr. daver at gomerbud.com
Mon Nov 10 16:25:48 PST 2003


On Mon, Nov 10, 2003 at 12:57:40PM -0800, Matthew Dillon wrote:
> 
> :
> :>     The BSD opera seg faults on me on exit.  The linux opera and the bsd
> :>     opera both generate messed up graphics for me.
> :>
> :>     I'm trying to track down the cause.
> :>
> :
> :Native Opera on FreeBSD crashes on exit, it always have.
> :
> 
>     I have found it... the last major syscall separation commit accidently
>     used a 32 bit result from lseek instead of a 64 bit result.  %edx of
>     the return value was not being modified because only 32 bits of the
>     return value were being set.
> 
>     In fact, even the normal DFly lseek() call was screwing up the top 32 bits
>     because only 32 bits of the return value was being set instead of 64 bits
>     (off_t's are 64 bits).

I'm learning a valuable lesson.  Cut smaller patches more often.  I've
almost got execve() done.  The next one will have fewer bugs.

-- 
   David P. Reese, Jr.                                     daver at xxxxxxxxxxxx
                                               http://www.gomerbud.com/daver/





More information about the Kernel mailing list