Crystal Space
Welcome, Guest. Please login or register.
July 20, 2017, 05:37:40 pm

Login with username, password and session length
Search:     Advanced search
9007 Posts in 2045 Topics by 64036 Members
Latest Member: Annettkornel828
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Cannot use ANY SCF plugins (only happens when compiled with GCC)
« previous next »
Pages: [1] Print
Author Topic: Cannot use ANY SCF plugins (only happens when compiled with GCC)  (Read 256 times)
Rvx86
Newbie
*
Posts: 1


View Profile Email
« on: April 01, 2017, 05:13:02 am »

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.

EDIT: Compiling with --enable-debug --enable-ref-tracker worked around that - once any kind of optimisation is enabled, the build falls apart.

Code:
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
« Last Edit: April 01, 2017, 08:10:12 am by Rvx86 » Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.593 seconds with 16 queries.