[SOLVED] Segfault, SVN 11359, Irrlicht SVN 4098

[SOLVED] Segfault, SVN 11359, Irrlicht SVN 4098

Postby jackylman » 01 Jul 2012, 15:32

I encounter a segfault upon starting stk 11359 with irrlicht 4098.
Should I be using a different SVN revision of Irrlicht?
I'm using debian sid with a 3.4 kernel. Thanks.

{l Code}: {l Select All Code}
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /opt/supertuxkart/cmake/bin/supertuxkart...done.
(gdb) run
Starting program: /opt/supertuxkart/cmake/bin/supertuxkart
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Irrlicht Engine version 1.8.0-alpha
Linux 3.4-4.slh.2-aptosid-amd64 #1 SMP PREEMPT Wed Jun 27 20:58:12 UTC 2012 x86_64
[FileManager] Data files will be fetched from: '/usr/local/share/supertuxkart'
[FileManager] Addons files will be stored in '/home/dave/.local/share/supertuxkart/addons'.
[translate] Env var LANGUAGE = 'en_US.utf8'
[translate] Env var LANGUAGE = 'en_US.utf8', which corresponds to 'English (United States)'
Adding language fallback en
!!!!! Performance warning: Irrlicht compiled with debug mode.!!!!!
!!!!! This can have a significant performance impact         !!!!!
[IrrDriver] Trying OpenGL rendering.
[New Thread 0x7fffeeb89700 (LWP 22076)]
[New Thread 0x7fffe74bd700 (LWP 22077)]
[Thread 0x7fffe74bd700 (LWP 22077) exited]
[New Thread 0x7fffe74bd700 (LWP 22078)]

Program received signal SIGSEGV, Segmentation fault.
0xfffffffffffffeb0 in ?? ()
(gdb) bt
#0  0xfffffffffffffeb0 in ?? ()
#1  0x000000000089b72e in GUIEngine::LabelWidget::add (this=0x2196340) at /opt/supertuxkart/src/guiengine/widgets/label_widget.cpp:84
#2  0x0000000000850c90 in GUIEngine::AbstractTopLevelContainer::addWidgetsRecursively (this=0x17b3310, widgets=..., parent=0x21960d0)
    at /opt/supertuxkart/src/guiengine/abstract_top_level_container.cpp:81
#3  0x0000000000850a3e in GUIEngine::AbstractTopLevelContainer::addWidgetsRecursively (this=0x17b3310, widgets=..., parent=0x0)
    at /opt/supertuxkart/src/guiengine/abstract_top_level_container.cpp:56
#4  0x000000000086dd96 in GUIEngine::Screen::addWidgets (this=0x17b3310) at /opt/supertuxkart/src/guiengine/screen.cpp:167
#5  0x00000000008587f6 in GUIEngine::switchToScreen (screen_name=0x17addd8 "story_mode_lobby.stkgui") at /opt/supertuxkart/src/guiengine/engine.cpp:862
#6  0x000000000084f8cf in GUIEngine::AbstractStateManager::pushMenu (this=0x1659aa0, name=...) at /opt/supertuxkart/src/guiengine/abstract_state_manager.cpp:111
#7  0x000000000084f9b8 in GUIEngine::AbstractStateManager::pushScreen (this=0x1659aa0, screen=0x17b3310)
    at /opt/supertuxkart/src/guiengine/abstract_state_manager.cpp:131
#8  0x000000000092839d in main (argc=1, argv=0x7fffffffe398) at /opt/supertuxkart/src/main.cpp:1289
(gdb) bt full
#0  0xfffffffffffffeb0 in ?? ()
No symbol table info available.
#1  0x000000000089b72e in GUIEngine::LabelWidget::add (this=0x2196340) at /opt/supertuxkart/src/guiengine/widgets/label_widget.cpp:84
        word_wrap = false
        message = {array = 0x17b36c0 L"Select a Player", allocated = 16, used = 16, allocator = {_vptr.irrAllocator = 0xde8e30}}
        align = irr::gui::EGUIA_CENTER
        irrwidget = 0x20294f0
        widget_size = {UpperLeftCorner = {X = 118, Y = 15}, LowerRightCorner = {X = 904, Y = 58}}
        valign = irr::gui::EGUIA_CENTER
#2  0x0000000000850c90 in GUIEngine::AbstractTopLevelContainer::addWidgetsRecursively (this=0x17b3310, widgets=..., parent=0x21960d0)
    at /opt/supertuxkart/src/guiengine/abstract_top_level_container.cpp:81
        n = 0
        widgets_amount = 8
#3  0x0000000000850a3e in GUIEngine::AbstractTopLevelContainer::addWidgetsRecursively (this=0x17b3310, widgets=..., parent=0x0)
    at /opt/supertuxkart/src/guiengine/abstract_top_level_container.cpp:56
        n = 0
        widgets_amount = 1
#4  0x000000000086dd96 in GUIEngine::Screen::addWidgets (this=0x17b3310) at /opt/supertuxkart/src/guiengine/screen.cpp:167
        __PRETTY_FUNCTION__ = "void GUIEngine::Screen::addWidgets()"
        w = 0x17b3310
#5  0x00000000008587f6 in GUIEngine::switchToScreen (screen_name=0x17addd8 "story_mode_lobby.stkgui") at /opt/supertuxkart/src/guiengine/engine.cpp:862
        screen_amount = 1
        __PRETTY_FUNCTION__ = "void GUIEngine::switchToScreen(const char*)"
