Valgrind mmap错误22

时间:2017-02-08 22:17:04

标签: c valgrind mmap

我正在尝试在Valgrind上运行程序。但是我收到了这个错误:

valgrind: mmap(0x67d000, 1978638336) failed in UME with error 22 (Invalid argument).
valgrind: this can be caused by executables with very large text, data or bss segments.

我不确定问题是什么。我知道我有足够的内存(我在500 GB以上的内存服务器上运行)。有没有办法使这项工作?

编辑:这是我的程序和机器详细信息:

所以我的机器(它是一个用于研究目的的服务器)有这么多RAM:

$ free -mt
         total        used        free      shared  buff/cache   available
Mem:         515995        8750      162704          29      344540      506015
Swap:        524277         762      523515
Total:      1040273        9513      686219

程序(名为Tardis)大小信息:

$ size tardis
   text    data     bss     dec     hex filename
509180    2920 6273605188      6274117288      175f76ea8       tardis

0 个答案:

没有答案