View Issue Details

IDProjectCategoryView StatusLast Update
0017658CentOS-8-OTHERpublic2020-08-09 17:43
Reporterehildum 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Platformx86_64OSCentOS 8OS Version8.2.2004
Product Version8.2.2004 
Target VersionFixed in Version 
Summary0017658: mingwXX-gcc-c++ compilers do not produce runnable executables
DescriptionMingw compilers installed with mingw32-gcc-g++ and mingw64-gcc-c++ packages do not produce valid executables.
Steps To ReproduceInstall mingw cross compiler package, e.g. mingw32-gcc-c++ from CentOS 8 PowerTools repo.

Compile hello.cpp test program:
-------------------------------------------------------------------------------
#include <iostream>

int main(int argc, char **argv)
{
    std::cout << "Hello, World." << std::endl;
    return 0;
}
-------------------------------------------------------------------------------
Compile command:
        i686-w64-mingw32-g++ -o hello++.exe hello.cpp

Copy required libraries to local directory from /usr/i686-w64-mingw32/sys-root/mingw/bin/:
     libgcc_s_sjlj-1.dll
     libstdc++-6.dll
     libwinpthread-1.dll

Execute with wine:
     wine hello++.exe

Wine pops up a backtrace window (see backtrace.txt).

Executing the file under Win 10 produces no output.

Additional Informationfile hello++.exe gives:
      hello++.exe: PE32 executable (console) Intel 80386, for MS Windows

file libgcc_s_sjlj-1.dll
libgcc_s_sjlj-1.dll: PE32 executable (DLL) (console) Intel 80386, for MS Windows

file libstdc++-6.dll
libstdc++-6.dll: PE32 executable (DLL) (console) Intel 80386, for MS Windows

file libwinpthread-1.dll
libwinpthread-1.dll: PE32 executable (DLL) (console) Intel 80386, for MS Windows
TagsNo tags attached.

Activities

ehildum

ehildum

2020-08-09 17:43

reporter  

backtrace.txt (4,761 bytes)
Unhandled exception: page fault on read access to 0xfffffff4 in 32-bit code (0x6fea11f3).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:6fea11f3 ESP:0061fd80 EBP:0061fe18 EFLAGS:00010202(  R- --  I   - - - )
 EAX:00000000 EBX:6ff16a40 ECX:0061fdf8 EDX:00000000
 ESI:0061fdf8 EDI:006c789c
Stack dump:
0x0061fd80:  7ea79750 00404001 6ff16a40 6ff0142a
0x0061fd90:  6ff16a40 00000008 00000080 0061fdc0
0x0061fda0:  0061fdc0 00401700 0061fde8 7e9ea8eb
0x0061fdb0:  00401700 0061fdbc 0061fde8 00000000
0x0061fdc0:  ffffffff 00000004 4d430000 00230f0d
0x0061fdd0:  00000003 6ff10a20 6ff14734 0061fe00
Backtrace:
=>0 0x6fea11f3 _ZGTtNKSt9exception4whatEv+0xdf63() in libstdc++-6 (0x0061fe18)
  1 0x6ff0142a _ZGTtNKSt9exception4whatEv+0x6e199() in libstdc++-6 (0x0061fe18)
  2 0x6ff06f29 _ZGTtNKSt9exception4whatEv+0x73c98() in libstdc++-6 (0x0061fe58)
  3 0x0040157a in hello++ (+0x1579) (0x0061fe58)
  4 0x004013eb EntryPoint+0xffffffff() in hello++ (0x0061ff30)
  5 0x7b452212 call_process_entry+0x11() in kernel32 (0x0061ff48)
  6 0x7b452600 start_process+0xdf(entry=<couldn't compute location>, peb=<couldn't compute location>) [Z:\home\ehildum\src\wine\build32\dlls\kernel32\..\..\..\wine-5.0.1\dlls\kernel32\process.c:153] in kernel32 (0x0061ffd8)
  7 0x7b45221e __wine_start_process+0x9() in kernel32 (0x0061ffec)
0x6fea11f3 _ZGTtNKSt9exception4whatEv+0xdf63 in libstdc++-6: movl	0xfffffff4(%eax),%edx
Modules:
Module	Address			Debug info	Name (49 modules)
PE	  400000-  419000	Dwarf           hello++
PE	64b40000-64b55000	Deferred        libwinpthread-1
PE	6d0c0000-6d198000	Deferred        libgcc_s_sjlj-1
PE	6fe40000-70866000	Dwarf           libstdc++-6
ELF	7b000000-7b0dd000	Deferred        kernelbase<elf>
  \-PE	7b020000-7b0dd000	\               kernelbase
