fhourstones88 icon indicating copy to clipboard operation
fhourstones88 copied to clipboard

Sometimes program stops with failing assertion, not reliably reproducable

Open andirayo opened this issue 9 years ago • 1 comments

I started a machine with 16G ram today in order to test the compile-parameters you describe in the README file:

g++ -std=c++11 -O3 -Wextra -Wall -DWIDTH=8 -DHEIGHT=8 -DBOOKWORK=24 -DLOCKSIZE=42 -DTRANSIZE=1040187403 C4.cpp Search.cpp Window.cpp -o C488

For a few situations, the solver stops with the following failing assertion:

Search.cpp:27: Trans::Trans(): Assertion `ht = (Hashentry *)calloc(1040187403, sizeof(Hashentry))' failed.

I played around with the compile-parameters, but always ran into different failing assertions. fyi - the machine's meminfo:

# cat /proc/meminfo
MemTotal:       15407772 kB
MemFree:        13896160 kB
MemAvailable:   15018964 kB
Buffers:           94600 kB

andirayo avatar Jan 16 '16 05:01 andirayo

hi Andreas,

I started a machine with 16G ram today in order to test the compile-parameters you describe in the README file:

g++ -std=c++11 -O3 -Wextra -Wall -DWIDTH=8 -DHEIGHT=8 -DBOOKWORK=24 -DLOCKSIZE=42 -DTRANSIZE=1040187403 C4.cpp Search.cpp Window.cpp -o C488

For a few situations, the solver stops with the following failing assertion:

Search.cpp:27: Trans::Trans(): Assertion `ht = (Hashentry *)calloc(1040187403, sizeof(Hashentry))' failed.

Can you print out the sizeof(Hashentry) and check whether it's 12 or 16 bytes? The latter would explain the allocation failure...

regards, -John

tromp avatar Jan 16 '16 17:01 tromp