I'm working on building a Win 64 bit version of a package I maintain to help upstream. Currently only 32-bit windows installers are produced because the 64-bit ones segfault on start up.
Trying to get a useful debug environment on Windows has been a chore, but I have MinGW w64 installed including gdb, however, I can't see anything useful in the output.
What else do I need to do to get useful output for troubleshooting Win64 specific MinGW issues?
C:\Program Files (x86)\Fldigi-4.1.18>gdb fldigi.exe GNU gdb (GDB) 8.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-w64-mingw32". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from fldigi.exe...done. (gdb) run Starting program: C:\Program Files (x86)\Fldigi-4.1.18\fldigi.exe [New Thread 12596.0xdac] [New Thread 12596.0xbc4] [New Thread 12596.0x4048] [New Thread 12596.0x28dc] warning: Invalid parameter passed to C runtime function. [New Thread 12596.0x26dc] [New Thread 12596.0x1ba8] warning: onecore\com\combase\objact\objact.cxx(836)\combase.dll!00007FFDBC250827: (caller: 00007FFDBC24F6AC) ReturnHr(1) tid(dac) 800401F0 CoInitialize has not been called. warning: onecore\com\combase\objact\objact.cxx(836)\combase.dll!00007FFDBC250827: (caller: 00007FFDBC24F6AC) ReturnHr(2) tid(dac) 800401F0 CoInitialize has not been called. [New Thread 12596.0x2570] [New Thread 12596.0x2980] [New Thread 12596.0x2478] [Thread 12596.0x2980 exited with code 0] [New Thread 12596.0x360c] [Thread 12596.0x360c exited with code 0] [New Thread 12596.0x1aec] [New Thread 12596.0x38a0] [New Thread 12596.0x4c8] [New Thread 12596.0x3bc4] [New Thread 12596.0x3db0] [New Thread 12596.0x3c54] [New Thread 12596.0x3f28] [New Thread 12596.0x1e98] [New Thread 12596.0xa90] [New Thread 12596.0x3838] [New Thread 12596.0x30d8]
Aborting fldigi due to a fatal error. Please report this to: fldigi-devel@sourceforge.net or file a bug report at: https://fedorahosted.org/fldigi/newticket
****** Stack trace:
****** Version information: fldigi 4.1.18 Copyright (C) 2007-2010 Dave Freese, Stelios Bounanos, and others. License GPLv3+: GNU GPL version 3 or later < http://www.gnu.org/licenses/gpl-3.0.html%3E This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
****** Build information: Build information: built : Wed Mar 24 07:38:32 CDT 2021 by build@hobbes.localdomain on x86_64-redhat-linux-gnu for x86_64-w64-mingw32
configure flags: '--host=x86_64-w64-mingw32' '--build=x86_64-redhat-linux-gnu' '--target=x86_64-w64-mingw32' '--prefix=/usr/x86_64-w64-mingw32/sys-root/mingw' '--exec-prefix=/usr/x86_64-w64-mingw32/sys-root/mingw' '--bindir=/usr/x86_64-w64-mingw32/sys-root/mingw/bin' '--sbindir=/usr/x86_64-w64-mingw32/sys-root/mingw/sbin' '--sysconfdir=/usr/x86_64-w64-mingw32/sys-root/mingw/etc' '--datadir=/usr/x86_64-w64-mingw32/sys-root/mingw/share' '--includedir=/usr/x86_64-w64-mingw32/sys-root/mingw/include' '--libdir=/usr/x86_64-w64-mingw32/sys-root/mingw/lib' '--libexecdir=/usr/x86_64-w64-mingw32/sys-root/mingw/libexec' '--localstatedir=/usr/x86_64-w64-mingw32/sys-root/mingw/var' '--sharedstatedir=/usr/x86_64-w64-mingw32/sys-root/mingw/com' '--mandir=/usr/x86_64-w64-mingw32/sys-root/mingw/share/man' '--infodir=/usr/x86_64-w64-mingw32/sys-root/mingw/share/info' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-w64-mingw32' 'target_alias=x86_64-w64-mingw32' 'CXX=x86_64-w64-mingw32-g++' 'CXXFLAGS= -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' 'LDFLAGS=-fstack-protector -lssp' 'CPPFLAGS=' 'CC=x86_64-w64-mingw32-gcc' 'CFLAGS= -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4' 'CPP=/usr/bin/x86_64-w64-mingw32-cpp' 'FLTK_CONFIG=/usr/x86_64-w64-mingw32/sys-root/mingw/bin/fltk-config' 'PKG_CONFIG=/usr/bin/x86_64-w64-mingw32-pkg-config'
compiler : gcc version 10.2.1 20200723 (Fedora MinGW 10.2.1-2.fc33) (GCC)
compiler flags : -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/irrxml -I$(srcdir)/libtiniconv -I$(srcdir)/fileselector -I$(srcdir)/xmlrpcpp -I$(srcdir)/mbedtls -mthreads -mthreads -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -D_THREAD_SAFE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/libusb-1.0 -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/libpng16 -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -pipe -Wall -fexceptions -O2 --param=max-vartrack-size=0 -I$(srcdir)/xmlrpcpp --param=max-vartrack-size=0 -DNDEBUG
linker flags : -mthreads -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib -lportaudio -lwinmm -lm -ldsound -lole32 -lwinmm -lm -luuid -lsetupapi -lole32 -lwinmm -lm -lole32 -luuid -lwinmm -lm -lole32 -luuid -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib -lfltk_images -lpng -lz -ljpeg -lfltk -lpthread -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib -lsndfile -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib -lsamplerate -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib -lhamlib -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib -lpng16 -lz -lpthread -lwsock32 -lws2_32
libraries : FLTK 1.3.5 libsamplerate 0.1.9 libsndfile 1.0.28 PortAudio 19 Hamlib 3.3
Runtime information: system : windows32 DESKTOP-V44I0VT 2.6.2 9200 amd64
libraries : libsamplerate-0.1.9 (c) 2002-2008 Erik de Castro Lopo libsndfile-1.0.28 PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4 1246720 Hamlib 3.3 [Thread 12596.0x26dc exited with code 150] [Thread 12596.0x1ba8 exited with code 150] [Thread 12596.0x38a0 exited with code 150] [Thread 12596.0x4c8 exited with code 150] [Thread 12596.0x2478 exited with code 150] [Thread 12596.0x4048 exited with code 150] [Thread 12596.0x28dc exited with code 150] [Thread 12596.0xbc4 exited with code 150] [Thread 12596.0x3bc4 exited with code 150] [Thread 12596.0x3c54 exited with code 150] [Thread 12596.0x3f28 exited with code 150] [Thread 12596.0x3db0 exited with code 150] [Thread 12596.0x2570 exited with code 150] [Thread 12596.0xa90 exited with code 150] [Thread 12596.0x3838 exited with code 150] [Thread 12596.0x1e98 exited with code 150] [Thread 12596.0x1aec exited with code 150] [Thread 12596.0x30d8 exited with code 150] [Inferior 1 (process 12596) exited with code 0226] (gdb) thread apply all bt full (gdb)
Thanks, Richard