Skip to content

Instantly share code, notes, and snippets.

(gdb) run
Starting program: /home/marc/OpenMW/build/openmw --start Sud --debug
[Thread debugging using libthread_db enabled]
Data directory: /home/marc/OpenMW/build/data
[New Thread 0x7f148d123750 (LWP 22884)]
[New Thread 0x7f1483f6f950 (LWP 22887)]
[New Thread 0x7f148376e950 (LWP 22888)]
[New Thread 0x7f1482f6d950 (LWP 22889)]
[New Thread 0x7f148276c950 (LWP 22890)]
Adding /home/marc/OpenMW/build/data/Morrowind.bsa
@zinnschlag
zinnschlag / gist:2214206
Created March 27, 2012 09:07
OpenMW build failure
CMakeFiles/openmw.dir/__/__/libs/openengine/gui/manager.cpp.o: In function `MyGUI::OgrePlatform::OgrePlatform()':
manager.cpp:(.text._ZN5MyGUI12OgrePlatformC1Ev[MyGUI::OgrePlatform::OgrePlatform()]+0x4f): undefined reference to `MyGUI::OgreRenderManager::OgreRenderManager()'
manager.cpp:(.text._ZN5MyGUI12OgrePlatformC1Ev[MyGUI::OgrePlatform::OgrePlatform()]+0x90): undefined reference to `MyGUI::OgreDataManager::OgreDataManager()'
CMakeFiles/openmw.dir/__/__/libs/openengine/gui/manager.cpp.o: In function `MyGUI::OgrePlatform::initialise(Ogre::RenderWindow*, Ogre::SceneManager*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
manager.cpp:(.text._ZN5MyGUI12OgrePlatform10initialiseEPN4Ogre12RenderWindowEPNS1_12SceneManagerERKSsS7_[MyGUI::OgrePlatform::initialise(Ogre::RenderWindow*, Ogre::SceneManager*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char
Loading config file: /home/marc/.config/openmw/openmw.cfg... done.
Loading config file: ./openmw.cfg... done.
Using default (English) font encoding.
Adding ./data/Bloodmoon.bsa
Adding ./data/Morrowind.bsa
Adding ./data/Tribunal.bsa
Data dir ./data
Finding: textures/Tx_Stars_Mage.tga found.
Finding: textures/Tx_Stars_Warrior.tga found.
Finding: textures/Tx_Stars_Thief.tga found.
10:19:18: Creating resource group General
10:19:18: Creating resource group Internal
10:19:18: Creating resource group Autodetect
10:19:18: SceneManagerFactory for type 'DefaultSceneManager' registered.
10:19:18: Registering ResourceManager for type Material
10:19:18: Registering ResourceManager for type Mesh
10:19:18: Registering ResourceManager for type Skeleton
10:19:18: MovableObjectFactory for type 'ParticleSystem' registered.
10:19:18: OverlayElementFactory for type Panel registered.
10:19:18: OverlayElementFactory for type BorderPanel registered.
Quitting peacefully.
*** glibc detected *** ./openmw: double free or corruption (fasttop): 0x0000000001debab0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7f93a7bad5b6]
/lib/libc.so.6(cfree+0x73)[0x7f93a7bb3e83]
/usr/local/lib/libOgreMain.so.1.8.0(_ZNSt8_Rb_treeISsSt4pairIKSsSsESt10_Select1stIS2_ESt4lessISsEN4Ogre12STLAllocatorIS2_NS7_22CategorisedAllocPolicyILNS7_14MemoryCategoryE0EEEEEE8_M_eraseEPSt13_Rb_tree_nodeIS2_E+0xc1)[0x7f93aa978741]
/usr/local/lib/libOgreMain.so.1.8.0(_ZNSt8_Rb_treeISsSt4pairIKSsSsESt10_Select1stIS2_ESt4lessISsEN4Ogre12STLAllocatorIS2_NS7_22CategorisedAllocPolicyILNS7_14MemoryCategoryE0EEEEEE8_M_eraseEPSt13_Rb_tree_nodeIS2_E+0x44)[0x7f93aa9786c4]
/usr/local/lib/libOgreMain.so.1.8.0(_ZN4Ogre10ConfigFileD1Ev+0x45)[0x7f93aa976205]
/lib/libc.so.6(exit+0xe2)[0x7f93a7b6f262]
/lib/libc.so.6(__libc_start_main+0x104)[0x7f93a7b54c54]
[ 41%] Building CXX object apps/openmw/CMakeFiles/openmw.dir/mwgui/bookwindow.cpp.o
In file included from /home/marc/OpenMW/openmw/apps/openmw/mwgui/scrollwindow.cpp:3:
/home/marc/OpenMW/openmw/apps/openmw/mwgui/formatting.hpp:6:41: error: boost/property_tree/ptree.hpp: No such file or directory
In file included from /home/marc/OpenMW/openmw/apps/openmw/mwgui/bookwindow.cpp:3:
/home/marc/OpenMW/openmw/apps/openmw/mwgui/formatting.hpp:6:41: error: boost/property_tree/ptree.hpp: No such file or directory
[ 42%] Building CXX object apps/openmw/CMakeFiles/openmw.dir/mwgui/list.cpp.o
[ 42%] Building CXX object apps/openmw/CMakeFiles/openmw.dir/mwgui/formatting.cpp.o
In file included from /home/marc/OpenMW/openmw/apps/openmw/mwgui/formatting.cpp:1:
/home/marc/OpenMW/openmw/apps/openmw/mwgui/formatting.hpp:6:41: error: boost/property_tree/ptree.hpp: No such file or directory
/home/marc/OpenMW/openmw/apps/openmw/mwgui/formatting.cpp:5:46: error: boost/property_tree/xml_parser.hpp: No such file or directory
@zinnschlag
zinnschlag / gist:3151994
Created July 20, 2012 17:21
OpenMW backtrace
#0 0x0000000000000000 in ?? ()
#1 0x00007fffef246da7 in Ogre::GLSLLinkProgram::compileAndLink (this=<value optimised out>)
at /home/marc/Tools/ogre_src_v1-8-0RC1/RenderSystems/GL/src/GLSL/src/OgreGLSLLinkProgram.cpp:583
#2 0x00007fffef247608 in Ogre::GLSLLinkProgram::activate (this=0x4de7f40)
at /home/marc/Tools/ogre_src_v1-8-0RC1/RenderSystems/GL/src/GLSL/src/OgreGLSLLinkProgram.cpp:149
#3 0x00007fffef248011 in Ogre::GLSLLinkProgramManager::getActiveLinkProgram (this=0x1144140)
at /home/marc/Tools/ogre_src_v1-8-0RC1/RenderSystems/GL/src/GLSL/src/OgreGLSLLinkProgramManager.cpp:142
#4 0x00007fffef2453d3 in Ogre::GLSLGpuProgram::bindProgramParameters (this=0x7ffff7f5dd28, params=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
)
at /home/marc/Tools/ogre_src_v1-8-0RC1/RenderSystems/GL/src/GLSL/src/OgreGLSLGpuProgram.cpp:136
@zinnschlag
zinnschlag / gist:3151997
Created July 20, 2012 17:22
OpenMW build log
[ 9%] Building C object extern/shiny/CMakeFiles/shiny.dir/mcpp/support.c.o
Linking CXX static library libshiny.OgrePlatform.a
cc1: warning: command line option "-Wno-reorder" is valid for C++/ObjC++ but not for C
[ 9%] Built target shiny.OgrePlatform
[ 9%] Building CXX object components/CMakeFiles/components.dir/nifbullet/bullet_nif_loader.cpp.o
/home/marc/OpenMW/openmw/extern/shiny/mcpp/support.c: In function ‘scan_ucn’:
/home/marc/OpenMW/openmw/extern/shiny/mcpp/support.c:1172: warning: comparison of unsigned expression >= 0 is always true
/home/marc/OpenMW/openmw/extern/shiny/mcpp/support.c: In function ‘get_ch’:
/home/marc/OpenMW/openmw/extern/shiny/mcpp/support.c:1590: warning: passing argument 1 of ‘free’ discards qualifiers from pointer target type
/usr/include/stdlib.h:488: note: expected ‘void *’ but argument is of type ‘const char *’
16:15:54: Creating resource group General
16:15:54: Creating resource group Internal
16:15:54: Creating resource group Autodetect
16:15:54: SceneManagerFactory for type 'DefaultSceneManager' registered.
16:15:54: Registering ResourceManager for type Material
16:15:54: Registering ResourceManager for type Mesh
16:15:54: Registering ResourceManager for type Skeleton
16:15:54: MovableObjectFactory for type 'ParticleSystem' registered.
16:15:54: OverlayElementFactory for type Panel registered.
16:15:54: OverlayElementFactory for type BorderPanel registered.
@zinnschlag
zinnschlag / gist:3979025
Created October 30, 2012 08:38
OMW launcher segfault
Program received signal SIGSEGV, Segmentation fault.
0x000000000046076a in QString::QString(QString const&) ()
(gdb) bt
#0 0x000000000046076a in QString::QString(QString const&) ()
#1 0x0000000000479e8b in EsmFile::fileName() ()
#2 0x0000000000477228 in DataFilesModel::flags(QModelIndex const&) const ()
#3 0x00007ffff69bdf9b in QSortFilterProxyModel::flags(QModelIndex const&) const ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#4 0x00007ffff6967c8b in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#5 0x00007ffff6972a51 in QTableView::paintEvent(QPaintEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4