Segmentation fault on the Ubuntu 9.04, nvidia card.

Questions, problems and discussion about compiling FreeOrion.

Moderators: Oberlus, Oberlus

Message
Author
User avatar
8472
Space Floater
Posts: 28
Joined: Thu Jul 16, 2009 5:46 pm
Location: Slovakia, Bratislava

Segmentation fault on the Ubuntu 9.04, nvidia card.

#1 Post by 8472 » Sat Jul 18, 2009 8:48 am

hi, yesterday thx to OndrejR i finished the compilation of freeorion from the SVN.
but becuase of the "Segmentation fault" viewtopic.php?p=38013#p38013 i can't run the game.

so according to OndrejR's advice viewtopic.php?p=38018#p38018 i'm opening another thread.

i've already recompiled the game with the debugging symbols as described here: http://www.freeorion.org/index.php/Comp ... #Debugging

and here are the results:
gdb ./freeorion
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run
(gdb) run
Starting program: /mnt/data2_1TB/svn_sources/freeorion/freeorion/FreeOrion/freeorion
[Thread debugging using libthread_db enabled]
[New Thread 0xb4482730 (LWP 21723)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb4482730 (LWP 21723)]
0xb6cf29fa in std::operator+<char, std::char_traits<char>, std::allocator<char> > (__lhs=0xb705f510 "Registering ResourceManager for type ", __rhs=@0xb2ca0be4) at /usr/include/c++/4.2/bits/basic_string.tcc:682
682 __str.reserve(__len + __rhs.size());
and:
(gdb) bt full
#0 0xb6cf29fa in std::operator+<char, std::char_traits<char>, std::allocator<char> > (__lhs=0xb705f510 "Registering ResourceManager for type ", __rhs=@0xb2ca0be4) at /usr/include/c++/4.2/bits/basic_string.tcc:682
__str = (std::basic_string<char,std::char_traits<char>,std::allocator<char> > &) @0xbfc05ae4: {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xb66866d4 ""}}
#1 0xb6ee4343 in Ogre::ResourceGroupManager::_registerResourceManager (this=0xb2c9e708, resourceType=@0xb2ca0be4, rm=0xb2ca0b88) at OgreResourceGroupManager.cpp:835
No locals.
#2 0xb2bcbaf3 in GLGpuProgramManager (this=0xb2ca0b88) at OgreGLGpuProgramManager.cpp:41
No locals.
#3 0xb2bd5f77 in Ogre::GLRenderSystem::initialiseFromRenderSystemCapabilities (this=0xb2c9fed8, caps=0xb2ca0b00, primary=0xb2ca09f8) at OgreGLRenderSystem.cpp:670
rttMode = <value optimized out>
defaultLog = <value optimized out>
#4 0xb2bd9cd8 in Ogre::GLRenderSystem::_createRenderWindow (this=0xb2c9fed8, name=@0xbfc064f8, width=1024, height=768, fullScreen=<value optimized out>, miscParams=0xbfc06164) at OgreGLRenderSystem.cpp:992
tokens = {<std::_Vector_base<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >> = {
_M_impl = {<std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> = {<__gnu_cxx::new_allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> = {<No data fields>}, <No data fields>}, _M_start = 0xa16ee88, _M_finish = 0xa16ee94, _M_end_of_storage = 0xa16eeb0}}, <No data fields>}
ss = {<std::basic_iostream<char, std::char_traits<char> >> = {<std::basic_istream<char, std::char_traits<char> >> = {<std::basic_ios<char, std::char_traits<char> >> = {<std::ios_base> = {
_vptr.ios_base = 0xb6682994, static boolalpha = std::_S_boolalpha, static dec = std::_S_dec, static fixed = std::_S_fixed, static hex = std::_S_hex, static internal = std::_S_internal, static left = std::_S_left,
static oct = std::_S_oct, static right = std::_S_right, static scientific = std::_S_scientific, static showbase = std::_S_showbase, static showpoint = std::_S_showpoint, static showpos = std::_S_showpos,
static skipws = std::_S_skipws, static unitbuf = std::_S_unitbuf, static uppercase = std::_S_uppercase, static adjustfield = std::_S_adjustfield, static basefield = std::_S_basefield,
static floatfield = std::_S_floatfield, static badbit = std::_S_badbit, static eofbit = std::_S_eofbit, static failbit = std::_S_failbit, static goodbit = std::_S_goodbit, static app = std::_S_app,
static ate = std::_S_ate, static binary = std::_S_bin, static in = std::_S_in, static out = std::_S_out, static trunc = std::_S_trunc, static beg = std::_S_beg, static cur = std::_S_cur, static end = std::_S_end,
_M_precision = 6, _M_width = 0, _M_flags = 4098, _M_exception = std::_S_goodbit, _M_streambuf_state = std::_S_goodbit, _M_callbacks = 0x0, _M_word_zero = {_M_pword = 0x0, _M_iword = 0}, _M_local_word = {{
_M_pword = 0x0, _M_iword = 0}, {_M_pword = 0x0, _M_iword = 0}, {_M_pword = 0x0, _M_iword = 0}, {_M_pword = 0x0, _M_iword = 0}, {_M_pword = 0x0, _M_iword = 0}, {_M_pword = 0x0, _M_iword = 0}, {_M_pword = 0x0,
_M_iword = 0}, {_M_pword = 0x0, _M_iword = 0}}, _M_word_size = 8, _M_word = 0xbfc05fa4, _M_ios_locale = {static none = 0, static ctype = 1, static numeric = 2, static collate = 4, static time = 8,
static monetary = 16, static messages = 32, static all = 63, _M_impl = 0xb66865fc, static _S_classic = 0xb66865fc, static _S_global = 0xb66865fc, static _S_categories = 0xb6680920, static _S_once = 2}},
_M_tie = 0x0, _M_fill = 32 ' ', _M_fill_init = true, _M_streambuf = 0xbfc05f58, _M_ctype = 0xb66858e0, _M_num_put = 0xb6685b9c, _M_num_get = 0xb6685b94}, _vptr.basic_istream = 0xb668296c,
_M_gcount = 0}, <std::basic_ostream<char, std::char_traits<char> >> = {_vptr.basic_ostream = 0xb6682980}, <No data fields>}, _M_stringbuf = {<std::basic_streambuf<char, std::char_traits<char> >> = {
_vptr.basic_streambuf = 0xb6682ba8, _M_in_beg = 0xa10577c "GLRenderSystem::_createRenderWindow \"FreeOrion v0.3.13 [Rev 3118]\", 1024x768 windowed miscParams: FSAA=0 displayFrequency=50 MHz gamma=No vsync=No 3284",
_M_in_cur = 0xa10577c "GLRenderSystem::_createRenderWindow \"FreeOrion v0.3.13 [Rev 3118]\", 1024x768 windowed miscParams: FSAA=0 displayFrequency=50 MHz gamma=No vsync=No 3284",
_M_in_end = 0xa10577d "LRenderSystem::_createRenderWindow \"FreeOrion v0.3.13 [Rev 3118]\", 1024x768 windowed miscParams: FSAA=0 displayFrequency=50 MHz gamma=No vsync=No 3284",
_M_out_beg = 0xa10577c "GLRenderSystem::_createRenderWindow \"FreeOrion v0.3.13 [Rev 3118]\", 1024x768 windowed miscParams: FSAA=0 displayFrequency=50 MHz gamma=No vsync=No 3284", _M_out_cur = 0xa105810 "3284",
_M_out_end = 0xa10597c "", _M_buf_locale = {static none = 0, static ctype = 1, static numeric = 2, static collate = 4, static time = 8, static monetary = 16, static messages = 32, static all = 63,
_M_impl = 0xb66865fc, static _S_classic = 0xb66865fc, static _S_global = 0xb66865fc, static _S_categories = 0xb6680920, static _S_once = 2}}, _M_mode = 24, _M_string = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0xa10577c "GLRenderSystem::_createRenderWindow \"FreeOrion v0.3.13 [Rev 3118]\", 1024x768 windowed miscParams: FSAA=0 displayFrequency=50 MHz gamma=No vsync=No 3284"}}}}
win = (class Ogre::RenderWindow *) 0xb2ca09f8
#5 0xb2c09a67 in Ogre::GLXGLSupport::createWindow (this=0xa093b60, autoCreateWindow=true, renderSystem=0xb2c9fed8, windowTitle=@0xbfc064f8) at OgreGLXGLSupport.cpp:369
miscParams = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >> = {<No data fields>}, <No data fields>},
_M_key_compare = {<std::binary_function<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red, _M_parent = 0xa085d48, _M_left = 0xa094680, _M_right = 0xa092400}, _M_node_count = 4}}}
fullscreen = <value optimized out>
w = 1024
h = 768
window = <value optimized out>
#6 0xb2bcfaa4 in Ogre::GLRenderSystem::_initialise (this=0xb2c9fed8, autoCreateWindow=true, windowTitle=@0xbfc064f8) at OgreGLRenderSystem.cpp:194
autoWindow = <value optimized out>
#7 0xb6efc8b6 in Ogre::Root::initialise (this=0xb2c9e490, autoCreateWindow=true, windowTitle=@0xbfc064f8, customCapabilitiesConfig=@0x8b98bb0) at OgreRoot.cpp:550
rscManager = (class Ogre::RenderSystemCapabilitiesManager &) @0xb2c9ea20: {<Ogre::Singleton<Ogre::RenderSystemCapabilitiesManager>> = {
static ms_Singleton = 0xb2c9ea20}, <Ogre::AllocatedObject<Ogre::CategorisedAllocPolicy<MEMCATEGORY_RENDERSYS> >> = {<No data fields>}, _vptr.RenderSystemCapabilitiesManager = 0xb7110f58, mSerializer = 0xb2c9ea68,
mCapabilitiesMap = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Ogre::RenderSystemCapabilities*> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Ogre::RenderSystemCapabilities*> > >> = {<No data fields>}, <No data fields>},
_M_key_compare = {<std::binary_function<std::basic_string<char, std::char_traits<char>, std::allocator<char> >,std::basic_string<char, std::char_traits<char>, std::allocator<char> >,bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red, _M_parent = 0x0, _M_left = 0xb2c9ea2c, _M_right = 0xb2c9ea2c}, _M_node_count = 0}}}, mScriptPattern = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xa0867b4 "*.rendercaps"}}}
#8 0x08537b1b in mainSetupAndRunOgre () at client/human/chmain.cpp:214
selected_render_system = (class Ogre::RenderSystem *) 0xb2c9fed8
window = (class Ogre::RenderWindow *) 0xbfc065ec
viewport = (class Ogre::Viewport *) 0xbfc06618
app = {<ClientApp> = {_vptr.ClientApp = 0x8146820,
EmpireEliminatedSignal = {<boost::signal1<void, int, boost::last_value<void>, int, std::less<int>, boost::function<void ()(int)> >> = {<boost::signals::detail::signal_base> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, impl = {px = 0xbfc065a8, pn = {pi_ = 0xb6656f47}}}, <boost::signals::trackable> = {connected_signals = {<std::_List_base<boost::signals::connection, std::allocator<boost::signals::connection> >> = {
_M_impl = {<std::allocator<std::_List_node<boost::signals::connection> >> = {<__gnu_cxx::new_allocator<std::_List_node<boost::signals::connection> >> = {<No data fields>}, <No data fields>}, _M_node = {
_M_next = 0x18, _M_prev = 0xa083aa4}}}, <No data fields>}, dying = 212}, <No data fields>}, <No data fields>}, m_universe = {_vptr.Universe = 0x815c12a, static ALL_OBJECTS_VISIBLE = false,
UniverseObjectDeleteSignal = {<boost::signal1<void, const UniverseObject*, boost::last_value<void>, int, std::less<int>, boost::function<void ()(const UniverseObject*)> >> = {<boost::signals::detail::signal_base> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, impl = {px = 0x0, pn = {pi_ = 0x0}}}, <boost::signals::trackable> = {
connected_signals = {<std::_List_base<boost::signals::connection, std::allocator<boost::signals::connection> >> = {
_M_impl = {<std::allocator<std::_List_node<boost::signals::connection> >> = {<__gnu_cxx::new_allocator<std::_List_node<boost::signals::connection> >> = {<No data fields>}, <No data fields>}, _M_node = {
_M_next = 0xbfc06590, _M_prev = 0xbfc06590}}}, <No data fields>}, dying = false}, <No data fields>}, <No data fields>}, static s_encoding_empire = -1, m_objects = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const int, UniverseObject*> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, UniverseObject*> > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red, _M_parent = 0x0, _M_left = 0xa074b01, _M_right = 0xbfc066dc},
_M_node_count = 3217057240}}}, m_destroyed_objects = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const int, UniverseObject*> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, UniverseObject*> > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = 3217057295, _M_parent = 0x8b996c0, _M_left = 0xbfc065d8, _M_right = 0x81591a9},
_M_node_count = 168311508}}}, m_destroyed_object_knowers = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const int, std::set<int, std::less<int>, std::allocator<int> > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, std::set<int, std::less<int>, std::allocator<int> > > > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = 168311484,
_M_parent = 0xa083b5c, _M_left = 0xa083aa4, _M_right = 0xa0838cc}, _M_node_count = 168311028}}}, m_ship_designs = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const int, ShipDesign*> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, ShipDesign*> > >> = {<No data fields>}, <No data fields>},
_M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = 168310556, _M_parent = 0x8924a80, _M_left = 0xa083514, _M_right = 0xa083544},
_M_node_count = 168310124}}}, m_system_distances = {<std::_Vector_base<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double> > > >> = {
_M_impl = {<std::allocator<std::vector<double, std::allocator<double> > >> = {<__gnu_cxx::new_allocator<std::vector<double, std::allocator<double> > >> = {<No data fields>}, <No data fields>},
_M_start = 0xa08333c, _M_finish = 0xa083364, _M_end_of_storage = 0xa083154}}, <No data fields>}, m_graph_impl = 0xa083184, m_effect_accounting_map = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const int, std::map<MeterType, std::vector<Universe::EffectAccountingInfo, std::allocator<Universe::EffectAccountingInfo> >, std::less<MeterType>, std::allocator<std::pair<const MeterType, std::vector<Universe::EffectAccountingInfo, std::allocator<Universe::EffectAccountingInfo> > > > > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, std::map<MeterType, std::vector<Universe::EffectAccountingInfo, std::allocator<Universe::EffectAccountingInfo> >, std::less<MeterType>, std::allocator<std::pair<const MeterType, std::vector<Universe::EffectAccountingInfo, std::allocator<Universe::EffectAccountingInfo> > > > > > > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = 168248516,
_M_parent = 0x815c254, _M_left = 0xbfc000e4, _M_right = 0xa074bc8}, _M_node_count = 168250232}}}, m_effect_discrepancy_map = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const int, std::map<MeterType, double, std::less<MeterType>, std::allocator<std::pair<const MeterType, double> > > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, std::map<MeterType, double, std::less<MeterType>, std::allocator<std::pair<const MeterType, double> > > > > >> = {<No data fields>}, <No data fields>},
_M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = 142923180, _M_parent = 0x0, _M_left = 0xb6682c88, _M_right = 0x0}, _M_node_count = 0}}},
m_last_allocated_object_id = 0, m_last_allocated_design_id = 0, m_marked_destroyed = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<int> >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<int> >> = {<No data fields>}, <No data fields>},
_M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red, _M_parent = 0xb66865fc, _M_left = 0x0, _M_right = 0x0},
_M_node_count = 0}}}, m_marked_for_victory = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>},
_M_header = {_M_color = std::_S_red, _M_parent = 0x0, _M_left = 0x0, _M_right = 0x883e200}, _M_node_count = 0}}}, static s_universe_width = 1000, static s_inhibit_universe_object_signals = false}, m_empires = {
_vptr.EmpireManager = 0x0, m_empire_map = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const int, Empire*> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, Empire*> > >> = {<No data fields>}, <No data fields>},
_M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red, _M_parent = 0x0, _M_left = 0x0, _M_right = 0x0}, _M_node_count = 0}}}},
m_orders = {m_orders = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const int, boost::shared_ptr<Order> > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, boost::shared_ptr<Order> > > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red, _M_parent = 0x0, _M_left = 0x0, _M_right = 0xbfc06600},
_M_node_count = 3060292352}}}}, m_combat_orders = {<std::_Vector_base<CombatOrder, std::allocator<CombatOrder> >> = {
_M_impl = {<std::allocator<CombatOrder>> = {<__gnu_cxx::new_allocator<CombatOrder>> = {<No data fields>}, <No data fields>}, _M_start = 0x0, _M_finish = 0x0, _M_end_of_storage = 0x0}}, <No data fields>},
m_networking = {m_io_service = {<boost::noncopyable_::noncopyable> = {<No data fields>}, service_registry_ = 0x0, impl_ = @0xb6681258},
m_socket = {<boost::asio::basic_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >> = {<boost::asio::basic_io_object<boost::asio::stream_socket_service<boost::asio::ip::tcp> >> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, service = @0x6, implementation = {<boost::noncopyable_::noncopyable> = {<No data fields>}, socket_ = 0, flags_ = 2 '\002', protocol_ = {family_ = 0}, reactor_data_ = {
allow_speculative_read = 4, allow_speculative_write = false}}}, <boost::asio::socket_base> = {static message_peek = <optimized out>, static message_out_of_band = 1,
static message_do_not_route = <optimized out>, static max_connections = -128}, <No data fields>}, <No data fields>}, m_mutex = {<boost::noncopyable_::noncopyable> = {<No data fields>}, m = {__data = {
__lock = 0, __count = 0, __owner = 0, __kind = 0, __nusers = 0, {__spins = 0, __list = {__next = 0x0}}}, __size = '\0' <repeats 23 times>, __align = 0}}, m_incoming_messages = {
m_queue = {<std::_List_base<Message, std::allocator<Message> >> = {
_M_impl = {<std::allocator<std::_List_node<Message> >> = {<__gnu_cxx::new_allocator<std::_List_node<Message> >> = {<No data fields>}, <No data fields>}, _M_node = {_M_next = 0x0,
_M_prev = 0x0}}}, <No data fields>}, m_have_synchronous_response = {internal_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __kind = 0, __nusers = 0, {__spins = 0, __list = {__next = 0x0}}},
__size = '\0' <repeats 23 times>, __align = 0}, cond = {__data = {__lock = 0, __futex = 0, __total_seq = 0, __wakeup_seq = 34359738368, __woken_seq = 13143867648704014052, __mutex = 0x0, __nwaiters = 168230912,
__broadcast_seq = 3217057336}, __size = '\0' <repeats 20 times>, "\b\000\000\000�f���eh�\000\000\000\000\000\000\a\n8f���Xh�", __align = 0}}, m_monitor = @0xb6685b9c},
m_outgoing_messages = {<std::_List_base<Message, std::allocator<Message> >> = {
_M_impl = {<std::allocator<std::_List_node<Message> >> = {<__gnu_cxx::new_allocator<std::_List_node<Message> >> = {<No data fields>}, <No data fields>}, _M_node = {_M_next = 0xb6685b94,
_M_prev = 0xbfc06758}}}, <No data fields>}, m_connected = 167, m_cancel_retries = 139, m_incoming_header = {elems = {-1077909520, 168249496, -1077909640, 135635932, -1077909520}}, m_incoming_message = {
m_type = 168249480, m_sending_player = -1077909608, m_receiving_player = 135572867, m_synchronous_response = 224, m_message_size = -1082130432, m_message_text = {
px = 0x8146820 "1�^\211�\203��PTRhP�\203\bh`�\203\bQVh(�S\b�{����", '\220' <repeats 14 times>, "U\211�S\203�\004\200=\024\224�\b", pn = {pi_ = 0x814a80b}}}, m_outgoing_header = {elems = {-1077909572, 146379880,
12, 0, 0}}}, m_player_name = {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0x8b95c44 "�����i\024\bY�\024\bf�\024\b�\004\025\b�\001\026\b_\006\026\b\177$\027\b�8\027\b�\\\027\b`�\027\b��\027\b��\027\b��\027\blr\033\b%\220\033\b\237�\033\bĽ\037\b>�\037\b\227�\037\b\017�\"\b@�#\b"}},
m_player_id = -1077909512, m_empire_id = 135572159, m_current_turn = -1077909572, m_player_info = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const int, PlayerInfo> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, PlayerInfo> > >> = {<No data fields>}, <No data fields>},
_M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red, _M_parent = 0x0, _M_left = 0x0, _M_right = 0x8146820},
_M_node_count = 3217057736}}}, static s_app = 0x0}, <GG::OgreGUI> = {<GG::GUI> = {_vptr.GUI = 0x0, static s_gui = 0x0, static s_impl = {px = 0x0, pn = {pi_ = 0x0}}}, <Ogre::RenderTargetListener> = {
_vptr.RenderTargetListener = 0x0}, <Ogre::WindowEventListener> = {_vptr.WindowEventListener = 0x0},
HandleSystemEventsSignal = {<boost::signal0<void, boost::last_value<void>, int, std::less<int>, boost::function<void ()()> >> = {<boost::signals::detail::signal_base> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, impl = {px = 0x0, pn = {pi_ = 0x3f800000}}}, <boost::signals::trackable> = {connected_signals = {<std::_List_base<boost::signals::connection, std::allocator<boost::signals::connection> >> = {
_M_impl = {<std::allocator<std::_List_node<boost::signals::connection> >> = {<__gnu_cxx::new_allocator<std::_List_node<boost::signals::connection> >> = {<No data fields>}, <No data fields>}, _M_node = {
_M_next = 0x0, _M_prev = 0xbf800000}}}, <No data fields>}, dying = false}, <No data fields>}, <No data fields>},
WindowResizedSignal = {<boost::signal2<void, GG::X, GG::Y, boost::last_value<void>, int, std::less<int>, boost::function<void ()(GG::X, GG::Y)> >> = {<boost::signals::detail::signal_base> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, impl = {px = 0x0, pn = {pi_ = 0xbf800000}}}, <boost::signals::trackable> = {connected_signals = {<std::_List_base<boost::signals::connection, std::allocator<boost::signals::connection> >> = {
_M_impl = {<std::allocator<std::_List_node<boost::signals::connection> >> = {<__gnu_cxx::new_allocator<std::_List_node<boost::signals::connection> >> = {<No data fields>}, <No data fields>}, _M_node = {
_M_next = 0x0, _M_prev = 0x0}}}, <No data fields>}, dying = false}, <No data fields>}, <No data fields>},
WindowClosedSignal = {<boost::signal0<void, boost::last_value<void>, int, std::less<int>, boost::function<void ()()> >> = {<boost::signals::detail::signal_base> = {<boost::noncopyable_::noncopyable> = {<No data fields>},
impl = {px = 0x0, pn = {pi_ = 0xb6418ca5}}}, <boost::signals::trackable> = {connected_signals = {<std::_List_base<boost::signals::connection, std::allocator<boost::signals::connection> >> = {
_M_impl = {<std::allocator<std::_List_node<boost::signals::connection> >> = {<__gnu_cxx::new_allocator<std::_List_node<boost::signals::connection> >> = {<No data fields>}, <No data fields>}, _M_node = {
_M_next = 0xbfc06828, _M_prev = 0x814bc59}}}, <No data fields>}, dying = 64}, <No data fields>}, <No data fields>}, m_window = 0xa074894,
m_timer = {<Ogre::AllocatedObject<Ogre::CategorisedAllocPolicy<MEMCATEGORY_GENERAL> >> = {<No data fields>}, start = {tv_sec = 0, tv_usec = -1235972108}, zeroClock = 135576758}, m_config_file_data = {
_vptr.SharedPtr = 0x8146820, pRep = 0xbfc06828, pUseCount = 0xb6418e30, useFreeMethod = 146365508}}, m_fsm = 0x883d260, m_server_process = {m_impl = {px = 0xbfc06848, pn = {pi_ = 0x81469d7}}, m_empty = 124}, m_ui = {
px = 0x8b99440, pn = {pi_ = 0x8b975c4}}, m_save_filename = {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x0}},
m_single_player_game = 80, m_game_started = 92, m_turns_since_autosave = 142856800, m_in_save_game_cycle = 88, m_connected = 104, m_root = 0x81469f3, m_scene_manager = 0x1, m_camera = 0xffff, m_viewport = 0xbfc06868}
renderers_list = (RenderSystemList *) 0xb2c9e490
failed = false
video_mode_str = {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xa094764 "1024 x 768 @ 32-bit colour"}}
scene_manager = (class Ogre::SceneManager *) 0xbfc065fc
camera = (class Ogre::Camera *) 0xbfc06610
log_manager = (class Ogre::LogManager *) 0xb2c9e260
root = (class Ogre::Root *) 0xb2c9e490
#9 0x0853a485 in main (argc=Cannot access memory at address 0x20
) at client/human/chmain.cpp:64
No locals.
does anybody see there something worth, which can help me to solve it?
thx in advance
8472
Logic clearly dictates that the needs of the many outweigh the needs of the few.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#2 Post by OndrejR » Sat Jul 18, 2009 10:02 am

