[Wine] err:seh:setup_exception stack overflow in own application

Fabian Wein fabian.wein at fau.de
Mon Oct 24 07:47:17 CDT 2016

On 24.10.2016 12:04, A B wrote:
> Try installing with : winetricks vcrun6 , and then set msvcrt.dll to native in your winecfg

I did:
winetricks vcrun6, see below, and cross-compiled my application again.

However there was no change.

I thought the problem might be a standard?! I'll have to find a real 
windows first and test my problems there to find out if it comes from 
or from wine.

You are using a 64-bit WINEPREFIX. If you encounter problems, please 
retest in a clean 32-bit WINEPREFIX before reporting a bug.
Using winetricks 20160724 - sha1sum: 
3e7752ea2e3722c0efd58116026954bf418dcfc0 with wine-1.9.20
Executing w_do_call vcrun6
Executing load_vcrun6
Executing mkdir -p /home/fwein/.cache/winetricks/vcrun6
to /home/fwein/.cache/winetricks/vcrun6
--2016-10-24 13:22:59-- 
Resolving download.microsoft.com (download.microsoft.com)..., 2a02:26f0:10:389::e59, 2a02:26f0:10:399::e59
Connecting to download.microsoft.com 
(download.microsoft.com)||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1837888 (1,8M) [application/octet-stream]
Saving to: ‘VC6RedistSetup_deu.exe’

   1,75M  4,65MB/s    in 0,4s

2016-10-24 13:22:59 (4,65 MB/s) - ‘VC6RedistSetup_deu.exe’ saved 

Executing wine 
/T:C:\windows\Temp\_vcrun6 /c
Executing cabextract -q 
/home/fwein/.cache/winetricks/vcrun6/vcredist.exe -d 
/home/fwein/.wine/dosdevices/c:/windows/syswow64 -F mfc42*.dll


> On Mon, Oct 24, 2016 at 12:59 PM, A B <dianaxxyyzz at gmail.com
> <mailto:dianaxxyyzz at gmail.com>> wrote:
>     Hello ,
>     Have you tried to compile the code using the winelib ?
>     Are you using the windows msvcrt.dll or a msvcrt compiled for linux?
>     You can  try with a msvcrt.dll that you get from a windows  os.
>     On Mon, Oct 24, 2016 at 12:29 PM, Fabian Wein <fabian.wein at fau.de
>     <mailto:fabian.wein at fau.de>> wrote:
>         Hi,
>         we have a own C++ code running usually on Linux and OS X. The
>         code is known to run on Windows compiled natively. It is a
>         text-based academic code (Finite-Element) using some Fortran
>         Libs compiled with the cross-compiler and Intels MKL.
>         Now I cross-compile the code using mingw 6.2.0 from openSUSE.
>         We have a testsuite for our code with 150 complete test runs
>         (the whole application runs with different input).
>         Out of these about 70 fail and the most common error (40) is
>         of this type.
>         ERROR: RV=1 : fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x01b6 ignored
>         err:seh:setup_exception stack overflow 1712 bytes in thread
>         0026 eip 000000007bc654c9 esp 0000000000130f50 stack
>         0x130000-0x131000-0x330000
>         Any hints? Links? Apporaches to debug the stuff?
>         It runs on openSUSE tumbleweed with wine-1.9.20
>         Thanks

Dr. Fabian Wein, University of Erlangen-Nuremberg
Department of Mathematics/ Excellence Cluster for Engineering of 
Advanced Materials
phone: +49 9131 85 20849

More information about the wine-users mailing list