Printf error "address pointing at code space is taken" [closed]
Does anyone know what this error means?
address pointing at code space is taken.
Here is the code that causes it:
if (l->resultGIL != 0)
{
printf("FILENAME_RESOLVE_ ERR开发者_开发问答OR #:%d -Error occured. ", l->resultGIL);
exit(EXIT_FAILURE);
}
Here is the definition of l
:
struct local_stack_def{
short fpointer, error, resultFD, resultFM, resultUGI, resultGIL, resultFR, ret_val_length;
};
struct local_stack_def l_temp;
struct local_stack_def *l = &l_temp;
Same thing as your post here - the error is most likely not due to this call to printf, but is somewhere else that you have overwritten the bounds of some memory.
You don't say what system this is on (never seen that error before) but try compiling with all the warning levels on and look for memory errors elsewhere
精彩评论