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: shirish शिरीष
Subject: Re: [Adonthell-general] not able to run cmake
Date: Tue, 19 Mar 2013 03:30:14 +0530

Hi all,
This gets stranger and stranger. I was able to compile and install it
successfully but when running it I get this :-

 ~/games/adonthell/adonthell-build/test$ ./worldtest -g
../../adonthell/test data
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name stderr_to_log
Segmentation fault

This is with the latest git :-

commit d522b084b212c3bf9749041aba892c6db2ec4608
Author: Kai Sterker <address@hidden>
Date:   Mon Mar 18 21:46:35 2013 +0100

    UPDATED destruction order of event managers.

    They are destroyed with their respective module now, instead of
    statically and uncontrolled on program termination. There are still more
    than enough static instances around that may cause issues, but one less
    to worry about :-).


Now I ran it with gdb (I compiled it cmake)

~/games/adonthell/adonthell-build/test$ gdb worldtest
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
/home/shirish/games/adonthell/adonthell-build/test/worldtest...(no
debugging symbols found)...done.
(gdb) run -g ../../adonthell/test data
Starting program:
/home/shirish/games/adonthell/adonthell-build/test/worldtest -g
../../adonthell/test data
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name stderr_to_log
[New Thread 0x7fffe6f3c700 (LWP 28920)]
[Thread 0x7fffe6f3c700 (LWP 28920) exited]
[New Thread 0x7fffe6f3c700 (LWP 28921)]

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe4c23992 in world::pathfinding_manager::add_task_ll
(address@hidden, address@hidden, address@hidden,
target=..., target2=...,
    address@hidden '\001', address@hidden '\000',
address@hidden '\000')
    at ../../../adonthell/src/world/pathfinding_manager.cc:107
warning: Source file is more recent than executable.
107         // Verify if we can indeed add this task, or if the character
is already performing another task
(gdb) bt
#0  0x00007fffe4c23992 in world::pathfinding_manager::add_task_ll
(address@hidden, address@hidden, address@hidden,
target=..., target2=...,
    address@hidden '\001', address@hidden '\000',
address@hidden '\000')
    at ../../../adonthell/src/world/pathfinding_manager.cc:107
#1  0x00007fffe4c23e68 in world::pathfinding_manager::add_task
(this=0x606820, chr=0xef08f0, target=...,
finalDir=world::character::NONE)
    at ../../../adonthell/src/world/pathfinding_manager.cc:139
#2  0x00007fffe4e508cb in _wrap_pathfinding_manager_add_task__SWIG_1
(args=<optimized out>)
    at ../../../../adonthell/src/py-wrappers/adonthell/py_world_wrap.cc:12526
#3  _wrap_pathfinding_manager_add_task (self=<optimized out>,
args=<optimized out>) at
../../../../adonthell/src/py-wrappers/adonthell/py_world_wrap.cc:12879
#4  0x00007ffff5041f00 in PyEval_EvalFrameEx () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#5  0x00007ffff5044028 in PyEval_EvalCodeEx () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#6  0x00007ffff5041c1e in PyEval_EvalFrameEx () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#7  0x00007ffff5044028 in PyEval_EvalCodeEx () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#8  0x00007ffff4f8ab36 in ?? () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#9  0x00007ffff500b07e in PyObject_Call () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#10 0x00007ffff5099cc0 in ?? () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#11 0x00007ffff500b07e in PyObject_Call () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#12 0x00007ffff500c957 in PyEval_CallObjectWithKeywords () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
#13 0x00007ffff59b52db in python::script::call_method_ret(std::string
const&, _object*) const ()
   from 
/home/shirish/games/adonthell/adonthell-build/src/python/libadonthell_python.so
#14 0x00007ffff7170ae9 in world::schedule::get_state(base::flat&) ()
from 
/home/shirish/games/adonthell/adonthell-build/src/world/libadonthell_world.so
#15 0x00007ffff714ba5a in world::character::get_state(base::flat&) ()
from 
/home/shirish/games/adonthell/adonthell-build/src/world/libadonthell_world.so
#16 0x00007ffff7143700 in world::area::get_state(base::flat&) () from
/home/shirish/games/adonthell/adonthell-build/src/world/libadonthell_world.so
#17 0x00007ffff714524d in world::area::load(std::string const&) ()
from 
/home/shirish/games/adonthell/adonthell-build/src/world/libadonthell_world.so
#18 0x00007ffff714871c in
world::area_manager::set_active_map(std::string const&, bool const&)
()
   from 
/home/shirish/games/adonthell/adonthell-build/src/world/libadonthell_world.so
#19 0x00007ffff7148c95 in world::area_manager::load() () from
/home/shirish/games/adonthell/adonthell-build/src/world/libadonthell_world.so
#20 0x00007ffff79c8fff in base::savegame::load(int const&) () from
/home/shirish/games/adonthell/adonthell-build/src/base/libadonthell_base.so
#21 0x0000000000403cd4 in world_test::main() ()
---Type <return> to continue, or q <return> to quit---
#22 0x00007ffff3f32c37 in main_init () from
/home/shirish/games/adonthell/lib/adonthell/main/_sdl.so
#23 0x00007ffff7382d4b in adonthell::app::init() () from
/home/shirish/games/adonthell/adonthell-build/src/main/libadonthell_main.so
#24 0x00007ffff7381ef1 in main () from
/home/shirish/games/adonthell/adonthell-build/src/main/libadonthell_main.so
#25 0x00007ffff4378a55 in __libc_start_main (main=0x403800 <address@hidden>,
argc=4, ubp_av=0x7fffffffe208, init=<optimized out>, fini=<optimized
out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffe1f8) at libc-start.c:260
#26 0x0000000000404905 in _start ()
(gdb) bt full
#0  0x00007fffe4c23992 in world::pathfinding_manager::add_task_ll
(address@hidden, address@hidden, address@hidden,
target=..., target2=...,
    address@hidden '\001', address@hidden '\000',
address@hidden '\000')
    at ../../../adonthell/src/world/pathfinding_manager.cc:107