What says

Code: Select all

gcc --version
and

Code: Select all

g++ --version
?

User avatar
8472
Space Floater
Posts: 28
Joined: Thu Jul 16, 2009 5:46 pm
Location: Slovakia, Bratislava

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#3 Post by 8472 » Sat Jul 18, 2009 10:09 am

Code: Select all

gcc --version
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3

Code: Select all

g++ --version
g++ (Ubuntu 4.3.3-5ubuntu4) 4.3.3
Logic clearly dictates that the needs of the many outweigh the needs of the few.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#4 Post by OndrejR » Sat Jul 18, 2009 10:49 am

Version is ok.

User avatar
8472
Space Floater
Posts: 28
Joined: Thu Jul 16, 2009 5:46 pm
Location: Slovakia, Bratislava

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#5 Post by 8472 » Sat Jul 18, 2009 11:00 am

OndrejR wrote:Version is ok.
i know.
therefore i compiled it with those debug. symbols, and that's a source where something can be found i think
Logic clearly dictates that the needs of the many outweigh the needs of the few.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#6 Post by OndrejR » Sat Jul 18, 2009 11:13 am

Ogre samples from Ogre3D are working?

User avatar
8472
Space Floater
Posts: 28
Joined: Thu Jul 16, 2009 5:46 pm
Location: Slovakia, Bratislava

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#7 Post by 8472 » Sat Jul 18, 2009 11:16 am

