what's this error: allocatestack.c:384: advise_stack_range: Assertion `freesize < size' failed.

mw mingwu at gmail.com
Tue Aug 23 18:50:14 UTC 2022


Hi,

I got an error message when my program exits (the main 
functionality is done, I guess the error happened during D 
runtime's cleanup)

: allocatestack.c:384: advise_stack_range: Assertion `freesize < 
size' failed.

I suspect it somehow related to I pass some (object) pointers to 
foreign languages containers (C and Rust). But my main program 
seems behave correctly (I keep those pointers on the D side to 
prevent them from being GC-ed), this error only happens when the 
program exits.

Anyone can give me some hint where I should look at? (and where 
is the allocatestack.c?)

Thanks.



More information about the Digitalmars-d-learn mailing list