I should dmalloc my brain some day
Friday, July 16th, 2004Spent a big part of the last 2 days trying to implement dmalloc nicely in SQuaLe. Debugging memory allocations in a daemon process is a tough thing.
The process is supposed to run forever so you have to mark the heap status at regular point to be able to list unfreed pointers compared to the marker you put earlier. This way i discovered some nice memory allocation that never get freed from the Oracle client libraries
and some g_malloc0 that i should investigate some more.
Well at the end of the day i still haven’t found a valid memory leak in SQuaLe’s code and i’m really wondering what’s happening with the weird memory behaviour that i can observe on some servers. I upgraded them to glib 2.4 just in case there might be some fixes compared to 2.2 and we’ll see what happens on monday.
dmalloc is quite hard to implement and use for a daemon but that’s the only efficient way i found to track memory leaks, so i recommend it warmly !
Yesterday we bought Christian’s Ferarri, i hope he will like it when he arrives in the middle of august. Getting a norvegian guy to work in your company has a high price to pay… To prevent others being jealous we also bought a plane for the technical team, dunno if they will be able to reach the moon with that one, but first we have to buy some furnitures to customize it with Fluendo’s graphical identity (paintings, etc…)
Time to order some pizzas and drive back home for the week end !