我正在开发一个iOS应用程序,当我在我的设备上运行时,我收到了很多以下警告:
MyApp(2138,0x104338000)malloc:***无法保护(0x3)区域为后置保护页面0x104950000
他们不会停止执行,但看起来很可怕,可能与我的应用程序偶尔崩溃有关.我用谷歌搜索,只在整个网络上找到两个页面,没有任何帮助.我想知道这里是否有人知道如何解决这个问题?
编辑:这是我使用的产品方案:

我有这个老问题,但在线没有回答对我有用,代码是:
#include "stdio.h"
#include "omp.h"
main ()
{
omp_set_num_threads(4); //initialise thread count for 4 core cpu
int j;
printf ("%d\n", omp_get_max_threads());
printf ("%d\n", omp_get_num_threads());
#pragma omp parallel for
for (int j=0; j<10; ++j)
{
printf ("%d\n", omp_get_num_threads());
int threadNum;
threadNum = omp_get_thread_num();
printf("This is thread %d\n", threadNum);
}
}
return 0;
}
Run Code Online (Sandbox Code Playgroud)
在G ++ 4.4.5,linux 2.6.32-5-amd64中,它产生:
4
1
1
This is thread 0
1
This is thread 0
1
This is thread 0
1
This is thread 0
1
This …Run Code Online (Sandbox Code Playgroud)