[RP-PPPoE] RP-PPPoE Memory Leak?

Daniel Le daniel.le at exfo.com
Thu Nov 13 11:06:40 EST 2014


Hello,

Has anyone come across a memory leak in the following scenarios? If so, could you share what you've done to address the issue?

- Bring up a successful PPPoE connection then tear it down.
- Force a PPPoE connection setup failure with incorrect authentication credentials.

I ran valgrind and found memory leak in both cases.

After I tried to fix what valgrind pointed out (example output of valgrind results below), the "top" program or another tool I have to check system memory usage still indicates memory leak.

Passed PPP authentication
==27691== Warning: noted but unhandled ioctl 0x89f0 with no size/direction hints
==27691==    This could cause spurious value errors to appear.
==27691==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==27691== 
==27691== HEAP SUMMARY:
==27691==     in use at exit: 0 bytes in 0 blocks
==27691==   total heap usage: 114 allocs, 114 frees, 65,740 bytes allocated
==27691== 
==27691== All heap blocks were freed -- no leaks are possible
==27691== 
==27691== For counts of detected and suppressed errors, rerun with: -v
==27691== ERROR SUMMARY: 7 errors from 5 contexts (suppressed: 16 from 8)

Failed PPP authentication
==27427== HEAP SUMMARY:
==27427==     in use at exit: 0 bytes in 0 blocks
==27427==   total heap usage: 90 allocs, 90 frees, 46,501 bytes allocated
==27427== 
==27427== All heap blocks were freed -- no leaks are possible
==27427== 
==27427== For counts of detected and suppressed errors, rerun with: -v
==27427== ERROR SUMMARY: 7 errors from 5 contexts (suppressed: 16 from 8)

Thanks,
Daniel



More information about the RP-PPPoE mailing list