0

我正在尝试运行我的程序以检查程序中的内存泄漏,但是每当我启动程序时,我都会得到

==3476== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==3476== Bad permissions for mapped region at address 0xCFE3FF8
==3476==    at 0x005212e1: get_document_root (mongoose.c:1557)
==3476==


==3476== HEAP SUMMARY:
==3476== in use at exit: 2,134,492 bytes in 3,948 blocks
==3476== total heap usage: 5,473 allocs, 1,525 frees, 2,863,520 bytes allocated
==3476==

在完整的 valgrind 日志中,您在内存上没有无效的读取或写入。我无法理解为什么它会崩溃。

4

1 回答 1

0

由于自定义 404 页面而崩溃,并且该文件不存在。所以它无限地寻找那个文件并做缓冲区溢出。

于 2011-09-26T06:04:49.323 回答