开发者

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

开发者 https://www.devze.com 2023-03-17 08:35 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
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

精彩评论

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

关注公众号