[Bug 40068] Custom assembly program crashes under Wine

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Feb 28 19:09:57 CST 2016


https://bugs.winehq.org/show_bug.cgi?id=40068

--- Comment #22 from Sebastian Lackner <sebastian at fds-team.de> ---
(In reply to Andrew Kennedy from comment #20)
> Instructions are ANYTHING but simple.
> 
> I found no wine source directory.
> 
> I put the patch in the same directory as the assembly source code.
> 
> # patch -p1 < stack.patch     
> patch: **** Only garbage was found in the patch input.
> 
> I do hope that Dmitry knows that the source code is assembly language and
> not c.
> 
> Does it patch the executable itself ?
> 
> I will try the patch with the .exe.

The patch is for Wine itself, not for your assembly program. What the assembly
program does is still wrong of course, but it avoids the crash in the same way
as on Windows XP. If you are having trouble building Wine yourself, please
refer to the WineHQ forums for further help.

Fixing the assembly program is even better of course, if you want to do that -
the issue is explained in comment 14, and can be easily fixed by allocating a
proper stack frame at the beginning of the function and initializing %ebp
before using it. Based on the original description I assume you are a bit
familiar with assembler and can easily do this change yourself.

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