Re: The Linux/BSD DF kernel bug

2008-03-20 Thread Alexandre Julliard
Ove Kaaven <[EMAIL PROTECTED]> writes: > Alexandre Julliard skrev: >> All other Windows compilers have to respect the ABI as defined by MSVC, >> if only because all the system dlls are built with MSVC. > > Well, we don't really know how the system dlls are built, they could > have different compil

Re: The Linux/BSD DF kernel bug

2008-03-20 Thread Ove Kaaven
Alexandre Julliard skrev: > Ove Kaaven <[EMAIL PROTECTED]> writes: > >> Alexandre Julliard skrev: >>> It depends if MSVC respects that ABI constraint or not. >> Only if you want to make Wine depend on the compiler used to compile >> Windows applications. Not all of them are called "MSVC". I know >

Re: The Linux/BSD DF kernel bug

2008-03-20 Thread Alexandre Julliard
Ove Kaaven <[EMAIL PROTECTED]> writes: > Alexandre Julliard skrev: >> It depends if MSVC respects that ABI constraint or not. > > Only if you want to make Wine depend on the compiler used to compile > Windows applications. Not all of them are called "MSVC". I know > Borland Delphi is used by some

Re: The Linux/BSD DF kernel bug

2008-03-20 Thread Ove Kaaven
Alexandre Julliard skrev: > Ove Kaaven <[EMAIL PROTECTED]> writes: > >> But that's a bit of a different issue, unrelated to the kernel flaw. I >> was only talking about that flaw. I kind of tried to clarify that in >> my next followup... oh well. > > Sure, it has nothing to do with the kernel bug

Re: The Linux/BSD DF kernel bug

2008-03-20 Thread Alexandre Julliard
Ove Kaaven <[EMAIL PROTECTED]> writes: > When it comes to ABI issues with MSVC code, the question isn't so much > whether it uses cld, but what Windows does when throwing > exceptions. Does Windows clear the DF when it calls exception > handlers? If not, then there's hardly any Wine bug here (that

Re: The Linux/BSD DF kernel bug

2008-03-20 Thread Alexandre Julliard
Ove Kaaven <[EMAIL PROTECTED]> writes: > But that's a bit of a different issue, unrelated to the kernel flaw. I > was only talking about that flaw. I kind of tried to clarify that in > my next followup... oh well. Sure, it has nothing to do with the kernel bug, except that it points to a similar

Re: The Linux/BSD DF kernel bug

2008-03-20 Thread Ove Kaaven
Alexandre Julliard skrev: > Ove Kaaven <[EMAIL PROTECTED]> writes: > >> Francois Gouget skrev: >>> Does anyone know if MSVC does a cld in the right places? >> Maybe. But it hardly matters. Only GCC-generated code is affected. The >> problem might then show up in Wine signal/exception handling. Th

Re: The Linux/BSD DF kernel bug

2008-03-20 Thread Alexandre Julliard
Ove Kaaven <[EMAIL PROTECTED]> writes: > Francois Gouget skrev: >> Does anyone know if MSVC does a cld in the right places? > > Maybe. But it hardly matters. Only GCC-generated code is affected. The > problem might then show up in Wine signal/exception handling. Things > like, say, copying the C

Re: The Linux/BSD DF kernel bug

2008-03-20 Thread Ove Kaaven
Ove Kaaven skrev: >> Does anyone know if MSVC does a cld in the right places? > > Maybe. But it hardly matters. Only GCC-generated code is affected. In order to avoid confusion about my answer, I should probably clarify. I was answering this question only: "Could this kernel bug affect MSVC cod

Re: The Linux/BSD DF kernel bug

2008-03-19 Thread Ove Kaaven
Francois Gouget skrev: >The problem revolves around the x86 direction flag (DF), which >governs whether block memory operations operate forward through >memory or backwards. GCC [...] 4.3.0, assumes that the direction flag >has been cleared [...] at the entry of each function, as

Re: The Linux/BSD DF kernel bug

2008-03-19 Thread Stefan Dösinger
Am Mittwoch, 19. März 2008 16:06:34 schrieb Francois Gouget: > On Wed, 19 Mar 2008, Francois Gouget wrote: > [...] > > > So any compiler that not clear the direction flag at the start of each > > function can cause kernel crashes when running on a buggy Linux or BSD > > kernel. > >

Re: The Linux/BSD DF kernel bug

2008-03-19 Thread Francois Gouget
On Wed, 19 Mar 2008, Francois Gouget wrote: [...] > So any compiler that not clear the direction flag at the start of each > function can cause kernel crashes when running on a buggy Linux or BSD kernel. ^^ remove Sorry, it's just regular application

The Linux/BSD DF kernel bug

2008-03-19 Thread Francois Gouget
So I've just read the following article: GCC 4.3.0 exposes a kernel bug http://lwn.net/SubscriberLink/272048/ecf14f359bcdcd15/ And my question is: could this be relevant to Wine? And I don't mean about GCC 4.3.0 but about MSVC. Here's the core of the issue: The problem revolves around