mnm-sys / tezdhar

A fast and unbeatable chess engine written in C
GNU General Public License v3.0
3 stars 1 forks source link

malloc: nano zone abandoned due to inability to preallocate reserved vm space #49

Open mnm-sys opened 1 year ago

mnm-sys commented 1 year ago

Some compiler runtime instrumentation flag is causing the following message during runtime:

tezdhar(4250,0x11967e600) malloc: nano zone abandoned due to inability to preallocate reserved vm space.

How to deal with it?

mnm-sys commented 1 year ago
√ tezdhar % file ./src/tezdhar
./src/tezdhar: Mach-O 64-bit executable x86_64

Compiled with:

x86_64-w64-mingw32-gcc -fdata-sections -fdelete-null-pointer-checks -fexceptions -ffunction-sections -fno-common -fno-omit-frame-pointer -fPIE -fsanitize-recover=address -fsanitize-address-use-after-scope -fsanitize-undefined-trap-on-error -fstack-protector-all -fstack-usage -pie -Wall -Walloca -Wattributes -Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-qual -Wchar-subscripts -Wconversion -Wcpp -Wdangling-else -Wdate-time -Wdeclaration-after-statement -Wdeprecated -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wdouble-promotion -Wendif-labels -Werror=implicit -Wextra -Wfloat-equal -Wformat-extra-args -Wformat-zero-length -Wformat=2 -Wignored-qualifiers -Wincompatible-pointer-types -Winit-self -Winline -Wint-conversion -Wint-in-bool-context -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmemset-transposed-args -Wmissing-declarations -Wmissing-include-dirs -Wmissing-prototypes -Wmultichar -Wnarrowing -Wnested-externs -Wnull-dereference -Wodr -Wold-style-definition -Woverflow -Wpacked -Wparentheses -Wpedantic -Wpointer-to-int-cast -Wpragmas -Wredundant-decls -Wreturn-type -Wsequence-point -Wshadow -Wshift-count-negative -Wshift-count-overflow -Wsizeof-array-argument -Wstack-protector -Wstrict-overflow=5 -Wstrict-prototypes -Wswitch-bool -Wswitch-default -Wswitch -Wundef -Wuninitialized -Wunknown-pragmas -Wunused-const-variable -Wunused-macros -Wvarargs -Wvla -Wwrite-strings -g3 -DDEBUG -mpopcnt -o tezdhar.exe tezdhar-bishop.o tezdhar-bitboard.o tezdhar-board.o tezdhar-chess.o tezdhar-king.o tezdhar-knight.o tezdhar-parse.o tezdhar-pawn.o tezdhar-rook.o tezdhar-ui.o

mnm-sys commented 1 year ago

Need to further investigate -fsanitize-undefined-trap-on-error flag hopefully.