[Kde-pim] Using valgrind on Akonadi agents

Guy Maurel guy-kde at maurel.de
Sat Aug 13 17:16:49 BST 2011


Hello!

On Wednesday, August 03, 2011 10:05:34 PM David Jarvie wrote:
> I tried to run an Akonadi agent under valgrind, following the instructions at http://techbase.kde.org/Projects/PIM/Akonadi/Development_Tools#Running_an_agent_in_valgrind. But the agent just ran normally - no log file output, and it ran at normal speed. I set the following environment variables in a terminal window, and then ran 'akonadictl start' in that terminal:
> 
> AKONADI_VALGRIND=akonadi_kalarm_resource
> AKONADI_VALGRIND_OPTIONS='--leak-check=full --log-file=/tmp/valg.log'
> 
> Yes, I have valgrind installed. Any ideas?

I made the same experience to debug an agent. Look at:
http://techbase.kde.org/Projects/PIM/Akonadi/Development_Tools#Attaching_gdb_at_startup
I think the problem is that the agent is started at logging time. Have a look a few lines
below, where I propose:
$ akonadictl stop
$ akonadi_control
-- 
guy
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list