Author Topic: A problem half a year in the making...  (Read 2851 times)

res

  • Crystal Space Developer
  • Traveller
  • *
  • Posts: 30
    • View Profile
    • Crystal Space
Re: A problem half a year in the making...
« Reply #15 on: July 05, 2006, 02:04:33 am »
wrt ptmalloc: perhaps try the -fvisibility=hidden change recently made to cel.
A Crystal Space developer

Psibyre

  • Traveller
  • *
  • Posts: 23
    • View Profile
Re: A problem half a year in the making...
« Reply #16 on: July 05, 2006, 07:09:41 pm »
Ok, I tried with the new sources...

Still get a segfault in the same exact spot...

But now it seems all of the problems in backtrace lie in... cs/include/csutil/reftrackeraccess.h

Here is a sample

Quote
#0  0x4fb06411 in free () from /lib/libc.so.6
#1  0x412d76c1 in operator delete () from /usr/lib/libstdc++.so.6
#2  0x02366555 in __gnu_cxx::new_allocator<int>::deallocate ()
    at ./include/csutil/reftrackeraccess.h:45
#3  0x0236658f in std::_Vector_base<int, std::allocator<int> >::_M_deallocate
    () at ./include/csutil/reftrackeraccess.h:45
#4  0x02366c2e in std::_Vector_base<int, std::allocator<int> >::~_Vector_base$base () at ./include/csutil/reftrackeraccess.h:45
#5  0x02366ca0 in std::vector<int, std::allocator<int> >::~vector ()
    at ./include/csutil/reftrackeraccess.h:45

Now, what is wrong with this file that is making me IMPLODE?

Psibyre

  • Traveller
  • *
  • Posts: 23
    • View Profile
Re: A problem half a year in the making...
« Reply #17 on: July 05, 2006, 09:05:47 pm »
Here is the full bt as requested:
Quote
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208899888 (LWP 31331)]
0x4fb063d9 in free () from /lib/libc.so.6
(gdb) bt full
#0  0x4fb063d9 in free () from /lib/libc.so.6
No symbol table info available.
#1  0x412d76c1 in operator delete () from /usr/lib/libstdc++.so.6
No symbol table info available.
#2  0x02bda555 in __gnu_cxx::new_allocator<int>::deallocate ()
    at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#3  0x02bda58f in std::_Vector_base<int, std::allocator<int> >::_M_deallocate
    () at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#4  0x02bdac2e in std::_Vector_base<int, std::allocator<int> >::~_Vector_base$base () at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#5  0x02bdaca0 in std::vector<int, std::allocator<int> >::~vector ()
    at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#6  0x02c17240 in CalLoader::loadCoreAnimation ()
    at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#7  0x02c1746c in CalLoader::loadCoreAnimation ()
    at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#8  0x0387eb31 in CS::Plugin::SprCal3d::csSpriteCal3DMeshObjectFactory::LoadCore---Type <return> to continue, or q <return> to quit---
Animation () at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#9  0x0081dead in CS::Plugins::SprCal3dLoader::csSpriteCal3DFactoryLoader::Parse () at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#10 0x00904ffb in csLoader::LoadMeshObjectFactory ()
    at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#11 0x0090afce in csLoader::LoadLibrary ()
    at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#12 0x0090cfff in csLoader::Load () at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#13 0x008feaba in csLoader::Load () at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#14 0x008fef6a in csLoader::Load () at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295
#15 0x0805f9b5 in ClientCacheManager::LoadNewFactory (this=0x978e360,
    filename=0x9b892c8 "/planeshift/models/stonebm/stonebm.cal3d")
    at src/client/clientcachemanager.cpp:91
        result = (iBase *) 0x0
        meshW = (class iMeshFactoryWrapper *) 0x97cfcc8
        file = {<csStringFast<36>> = {<csStringBase> = {
---Type <return> to continue, or q <return> to quit---
      _vptr.csStringBase = 0x8344de8,
      Data = 0xa094df8 "/planeshift/models/stonebm/stonebm.cal3d", Size = 40,
      MaxSize = 64, GrowBy = 64},
    minibuff = "\200_�\006XZ��n��\006�\210F\t\003\000`\003TZ����C\t�B_\t��C\t", miniused = 0}, <No data fields>}
        doc = {obj = 0xa0956bc}
        root = {obj = 0xa0959b8}
        meshNode = {obj = 0xa6a50d0}
        libNode = {obj = 0xa0959f0}
        indexEntry = (FactoryIndexEntry *) 0xa53b6c8
        name = 0xa7611f6 "stonebm"
        __FUNCTION__ = "LoadNewFactory"
