Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault when falling from multiple ledges #40

Open
oddbjol opened this issue Feb 28, 2012 · 0 comments
Open

Segfault when falling from multiple ledges #40

oddbjol opened this issue Feb 28, 2012 · 0 comments

Comments

@oddbjol
Copy link

oddbjol commented Feb 28, 2012

When falling over a ledge and going past several z-levels (like in missile silo), the game crashes with a segfault. For some reason, the last call to map::generate seems to end up with invalid stack values/pointers inside the function map::generate itself. Looks pretty complicated.

Segfault:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000695ec8 in map::generate (this=Cannot access memory at address 0x7fffff7b4168
) at mapgen.cpp:60

Backtrace:
#0 map::loadn (this=0x7fffff9a9070, g=0x7ffff7ed0010, worldx=294, worldy=349,

gridx=10, gridy=0) at map.cpp:1723

#1 0x000000000067b04d in map::load (this=0x7fffff9a9070, g=0x7ffff7ed0010,

wx=294, wy=349) at map.cpp:1454

#2 0x0000000000532988 in game::vertical_move (this=0x7ffff7ed0010, movez=-1,

force=true) at game.cpp:5384

#3 0x0000000000a090d8 in trapfunc::ledge (this=0x7fffffaef410,

g=0x7ffff7ed0010, x=62, y=67) at trapfunc.cpp:493

#4 0x0000000000533b07 in game::vertical_move (this=0x7ffff7ed0010, movez=-1,

force=true) at game.cpp:5526

#5 0x0000000000a090d8 in trapfunc::ledge (this=0x7fffffd0b9d0,

g=0x7ffff7ed0010, x=62, y=67) at trapfunc.cpp:493

#6 0x0000000000533b07 in game::vertical_move (this=0x7ffff7ed0010, movez=-1,

force=true) at game.cpp:5526

#7 0x0000000000a090d8 in trapfunc::ledge (this=0x7ffffff28120,

g=0x7ffff7ed0010, x=62, y=67) at trapfunc.cpp:493

#8 0x00000000005317b7 in game::plmove (this=0x7ffff7ed0010, x=62, y=67)

at game.cpp:5242

#9 0x00000000005150fb in game::get_input (this=0x7ffff7ed0010)

at game.cpp:1125

#10 0x0000000000512a1e in game::do_turn (this=0x7ffff7ed0010) at game.cpp:643
#11 0x000000000065c21e in main (argc=1, argv=0x7fffffffe738) at main.cpp:37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant