[Bug 28810] d3dx9_36/tests/mesh.ok: D3DXLoadMeshTest fails under valgrind

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Nov 19 05:57:50 CST 2011


http://bugs.winehq.org/show_bug.cgi?id=28810

--- Comment #1 from Rico <kgbricola at web.de> 2011-11-19 05:57:50 CST ---
Created attachment 37530
  --> http://bugs.winehq.org/attachment.cgi?id=37530
Buggy ok conversation test.

I discovered a similar problem, it doesn't have to do with valgrind or the mesh
test, but I think it might have the same underlying problem.

Using a cast in the ok() macro seems to fail on some calls (see test). I'm not
sure if that's a problem with the compiler or anything else. Attached is a
small test case which triggers the bug on my system. Maybe someone else is able
to reproduce it so that we could narrow down the wrong conversation.

Output with the my patch (wine d3dx9_36_test.exe.so buggy):
buggy.c:31: Test failed: int 4, float 4
buggy.c:35: Test failed: 1ffffff
buggy.c:37: Test failed: 1ffffff
buggy.c:40: Test failed: 33554432.000000 33554431.000000

I'd expect that these values should be equal.

Note: Reordering the calls seems to solve the issue in some cases.

Dan: Could you try to convert the values to a temporary variable first and see
if that helps?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list