#16 0x08095a70 in psEngine::PreloadModels (this=0x96dd2c0)
    at src/client/psengine.cpp:1352
        __FUNCTION__ = "PreloadModels"
#17 0x08087df8 in psEngine::HandleEvent (this=0x96dd2c0, ev=@0x97b2aa4)
    at src/client/psengine.cpp:693
        drawFrame = true
        count = 10
#18 0x08095cf8 in psEngine::EventHandler::HandleEvent (this=0x9774610,
    ev=@0x97b2aa4) at src/client/psengine.h:213
No locals.
#19 0x0817e956 in csEventTree::Dispatch (this=0x9466870, e=@0x97b2aa4)
---Type <return> to continue, or q <return> to quit---
    at libs/csutil/cssubscription.cpp:572
        h = (iEventHandler *) 0x9774624
        it = {handler_reg = {obj = 0x9423fa4}, record = 0x9466968,
  baseevent = 3, mode = csEventTree::SubscriberIterator::SI_LIST, qit = {
    ptr = 0x945d888, visited = true, reversed = false}}
#20 0x0817ea24 in csEventTree::Notify (this=0x9466870)
    at libs/csutil/cssubscription.cpp:542
        e = {obj = 0x97b2aa4}
#21 0x08133ee4 in csEventQueue::Notify (this=0x93fb678, name=@0x9423a3c)
    at libs/csutil/cseventq.cpp:274
        epoint = (class csEventTree *) 0x9466870
#22 0x0813c33a in csEventQueue::iTypedFrameEventDispatcher::HandleEvent (
    this=0x9423a34) at ./include/csutil/cseventq.h:259
No locals.
#23 0x0817e956 in csEventTree::Dispatch (this=0x9400f10, e=@0x940dcb4)
    at libs/csutil/cssubscription.cpp:572
        h = (iEventHandler *) 0x9423a34
        it = {handler_reg = {obj = 0x9423fa4}, record = 0x9401050,
  baseevent = 1, mode = csEventTree::SubscriberIterator::SI_LIST, qit = {
    ptr = 0x97b2818, visited = true, reversed = false}}
#24 0x0817ea24 in csEventTree::Notify (this=0x9400f10)
    at libs/csutil/cssubscription.cpp:542
        e = {obj = 0x940dcb4}
---Type <return> to continue, or q <return> to quit---
#25 0x08133ee4 in csEventQueue::Notify (this=0x93fb678, name=@0x93fb710)
    at libs/csutil/cseventq.cpp:274
        epoint = (class csEventTree *) 0x9400f10
#26 0x08133fc1 in csEventQueue::Process (this=0x93fb678)
    at libs/csutil/cseventq.cpp:290
        ev = {obj = 0x0}
#27 0x080dce4f in csDefaultRunLoop (r=0x93fb844)
    at libs/csutil/generic/runloop.cpp:91
        q = {obj = 0x93fb68c}
        vc = {obj = 0x942345c}
        eh = {obj = 0x9769da0}
#28 0x0808de7b in main (argc=1, argv=0xbfe65e44)
    at src/client/psengine.cpp:1892
        CSSetup = (psCSSetup *) 0x93f6a40
        object_reg = (class iObjectRegistry *) 0x93fb844
        __FUNCTION__ = "main"
#29 0x4fab4724 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#30 0x0804b001 in _start () at ./include/csutil/reftrackeraccess.h:45
        scfInterfaceTraits<iEventTimer>::GetMyID()::ID = 4294967295