No locals.
#1  0x00007fffe4c23e68 in world::pathfinding_manager::add_task
(this=0x606820, chr=0xef08f0, target=...,
finalDir=world::character::NONE)
    at ../../../adonthell/src/world/pathfinding_manager.cc:139
        id = 0
#2  0x00007fffe4e508cb in _wrap_pathfinding_manager_add_task__SWIG_1
(args=<optimized out>)
    at ../../../../adonthell/src/py-wrappers/adonthell/py_world_wrap.cc:12526
        resultobj = 0x0
        arg2 = 0xef08f0
        res2 = <optimized out>
        argp3 = 0x117afa0
        obj1 = 0x109b250
        arg3 = <optimized out>
        argp1 = 0x606820
        res3 = <optimized out>
        obj2 = 0x109b390
        arg1 = 0x606820
        res1 = <optimized out>
        argp2 = 0xef08f0
        obj0 = 0x109b3d0
        result = <optimized out>
#3  _wrap_pathfinding_manager_add_task (self=<optimized out>,
args=<optimized out>) at
../../../../adonthell/src/py-wrappers/adonthell/py_world_wrap.cc:12879
        res = <optimized out>
        vptr = 0xef08f0
        res = <optimized out>
        _v = 1
---Type <return> to continue, or q <return> to quit---
        vptr = 0x606820
        res = <optimized out>
        argc = <optimized out>
        argv = {0x109b3d0, 0x109b250, 0x109b390, 0x7ffff505c2a9,
0x116c290, 0x1090a28}
        ii = <optimized out>
#4  0x00007ffff5041f00 in PyEval_EvalFrameEx () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#5  0x00007ffff5044028 in PyEval_EvalCodeEx () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#6  0x00007ffff5041c1e in PyEval_EvalFrameEx () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#7  0x00007ffff5044028 in PyEval_EvalCodeEx () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#8  0x00007ffff4f8ab36 in ?? () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#9  0x00007ffff500b07e in PyObject_Call () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#10 0x00007ffff5099cc0 in ?? () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#11 0x00007ffff500b07e in PyObject_Call () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#12 0x00007ffff500c957 in PyEval_CallObjectWithKeywords () from
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#13 0x00007ffff59b52db in python::script::call_method_ret(std::string
const&, _object*) const ()
   from 
/home/shirish/games/adonthell/adonthell-build/src/python/libadonthell_python.so
No symbol table info available.
#14 0x00007ffff7170ae9 in world::schedule::get_state(base::flat&) ()
from 
/home/shirish/games/adonthell/adonthell-build/src/world/libadonthell_world.so
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#15 0x00007ffff714ba5a in world::character::get_state(base::flat&) ()
from 
/home/shirish/games/adonthell/adonthell-build/src/world/libadonthell_world.so
No symbol table info available.
#16 0x00007ffff7143700 in world::area::get_state(base::flat&) () from
/home/shirish/games/adonthell/adonthell-build/src/world/libadonthell_world.so
No symbol table info available.
#17 0x00007ffff714524d in world::area::load(std::string const&) ()
from 
/home/shirish/games/adonthell/adonthell-build/src/world/libadonthell_world.so
No symbol table info available.
#18 0x00007ffff714871c in
world::area_manager::set_active_map(std::string const&, bool const&)
()
   from 
/home/shirish/games/adonthell/adonthell-build/src/world/libadonthell_world.so
No symbol table info available.
#19 0x00007ffff7148c95 in world::area_manager::load() () from
/home/shirish/games/adonthell/adonthell-build/src/world/libadonthell_world.so
No symbol table info available.
#20 0x00007ffff79c8fff in base::savegame::load(int const&) () from
/home/shirish/games/adonthell/adonthell-build/src/base/libadonthell_base.so
No symbol table info available.
#21 0x0000000000403cd4 in world_test::main() ()
No symbol table info available.
#22 0x00007ffff3f32c37 in main_init () from
/home/shirish/games/adonthell/lib/adonthell/main/_sdl.so
No symbol table info available.
#23 0x00007ffff7382d4b in adonthell::app::init() () from
/home/shirish/games/adonthell/adonthell-build/src/main/libadonthell_main.so
No symbol table info available.
#24 0x00007ffff7381ef1 in main () from
/home/shirish/games/adonthell/adonthell-build/src/main/libadonthell_main.so
No symbol table info available.
#25 0x00007ffff4378a55 in __libc_start_main (main=0x403800 <address@hidden>,
argc=4, ubp_av=0x7fffffffe208, init=<optimized out>, fini=<optimized
out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffe1f8) at libc-start.c:260
        result = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0,
5665707442364111022, 4212956, 140737488347648, 0, 0,
-5665707442960967506, -5665727851329202002},
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x4051a0,
0x7fffffffe208}, data = {prev = 0x0, cleanup = 0x0, canceltype =
4215200}}}
        not_first_call = <optimized out>
#26 0x0000000000404905 in _start ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
(gdb) quit
A debugging session is active.

        Inferior 1 [process 28913] will be killed.

Quit anyway? (y or n) y

I was not able to run the game (forget closing it as shared yesterday)
. Anyways, maybe you can make more heads or tails of this then I can
atm.

Please lemme know if I can be of any further assistance.
-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



reply via email to

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