Currently using: CS 2.1.0-trunk cs-winlibs 2.1.003 Windows NT (any, tested on Windows 2000 and Windows 10) MSYS2/Mingw-w64 GCC 6.3.0
This won't allow me to load any plugins, but it does not occur with a Microsoft C/C++ build.
Compiling with --enable-debug --enable-ref-tracker worked around that - once any kind of optimisation is enabled, the build falls apart.
Program received signal SIGSEGV, Segmentation fault. scfImplementationPooled<scfImplementation1<csTinyXmlNode, iDocumentNode>, CS::Memory::AllocatorMalloc, true>::operator delete (instance=0x1f3020) at ./include/csutil/pooledscfclass.h:149 149 scfImplementationPooled::operator delete (object, p); (gdb) bt #0 scfImplementationPooled<scfImplementation1<csTinyXmlNode, iDocumentNode>, CS::Memory::AllocatorMalloc, true>::operator delete (instance=0x1f3020) at ./include/csutil/pooledscfclass.h:149 #1 csTinyXmlNode::~csTinyXmlNode (this=0x1f3020, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at D:/dev/cs/libs/csutil/xmltiny.cpp:174 #2 scfImplementationPooled<scfImplementation1<csTinyXmlNode, iDocumentNode>, CS::Memory::AllocatorMalloc, true>::DecRef (this=0x1f3020) at ./include/csutil/pooledscfclass.h:159 #3 csTinyXmlNode::DecRef (this=0x1f3020) at D:/dev/cs/libs/csutil/xmltinyp.h:195 #4 0x6f86758f in csRef<iDocumentNode>::~csRef (this=0x60f3ec, __in_chrg=<optimized out>) at ./include/csutil/ref.h:242 #5 csTinyXmlDocument::Parse (this=0x1f2ec0, buf=0x69e8a0 "<?xml version=\"1.0\"?><!-- dynavis.csplugin --><plugin> <scf> <classes> <class> <name>crystalspace.culling.dynavis</name> <implementation>csDynaVis</implementation> <descr"..., collapse=true) at D:/dev/cs/libs/csutil/xmltiny.cpp:634 #6 0x6f764de5 in InternalGetPluginMetadata (metadata=..., fullPath=0x60f420 "D:\\dev\\CS\\dynavis.dll") at D:/dev/cs/libs/csutil/win32/loadlib.cpp:219 #7 csGetPluginMetadata (fullPath=<optimized out>, fullPath@entry=0x677b48 "D:\\dev\\CS\\dynavis.dll", metadata=...) at D:/dev/cs/libs/csutil/win32/loadlib.cpp:273 #8 0x6f759da9 in csSCF::ScanPluginsInt (context=0x0, pluginPaths=0x671980, this=<optimized out>) at D:/dev/cs/libs/csutil/scf.cpp:669 #9 scfInitialize (pluginPaths=0x671980, verbose=0) at D:/dev/cs/libs/csutil/scf.cpp:717 #10 0x6f75a2da in scfInitialize (argc=argc@entry=1, argv=argv@entry=0x671878, scanDefaultPluginPaths=true) at D:/dev/cs/libs/csutil/scf.cpp:729 #11 0x6f7c612f in csInitializer::InitializeSCF ( scanDefaultPluginPaths=<optimized out>, argv=0x671878, argc=1) at D:/dev/cs/libs/cstool/initapp.cpp:143 #12 csInitializer::CreateEnvironment (argc=argc@entry=1, argv=argv@entry=0x671878, scanDefaultPluginPaths=scanDefaultPluginPaths@entry=true) at D:/dev/cs/libs/cstool/initapp.cpp:112 #13 0x00404ce6 in main (argc=1, argv=0x671878) at D:/dev/cs/apps/tools/vsh/vsh.cpp:617
Log in to post a comment.
Currently using:
CS 2.1.0-trunk
cs-winlibs 2.1.003
Windows NT (any, tested on Windows 2000 and Windows 10)
MSYS2/Mingw-w64 GCC 6.3.0
This won't allow me to load any plugins, but it does not occur with a Microsoft C/C++ build.
Compiling with --enable-debug --enable-ref-tracker worked around that - once any kind of optimisation is enabled, the build falls apart.
Last edit: Ricardo Villegas 2017-04-01