开发者

Printf error "address pointing at code space is taken" [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