adonthell-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Adonthell-general] not able to run cmake


From: Kai Sterker
Subject: Re: [Adonthell-general] not able to run cmake
Date: Mon, 18 Mar 2013 21:58:25 +0100

2013/3/18 shirish शिरीष <address@hidden>:

> Thanx Kai, was able to do it. Just ran it and when I tried to close
> it, was not getting closed. I had to do CTRL+C to quit/kill the
> program and immediately ran into double-free corruption bug. Please
> see :-

Very odd. Using ESC to quit works well for me. If I do that, I do not
see any issues such as those below either. Same thing if I just press
CTRL+C to force an exit.

OTOH, not quite sure in which state it is once ESC fails to shutdown
properly. Could well be that CTRL+C afterwards will try to free things
that have been halfway cleaned up before.

> Error in `./worldtest': double free or corruption (out): 0x0000000002285d60 
> ***
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(+0x7aad6)[0x7f1621a0ead6]
> /lib/x86_64-linux-gnu/libc.so.6(+0x7b853)[0x7f1621a0f853]
> /home/shirish/games/adonthell/adonthell-build/src/gui/libadonthell_gui.so(_ZN3gui16ui_event_managerD1Ev+0x58)[0x7f16243261c8]
> /lib/x86_64-linux-gnu/libc.so.6(__cxa_finalize+0x8f)[0x7f16219cdeef]
> /home/shirish/games/adonthell/adonthell-build/src/gui/libadonthell_gui.so(+0xf8e3)[0x7f16243138e3]

That's not a lot of information to figure out what the problem is. As
it pointed to the ui_event_manager's destructor, I took the
opportunity to change the way how event managers are created and
destroyed, but it's a shot in the dark. Won't hurt, though.


But If your inability to quit via ESC still persists, you'd have to
debug to see where it is stuck. I.e. in adonthell-build/test, do

gdb .libs/worldtest (or just gdb worldtest, depending if you compiled
with CMake or autotools)
run -g ../../adonthell/test data

then do whatever you did to make it fail. Once it is stuck, press
CTRL+C. Then type

bt

and send the result to the mailing list.

Kai



reply via email to

[Prev in Thread] Current Thread [Next in Thread]