我从Libckpt Home Page获得了libckpt(俱乐部)。为了能够在Ubuntu 16.04上进行编译,我必须进行一些更改。以下是差异
diff libckpt/coalesce.c libckptmodifiedfor1604/coalesce.c
357c357
< exit();
---
> exit(-1);
diff libckpt/configure.c libckptmodifiedfor1604/configure.c
23c23
< fprintf(f, "#define POINTERSIZE %d\n", sizeof(caddr_t));
---
> fprintf(f, "#define POINTERSIZE %d\n", sizeof(void *));
diff libckpt/libckpt.h libckptmodifiedfor1604/libckpt.h
9c9
< #include <siginfo.h>
---
> //#include <asm/siginfo.h>
Only in libckptmodifiedfor1604/: .plan
diff libckpt/system.c libckptmodifiedfor1604/system.c
9a10
> #include <stdlib.h>
这些更改后,我可以对其进行编译。但是,当我创建示例并运行 mult 可执行文件时,我得到以下信息:
Error on free: memory chunk 0x9a5038 already freed
Segmentation fault (core dumped)
谁能告诉我我可能做错了什么?