constants core dump!

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
flipe
Peon
Peon
Posts: 32
Joined: 18 Oct 2005, 05:16

constants core dump!

Post by flipe »

I playing tmw-0.0.18, but now, I have many core dumps....
gdb tmw
GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/tmw
[Thread debugging using libthread_db enabled]
[New Thread 1092056448 (LWP 6731)]
The Mana World v0.0.18
[New Thread 1104599984 (LWP 6734)]
[New Thread 1118997424 (LWP 6735)]
[New Thread 1131445168 (LWP 6736)]
[Thread 1131445168 (zombie) exited]
[New Thread 1140009904 (LWP 6738)]
[Thread 1140009904 (zombie) exited]
[New Thread 1140009904 (LWP 6740)]
[Thread 1140009904 (zombie) exited]
[New Thread 1140009904 (LWP 6741)]
[Thread 1140009904 (zombie) exited]
[New Thread 1140009904 (LWP 6751)]
[Thread 1140009904 (zombie) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1092056448 (LWP 6731)]
0x407b6aec in free () from /lib/tls/libc.so.6
(gdb) bt
#0 0x407b6aec in free () from /lib/tls/libc.so.6
#1 0x406fb7c1 in operator delete () from /usr/lib/libstdc++.so.6
#2 0x08073d30 in std::list<gcn::Widget*, std::allocator<gcn::Widget*> >::erase (this=0x82bc1a0)
at new_allocator.h:86
#3 0x4062a03a in gcn::Container::moveToTop (this=0x844bde8) at container.cpp:170
#4 0x40620e40 in gcn::Widget::requestMoveToTop (this=0x0) at widget.cpp:239
#5 0x080cdd43 in do_input () at game.cpp:595
#6 0x080cecc5 in game () at game.cpp:380
#7 0x080d3d46 in main (argc=1, argv=0xbffff7e4) at main.cpp:487
and this...

tmw
The Mana World v0.0.18
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
Falha de segmentação


thanks!
User avatar
Bjørn
Manasource
Manasource
Posts: 1438
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn »

After a short analysis, I declare this a very strange crash. If we look at the crashing piece of TMW code:

Code: Select all

            if (requestedWindow)
            {
                requestedWindow->setVisible(!requestedWindow->isVisible());
                if (requestedWindow->isVisible())
                {
                    requestedWindow->requestMoveToTop();   // (line 595)
                }
                used = true;
            }
How can this lead to a call on a NULL object, as is seen in the backtrace, and on to a method call on what I guess is some random pointer:
#3 0x4062a03a in gcn::Container::moveToTop (this=0x844bde8) at container.cpp:170
#4 0x40620e40 in gcn::Widget::requestMoveToTop (this=0x0) at widget.cpp:239
#5 0x080cdd43 in do_input () at game.cpp:595
Post Reply