Closed dougmencken closed 7 months ago
what in this universe can ever crash on
Jorge has the similar crash
at the very beginning
--- a/source/ospaths.cpp
+++ b/source/ospaths.cpp
@@ -115,7 +115,7 @@ void setPathToGame ( const char * pathToGame )
fprintf( stdout, "FullPathToGame is \"%s\"\n", FullPathToGame.c_str () );
}
-std::string HomePath ;
+std::string HomePath( "" );
std::string homePath ()
{
@@ -144,7 +144,7 @@ std::string homePath ()
return HomePath;
}
-std::string SharePath ;
+std::string SharePath( "" );
std::string sharePath ()
{
maybe? sorry for mentioning you Jorge @helmantika but I just can't continue my story without fixing your issue ;)
it's related to GCC but not cygwin in fact
$ gcc --version
gcc (GCC) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
doesn't invoke the default constructor (some optimization mmh?) while the version I'm using currently
gcc (GCC) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
does it
currently it's not some initialization of global and static variables where it crashes, but
Thread 1 "headoverheels" received signal SIGSEGV, Segmentation fault.
0x00000004812897f2 in install_timer.part () from /usr/bin/cygalleg-4.4.dll
(gdb) bt
#0 0x00000004812897f2 in install_timer.part () from /usr/bin/cygalleg-4.4.dll
#1 0x0000000100405d2e in allegro::init () at WrappersAllegro.cpp:1179
#2 0x0000000100401129 in initAllegro () at main.cpp:61
#3 0x00000001005011e7 in main (argc=<optimized out>, argv=<optimized out>) at main.cpp:206
I surely have libx11-devel
there, and that's what allegro4 prints during configure
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/libX11.dll.a
-- Looking for XOpenDisplay in /usr/lib/libX11.dll.a - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for XOpenIM in X11
-- Looking for XOpenIM in X11 - found
-- Looking for XDGAQueryExtension in Xxf86dga
-- Looking for XDGAQueryExtension in Xxf86dga - not found
MSys2 works well, I'm closing this