#6  0x000000000084f8cf in GUIEngine::AbstractStateManager::pushMenu (this=0x1659aa0, name=...) at /opt/supertuxkart/src/guiengine/abstract_state_manager.cpp:111
        __PRETTY_FUNCTION__ = "void GUIEngine::AbstractStateManager::pushMenu(std::string)"
#7  0x000000000084f9b8 in GUIEngine::AbstractStateManager::pushScreen (this=0x1659aa0, screen=0x17b3310)
    at /opt/supertuxkart/src/guiengine/abstract_state_manager.cpp:131
        __PRETTY_FUNCTION__ = "void GUIEngine::AbstractStateManager::pushScreen(GUIEngine::Screen*)"
#8  0x000000000092839d in main (argc=1, argv=0x7fffffffe398) at /opt/supertuxkart/src/main.cpp:1289
        materials_file = {static npos = <optimized out>,
          _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
            _M_p = 0x178a408 "/usr/local/share/supertuxkart/data/models//materials.xml"}}
Last edited by jackylman on 15 Jul 2012, 17:26, edited 1 time in total.
jackylman
 
Posts: 7
Joined: 01 Jul 2012, 15:22

Re: Segfault, SVN 11359, Irrlicht SVN 4098

Postby hiker » 04 Jul 2012, 04:32

Sorry for the delay in answering, I've been away for a while.
jackylman {l Wrote}:I encounter a segfault upon starting stk 11359 with irrlicht 4098.
Should I be using a different SVN revision of Irrlicht?

I am not entirely sure ;) I've used a previous version and that worked, as well as r4098, and r4225 (this prints some warnings, but this is work in progress).

I'd suggest to first do a clean build, and make sure that the right library is used (we had a few people using header from one version, but linked with a system-wide installed different version of irrlicht).

Otherwise: what exactly do you do? Just start stk? Or do you click on anything?

Cheers,
Joerg
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: Segfault, SVN 11359, Irrlicht SVN 4098

Postby jackylman » 07 Jul 2012, 13:19

I just start stk to get the segfault. I made sure libirrlicht-dev package was not installed to avoid the header confusion you refer to.
jackylman
 
Posts: 7
Joined: 01 Jul 2012, 15:22

Re: Segfault, SVN 11359, Irrlicht SVN 4098

Postby Auria » 07 Jul 2012, 20:11

maybe there is something wrong with the "select a player" screen, and we don't see the problem because we have all already selected a player? I won't have time to debug this myself personnally until at least a week probably but this could give a hint to another developer
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Segfault, SVN 11359, Irrlicht SVN 4098

Postby KroArtem » 07 Jul 2012, 21:40

Using a new player doesn't seem to cause a crash.
KroArtem
 
Posts: 375
Joined: 26 Aug 2010, 19:04

Re: Segfault, SVN 11359, Irrlicht SVN 4098

Postby hiker » 09 Jul 2012, 00:06

jackylman {l Wrote}:I just start stk to get the segfault. I made sure libirrlicht-dev package was not installed to avoid the header confusion you refer to.

The stack trace indicates that you actually started the story mode (but I don't know the GUI code that well, Auria can confirm this).

While I don't think any shaders should be used at this stage, it might be worth trying this:
if you can go to the options menu in stk, set the graphical details to the lowest setting. If you can't even get there (then I admit it might be a futile approach anyway, but still): modify ~/.config/supertuxkart/config.xml, and set all the GFX settings to false or 0.

Cheers,
Joerg
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: Segfault, SVN 11359, Irrlicht SVN 4098

Postby Auria » 14 Jul 2012, 00:00

Joerg: actually, despite the screen being called "story_mode_lobby.stkgui", it is now shown at startup, asking to select a player. I should check if I can spot what's wrong when I get internet back at home (soon!)
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Segfault, SVN 11359, Irrlicht SVN 4098

Postby Auria » 14 Jul 2012, 21:28

Unfortunately, looking at the code, I see *no* reason whatsoever why this would happen. The line that crashes is a call to an irrlicht function that has not always existed, so I suspect there is a mismatch in your setup. Maybe you have the irrlicht headers of the latest version, but using a older irrlocht dynamic library?
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Segfault, SVN 11359, Irrlicht SVN 4098

Postby jackylman » 15 Jul 2012, 16:37

Thanks for your time/attention.
I just got a new full-time job (complete with lots of soul-stealing overtime), so unfortunately, I don't have a lot of time for STK now. When more motivated, I may compile a static version and see if the segfault still occurs, to rule out the header/dynamic shared library version mismatch. Maybe a few more cups of coffee...
jackylman
 
Posts: 7
Joined: 01 Jul 2012, 15:22

Re: [SOLVED] Segfault, SVN 11359, Irrlicht SVN 4098

Postby jackylman » 15 Jul 2012, 17:27

As suspected, I had leftover cruft from an earlier install of irrlicht SVN. After removing it, and rebuilding, the program has started. Sorry for the noise. Marking SOLVED.
jackylman
 
Posts: 7
Joined: 01 Jul 2012, 15:22

Re: [SOLVED] Segfault, SVN 11359, Irrlicht SVN 4098

Postby Auria » 17 Jul 2012, 22:23

Glad that it's solved :)
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Who is online

Users browsing this forum: No registered users and 1 guest