OndrejR wrote:Ogre samples from Ogre3D are working?
how do i find that?
in the ogre directory i see lot of directories, and it looks like some kind of sources.
Logic clearly dictates that the needs of the many outweigh the needs of the few.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#8 Post by OndrejR » Sat Jul 18, 2009 11:42 am

Somewhere in sources should be compiled executable binaries. Probably in directory samples. I don't have them, I deleted them.

User avatar
8472
Space Floater
Posts: 28
Joined: Thu Jul 16, 2009 5:46 pm
Location: Slovakia, Bratislava

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#9 Post by 8472 » Sat Jul 18, 2009 11:45 am

OndrejR wrote:Somewhere in sources should be compiled executable binaries. Probably in directory samples. I don't have them, I deleted them.
i've found there something you're mentioning, e.g.: ogre/Samples/Smoke/src , './Smoke' , and it ended with this:
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
FreeImage version: 3.11.0
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
DDS codec registering
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
plugins.cfg not found, automatic plugin loading disabled.
*-*-* OGRE Initialising
*-*-* Version 1.6.2 (Shoggoth)
An exception has occured: OGRE EXCEPTION(6:FileNotFoundException): 'resources.cfg' file not found! in ConfigFile::load at OgreConfigFile.cpp (line 84)*-*-* OGRE Shutdown
Unregistering ResourceManager for type Compositor
Unregistering ResourceManager for type Font
Unregistering ResourceManager for type Skeleton
Unregistering ResourceManager for type Mesh
Unregistering ResourceManager for type HighLevelGpuProgram
Unregistering ResourceManager for type Material
i've tried one another, same result.
Logic clearly dictates that the needs of the many outweigh the needs of the few.

