ok, by default configure works. but sanitizers is not.
then if you want build your server need run this commands:
make clean
./configure --enable-debug=gdb
make
if you have issues with crash dump creation,
run map server from gdb like this:
gdb ./map-server
and run command
run
inside gdb
if you using screen you can reconnect after and see how your server crashed.
after crash in gdb run
bt
or
bt all