MT-CTF / capturetheflag

Capture the Flag game using the Minetest Voxel Engine
https://ctf.rubenwardy.com
83 stars 90 forks source link

Segfault when placing blue flag #51

Closed shellkr closed 7 years ago

shellkr commented 8 years ago

Minetest crashes when placement of blue flag has the wrong node...

Read the full crash log

...
...
2016-08-09 22:54:41: INFO[Main]: Connecting to server at 127.0.0.1:51699
2016-08-09 22:54:41: INFO[Main]: Client packetcounter (20):
2016-08-09 22:54:41: INFO[Main]: Client::peerAdded(): peer->id=1
2016-08-09 22:54:41: VERBOSE[Server]: ServerMap: SQLite3 database opened.
[CaptureTheFlag] (flag) blue has wrong node at flag position, ignore, correcting...
[1]    32683 segmentation fault (core dumped)  minetest --verbose > ctf_pvp.log 2>&1

If I try to restart the world a couple of times it will eventually start. It also seems to only happen on a newly created world. A world that has existed a while will work.

rubenwardy commented 8 years ago

The only thing in that function is a get node and a set node. The segfault is probably elsewhere - a gdb traceback would be useful

shellkr commented 8 years ago

Okay, here is the gdb trace and another one..

...and a short video of it crashing

rubenwardy commented 8 years ago

Those arent traces. Use bt full to make a backtrace. You should use a debug build of minetest (-DCMAKE_BUILD_TYPE=debug I believe)

shellkr commented 8 years ago

I did, actually... but am not running a with debug flags so will try to do that.

shellkr commented 8 years ago

hmm.. not sure what I am doing wrong. I compiled a debug version of Minetest from git and then run it through gdb. It gave pretty much the same thing when I use "valley" as world. If I instead use v7 I get this.

rubenwardy commented 8 years ago

If you remove the map generation limit setting, do you still get this problem?

rubenwardy commented 7 years ago

can't reproduce