I downgraded my MinGW packages to v4.8.1-4 and all others that needed to downgrade as well...
one warning on compiling parsegen.exe
no warnings or errors on the rest of ZSNES v1.51 src...
still no go its still crashing on load
Code: Select all
void zmain(int zargc, char *zargv[])
{
if (init_paths(*zargv)) // <-- SIGSEGV Crashes here
{
#ifdef __LIBAO__
ao_initialize();
atexit(ao_shutdown);
#endif
handle_params(zargc, zargv);
atexit(ZCleanup);
srand(time(0));
zstart();
}
}
Code: Select all
GNU gdb (GDB) 7.6.1
Reading symbols from
F:\Dev-src\2Emulators\zsnes_Testing__v1.51_(FuSoYa-8MB_R2)\zsnesw_v1.51_Debug_(+nocona-opt_mmx&sse2)+(2017-03-15).exe...
expanding to full symbols...
done.
(gdb) r
Starting program: F:\Dev-src\2Emulators\zsnes_Testing__v1.51_(FuSoYa-8MB_R2)/zsnesw_v1.51_Debug_(+nocona-opt_mmx&sse2)+(2017-03-15).exe
[New Thread 3580.0x1be4]
Program received signal SIGSEGV, Segmentation fault.
0x006064d8 in zmain (zargc=0, zargv=0x0) at zloader.c:942
942 if (init_paths(*zargv))
(gdb) bt full
#0 0x006064d8 in zmain (zargc=0, zargv=0x0) at zloader.c:942
No locals.
#1 0x00606553 in WinMain@16 (hInstance=0x400000, hPrevInstance=hPrevInstance@entry=0x0, szCmdLine=szCmdLine@entry=0x1673480 "",
iCmdShow=iCmdShow@entry=10) at zloader.c:962
No locals.
#2 0x0075bd8b in main (argc=1, argv=0x3b11a0, __p__environ=0x3b1740) at ../mingwrt-4.0.3-1-mingw32-src/src/libcrt/crt/main.c:91
szCmd = 0x1673480 ""
startinfo = {cb = 68, lpReserved = 0x1679140 "", lpDesktop = 0x1679160 "Winsta0\\Default",
lpTitle = 0x1679f70 "F:\\Dev-src\\2Emulators\\zsnes_Testing__v1.51_(FuSoYa-8MB_R2)\\zsnesw_v1.51_Debug_(+nocona-opt_mmx&sse2)+(2017-03-15).exe", dwX = 0, dwY = 0, dwXSize = 0, dwYSize = 0, dwXCountChars = 0, dwYCountChars = 0, dwFillAttribute = 0, dwFlags = 0,
wShowWindow = 0, cbReserved2 = 0, lpReserved2 = 0x0, hStdInput = 0xffffffff, hStdOutput = 0xffffffff, hStdError = 0xffffffff}
nRet = <optimized out>
I use the following compiler settings:
make -f makefile.ms PLATFORM=win32 RELEASEGRADE=no DEBUG=yes CPU=nocona
in the makefile I customized it a bit, back 2015..
I set the opts to -mmmx and -msse2 which seems to work well...
I have not changed anything in the zsnes src.
It worked before so I know that's not what is wrong...
has to be MinGW but I went back to a version that was sure to work....
old working copy: 11.2 MB (11,832,117 bytes)
crashing copy : 11.6 MB (12,267,477 bytes)
If anyone wants to try them out let me know and I will upload both copies to my Dropbox account...