User avatar
8472
Space Floater
Posts: 28
Joined: Thu Jul 16, 2009 5:46 pm
Location: Slovakia, Bratislava

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#10 Post by 8472 » Sat Jul 18, 2009 1:40 pm

so i've managed to run the samples from the ogre after small inquiry, there were missing some cfg files in the Samples/anything/src , which were normally stored in the Samples/Common/bin

OndrejR wrote:Ogre samples from Ogre3D are working?
and the result is yes, they do work after those small modifications.
Logic clearly dictates that the needs of the many outweigh the needs of the few.

User avatar
8472
Space Floater
Posts: 28
Joined: Thu Jul 16, 2009 5:46 pm
Location: Slovakia, Bratislava

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#11 Post by 8472 » Sun Jul 19, 2009 10:07 am

there is one interesting thing i noticed in that debug output (marked with red color):
failed = false
video_mode_str = {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x8d66764 "1024 x 768 @ 32-bit colour"}}
scene_manager = (class Ogre::SceneManager *) 0xbfbefddc
camera = (class Ogre::Camera *) 0xbfbefdf0
log_manager = (class Ogre::LogManager *) 0xb2e87260
root = (class Ogre::Root *) 0xb2e87490
#9 0x0853a485 in main (argc=Cannot access memory at address 0x20
) at client/human/chmain.cpp:64

