[Bug 33055] Fishdom 2 crashes during the initial loading stage

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Apr 4 09:20:49 CDT 2013


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

--- Comment #5 from Rico <kgbricola at web.de> 2013-04-04 09:20:49 CDT ---
No, if we pass garbage to wined3d_device_set_texture it will crash there - this
is where texture_impl->wined3d_texture points to, that's why I think we have to
use NULL. The texture variable contains freed memory, which could be already
overwritten. The game also crashes with your patch.

Unhandled exception: divide by zero in 32-bit code (0x7e265420).
=>0 0x7e265420 wined3d_buffer_preload+0x2e0(buffer=<couldn't compute location>)
[/mnt/raid0/software/wine/build/dlls/wined3d/../../../git/dlls/wined3d/buffer.c:884]
in wined3d (0x0033f0d8)
  1 0x7e2674f5 wined3d_buffer_unmap+0xb4(buffer=0x1e1bd8)
[/mnt/raid0/software/wine/build/dlls/wined3d/../../../git/dlls/wined3d/buffer.c:1173]
in wined3d (0x0033f158)
  2 0x7e381521 d3d8_device_DrawPrimitiveUP+0x150(iface=0x147650,
primitive_type=D3DPT_TRIANGLESTRIP, primitive_count=0x2, data=0x33f1e4,
stride=0x18)
[/mnt/raid0/software/wine/build/dlls/d3d8/../../../git/dlls/d3d8/device.c:1969]
in d3d8 (0x0033f1c4)
  3 0x0059c3de in game.run (+0x19c3dd) (0x0033f244)

Passing freed memory around doesn't seem to be a good idea...

Maybe I missed something while testing?

This happens only on the first start. If you started the app once sucessfully,
you have to reinstall it to trigger the bug.

-- 
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