libunwind fail

libunwind fail

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
lamer
Posts: 153
Joined: 08 Mar 2014, 23:13

libunwind fail

Post by lamer »

Before libunwind i had nice stacktraces within my C++ AI (but not 100% accurate +- 2-3 lines).
But with 98.0.1-xxx i got only "??:0 ??" instead of stacktrace.

Code: Select all

[f=0000030] [CrashHandler] Error: Segmentation fault (SIGSEGV) in spring 98.0.1-80-g7336fbb develop
[f=0000030] [CrashHandler] Error: Halted Stacktrace for Spring 98.0.1-80-g7336fbb develop using libunwind:
[f=0000030] [CrashHandler] Error: This stack trace indicates a problem with a Skirmish AI library.
[f=0000030] [CrashHandler] Error: [00]   .../games/spring/spring/rts/System/Platform/Linux/CrashHandler.cpp:820  CrashHandler::HaltedStacktrace(std::string const&, siginfo_t*, ucontext*)                                                                                                          
[f=0000030] [CrashHandler] Error:   <01> .../games/spring/spring/rts/System/Platform/Linux/CrashHandler.cpp:849  CleanupStacktrace
[f=0000030] [CrashHandler] Error: [01]   .../games/spring/spring/rts/System/Platform/Linux/CrashHandler.cpp:922  CrashHandler::HandleSignal(int, siginfo_t*, void*)                                                                                                                                 
[f=0000030] [CrashHandler] Error: [02]                                                                     ??:0  ??
[f=0000030] [CrashHandler] Error: [03]                                                                     ??:0  ??
[f=0000030] [CrashHandler] Error: [04]                                                                     ??:0  ??
[f=0000030] [CrashHandler] Error: [05]                                                                     ??:0  ??
[f=0000030] [CrashHandler] Error: [06]                                                                     ??:0  ??
[f=0000030] [CrashHandler] Error: [07]                                                                     ??:0  ??
[f=0000030] [CrashHandler] Error: [08]          .../games/spring/spring/rts/ExternalAI/SkirmishAILibrary.cpp:95  CSkirmishAILibrary::HandleEvent(int, int, void const*) const                                                                                                                       
[f=0000030] [CrashHandler] Error: [09]                 .../games/spring/spring/rts/ExternalAI/SkirmishAI.cpp:57  CSkirmishAI::HandleEvent(int, void const*) const                                                                                                                                   
[f=0000030] [CrashHandler] Error: [10]         .../games/spring/spring/rts/ExternalAI/SkirmishAIWrapper.cpp:388  CSkirmishAIWrapper::Update(int)
[f=0000030] [CrashHandler] Error:   <11>                             /usr/include/c++/4.9.1/bits/stl_tree.h:203  std::_Rb_tree_iterator<std::pair<unsigned char const, CSkirmishAIWrapper*> >::operator++()                                                                                         
[f=0000030] [CrashHandler] Error: [11]          .../games/spring/spring/rts/ExternalAI/EngineOutHandler.cpp:157  CEngineOutHandler::Update()
[f=0000030] [CrashHandler] Error: [12]                           .../games/spring/spring/rts/Game/Game.cpp:1539  CGame::SimFrame()
[f=0000030] [CrashHandler] Error: [13]                      .../games/spring/spring/rts/Net/NetCommands.cpp:512  CGame::ClientReadNet()
[f=0000030] [CrashHandler] Error: [14]                           .../games/spring/spring/rts/Game/Game.cpp:1002  CGame::Update()
[f=0000030] [CrashHandler] Error: [15]                     .../games/spring/spring/rts/System/SpringApp.cpp:850  SpringApp::Update()
[f=0000030] [CrashHandler] Error: [16]                     .../games/spring/spring/rts/System/SpringApp.cpp:880  SpringApp::Run()
[f=0000030] [CrashHandler] Error: [17]                           .../games/spring/spring/rts/System/Main.cpp:48  Run(int, char**)
[f=0000030] [CrashHandler] Error: [18]                          .../games/spring/spring/rts/System/Main.cpp:108  main
[f=0000030] [CrashHandler] Error: [19]                                                                     ??:0  ??
[f=0000030] [CrashHandler] Error: [20]                                                                     ??:?  _start
[f=0000030] Error: [ErrorMessageBox][1] msg="Spring has crashed:
Segmentation fault (SIGSEGV).                                                                                                                     
How to use libunwind with AI, or how to revert CrashHandler?
lamer
Posts: 153
Joined: 08 Mar 2014, 23:13

Re: libunwind fail

Post by lamer »

These are paths where CrashHandler tries to find debug symbols.

Code: Select all

<DEBUG>1 /home/user/.spring/engine/98.0.1-test/AI/Skirmish/CircuitAI/0.1//libSkirmishAI.soso.dbg
<DEBUG>2 /home/user/.spring/engine/98.0.1-test/AI/Skirmish/CircuitAI/0.1//libSkirmishAI.so.dbg
<DEBUG>3 /usr/lib/debug/home/user/.spring/engine/98.0.1-test/AI/Skirmish/CircuitAI/0.1//libSkirmishAI.soso
<DEBUG>2 /home/user/.spring/engine/98.0.1-test//spring.dbg
<DEBUG>3 /usr/lib/debug/home/user/.spring/engine/98.0.1-test//spring
<DEBUG>1 /usr/lib//libc.so.66.dbg
<DEBUG>2 /usr/lib//libc.so.6.dbg
<DEBUG>3 /usr/lib/debug/usr/lib//libc.so.66
Apparantly something wrong is going on there

http://springrts.com/mantis/view.php?id=4594
Post Reply

Return to “AI”