No locals.
so i looked inside of that file "client/human/chmain.cpp" to the line 64, where it says this:

Code: Select all

    if (mainSetupAndRunOgre() != 0) {
        std::cerr << "main() failed to setup or run ogre." << std::endl;
        return 1;
    }
    return 0;
}
i basicaly understand what it says, but as a non-programmer i'm lost at it.
any advice what to do next with that "Segmentation fault" problem?
thx
Logic clearly dictates that the needs of the many outweigh the needs of the few.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12453
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#12 Post by Geoff the Medio » Sat Aug 01, 2009 4:05 pm

Sorry for not replying to this sooner... I seem to have forgotten it.

There were some changes to chmain.cpp recently that this might be related to. Could you try building and running SVN revision 3112 and seeing what happens?

User avatar
8472
Space Floater
Posts: 28
Joined: Thu Jul 16, 2009 5:46 pm
Location: Slovakia, Bratislava

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#13 Post by 8472 » Sat Aug 01, 2009 7:20 pm

Geoff the Medio wrote:Sorry for not replying to this sooner... I seem to have forgotten it.
no problem.
Geoff the Medio wrote: There were some changes to chmain.cpp recently that this might be related to. Could you try building and running SVN revision 3112 and seeing what happens?
well, i don't mind, but:
1. why should i decrease the current version i have

Code: Select all

At revision 3118
to a lower one you're talking about?
2. if you really mean it about that decreasing from 3118 to 3112, would you please tell me how to make it? because i'm not that much skilled in this SVN things. i know how to do these things only when i have some howto like in that project wiki, but i don't remember that i saw there anything about decreasing the version.

thx
8472
Logic clearly dictates that the needs of the many outweigh the needs of the few.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#14 Post by OndrejR » Sat Aug 01, 2009 7:57 pm

Code: Select all

svn update -r 3112

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12453
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Segmentation fault on the Ubuntu 9.04, nvidia card.

#15 Post by Geoff the Medio » Sat Aug 01, 2009 8:07 pm

8472 wrote:1. why should i decrease the current version i have

Code: Select all

At revision 3118
to a lower one you're talking about?
Because, as I said:
Geoff the Medio wrote: There were some changes to chmain.cpp recently that this might be related to.
Reverting to 3112 will result in you building and running a version before the changes I'm talking about. If it works after doing that, or the problems you get change significantly, then it strongly suggests there's a problem with those changes on your system.

Post Reply