ELF	7b400000-7b670000	Dwarf           kernel32<elf>
  \-PE	7b420000-7b670000	\               kernel32
ELF	7bc00000-7beb1000	Deferred        ntdll<elf>
  \-PE	7bc30000-7beb1000	\               ntdll
ELF	7c000000-7c004000	Deferred        <wine-loader>
ELF	7e075000-7e09b000	Deferred        imm32<elf>
  \-PE	7e080000-7e09b000	\               imm32
ELF	7e0f1000-7e12c000	Deferred        libexpat.so.1
ELF	7e12c000-7e178000	Deferred        libfontconfig.so.1
ELF	7e178000-7e191000	Deferred        libz.so.1
ELF	7e191000-7e1ce000	Deferred        libpng16.so.16
ELF	7e1ce000-7e1e0000	Deferred        libbz2.so.1
ELF	7e1e0000-7e2a4000	Deferred        libfreetype.so.6
ELF	7e2a4000-7e2cc000	Deferred        libtinfo.so.6
ELF	7e2cc000-7e2fb000	Deferred        libncurses.so.6
ELF	7e2fb000-7e386000	Deferred        libpcre2-8.so.0
ELF	7e386000-7e3b5000	Deferred        libselinux.so.1
ELF	7e3b5000-7e3be000	Deferred        libuuid.so.1
ELF	7e3be000-7e41b000	Deferred        libblkid.so.1
ELF	7e41b000-7e438000	Deferred        libgcc_s.so.1
ELF	7e438000-7e49f000	Deferred        libmount.so.1
ELF	7e49f000-7e4a9000	Deferred        librt.so.1
ELF	7e4a9000-7e55a000	Deferred        libnss_myhostname.so.2
ELF	7e55a000-7e572000	Deferred        libresolv.so.2
ELF	7e598000-7e61a000	Deferred        advapi32<elf>
  \-PE	7e5b0000-7e61a000	\               advapi32
ELF	7e61a000-7e76e000	Deferred        gdi32<elf>
  \-PE	7e640000-7e76e000	\               gdi32
ELF	7e76e000-7e9a3000	Deferred        user32<elf>
  \-PE	7e7a0000-7e9a3000	\               user32
ELF	7e9a3000-7ea7a000	Deferred        msvcrt<elf>
  \-PE	7e9d0000-7ea7a000	\               msvcrt
ELF	7eef4000-7ef08000	Deferred        libnss_files.so.2
ELF	7ef08000-7efda000	Deferred        libm.so.6
ELF	7efe2000-7efe9000	Deferred        libnss_dns.so.2
ELF	7efe9000-7f000000	Deferred        version<elf>
  \-PE	7eff0000-7f000000	\               version
ELF	f7bf2000-f7bf7000	Deferred        libdl.so.2
ELF	f7bf7000-f7d9e000	Deferred        libc.so.6
ELF	f7d9e000-f7dbf000	Deferred        libpthread.so.0
ELF	f7de5000-f7f97000	Dwarf           libwine.so.1
ELF	f7f99000-f7fc4000	Deferred        ld-linux.so.2
ELF	f7fc7000-f7fc9000	Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) Z:\home\ehildum\src\misc\hello++.exe
	00000029    0
	00000009    0 <==
0000000e services.exe
	00000023    0
	0000001a    0
	00000015    0
	00000014    0
	00000013    0
	00000010    0
	0000000f    0
00000011 plugplay.exe
	00000017    0
	00000016    0
	00000012    0
00000018 winedevice.exe
	00000020    0
	0000001d    0
	0000001c    0
	0000001b    0
	00000019    0
0000001e explorer.exe
	00000030    0
	0000002e    0
	0000002c    0
	0000001f    0
00000021 winedevice.exe
	00000026    0
	00000025    0
	00000024    0
	00000022    0
System information:
    Wine build: wine-5.0.1
    Platform: i386 (WOW64)
    Version: Windows XP
    Host system: Linux
    Host version: 4.18.0-193.14.2.el8_2.centos.plus.x86_64
backtrace.txt (4,761 bytes)

Issue History

Date Modified Username Field Change
2020-08-09 17:43 ehildum New Issue
2020-08-09 17:43 ehildum File Added: backtrace.txt