0

I am trying to run my program to check memory leaks in my program but whenever I start my program I am getting

==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==

and in full valgrind log thee is no invalid read or write on the memory. I am not able to understand why it is crashing.

Vivek Goel
  • 22,942
  • 29
  • 114
  • 186

1 Answers1

0

It was crashing because of custom 404 page and that file was not there. So it was infinitely looking for that file and doing buffer overflow.

Vivek Goel
  • 22,942
  • 29
  • 114
  • 186