peek_message reading bogus data from wineserver

Phil Lodwick Phil.Lodwick at EFI.COM
Wed Jul 18 15:01:03 CDT 2007


Greetings!

I have been chasing down a bug and was hoping to get a few suggestions as to
what to look at next.

In an application's main message loop it calls GetMessage.  Occasionally this
call would hit an assert within Wine code.  Tracking this down I have found a
problem in the call to the wineserver in the peek_message routine in
user/message.c.

This routine will make a "get_message" wine server request, successfully read
64 bytes of data, but the data in the buffer is bogus.  I can put debug in
server/request.c/send_reply and see that the data being written by the server
is correct.  Similar debug in dlls/ntdll/server.c/read_reply_data shows that
the data being read is wrong.

I am pretty sure this is a timing related problem.

Has anybody seen something similar or have any suggestions on what more to
look at?

Thanks,
Phil




More information about the wine-devel mailing list