Memory leak in tinydns



  • Trying to nail down a memory leak in 2.2.3.  It's a HA setup and the master (only) is losing ~1MB every few seconds.  It's got 4G RAM and 8G swap, so it takes a few hours to crash, plenty of time to try and troubleshoot, but I'm not getting anywhere yet.  There's no errors in the logs and running top none of the processes show increasing RAM usage.  In fact all the numbers except for Free stay very steady across the board, I just see the Free number slowly ticking down further, and further…

    Other interesting bits:

    In the web UI, the CPU usage under the Dashboard never updates, just shows the barber-pole animation and "(Updating in ten seconds)"

    Top does show one zombie process, though it doesn't show up in top's process list, (just shows as "<defunct>" in ps output).  The PID keeps changing though, so I assume this is the cause of the memory leaks, I just need to figure out where it's coming from.

    Anybody else run into this...?</defunct>


  • Galactic Empire Netgate

    Sounds like bad install or even bad RAM. No issues like that on 2.2.3.



  • Do you have any packages installed?



  • RAM should be okay, it's a box that was running an older version of pfSense reliably as well as being a DL380, so we can see easily if ECC fails.  (Yeah, I know, still not 100% certainty there.  :)

    Just have tinyDNS installed at the moment, was getting ready to add others until we ran across this.



  • Mm-kay, the parent process of the zombies is always "supervise axfrdns" so this is a tinyDNS issue.  I've got a thread going on that from the other day so I'm going to pop back over to that one so there's some context.


  • Banned

    @Itwerx:

    Mm-kay, the parent process of the zombies is always "supervise axfrdns" so this is a tinyDNS issue.  context.

    You might want to fix the thread's subject. And good luck getting memleaks fixed in the DJB's zombieware.