Bug 996203

Summary: Wine64 seh:RtlUnwindEx error with c++ exception handling
Product: [Fedora] Fedora Reporter: Alex Puchades <alex94puchades>
Component: wineAssignee: Andreas Bierfert <andreas.bierfert>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: alex94puchades, andreas.bierfert, mike, stefan
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-25 23:17:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
The offending code none

Description Alex Puchades 2013-08-12 16:12:34 UTC
Description of problem:
When I was implementing a C wrapper for a C++ library, catching all possible exceptions in C++-land, I noticed my exception handlers were not being called and my app crashed under wine64. The same binary run just fine under windows 7, so it had to be a wine bug. Also, the same code compiled for 32 bits run successfully under the 32 bits version of wine.

Version-Release number of selected component (if applicable):
$ wine64 --version 
  wine-1.6

How reproducible:
(assuming current-dir = uncompressed attachment)

Steps to Reproduce:
1. $ ./compile64.sh
2. $ wine64 ./main.exe

Actual results:
  throwing exception
  err:seh:RtlUnwindEx invalid frame 7fff42757fd0 (0x132000-0x330000)
  err:seh:setup_exception stack overflow 2416 bytes in thread 0009 eip 
  0007fb39b2ab22b esp 0000000000130c90 stack 0x130000-0x131000-0x330000

Expected results:
No crash :) Just what happens when compiled with compile32.sh:
  throwing exception
  exception caught

Additional info:
Source code triggering the bug attached below.

Comment 1 Alex Puchades 2013-08-12 16:13:50 UTC
Created attachment 785771 [details]
The offending code

Comment 2 Michael Cronenworth 2013-08-12 16:38:02 UTC
Alex,

Have you filed a bug with upstream?

http://bugs.winehq.org/

Comment 3 Alex Puchades 2013-08-12 16:42:55 UTC
(In reply to Michael Cronenworth from comment #2)
> Alex,
> 
> Have you filed a bug with upstream?
> 
> http://bugs.winehq.org/

I'm doing it now

Note: sorry, I'm a beginner with bug trackers yet :)

Comment 4 Fedora End Of Life 2015-01-09 22:15:31 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Alex Puchades 2015-01-10 15:19:19 UTC
The packages mingw32-winpthreads-static and mingw64-winpthreads-static must be installed in order to compile the attached package. Libwinpthread-1.dll is also necessary at runtime.

Comment 6 Alex Puchades 2015-04-25 23:17:16 UTC
This bug was fixed upstream. Closing this bug now.