[Kde-pim] Using valgrind on Akonadi agents

David Jarvie djarvie at kde.org
Mon Aug 15 11:12:56 BST 2011


On Sat, August 13, 2011 5:16 pm, Guy Maurel wrote:
> 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

As I said in an email on Friday, the problem was a bug in the server which
prevented this working when the resource was run by
akonadi_agent_launcher. Volker has now fixed this.

-- 
David Jarvie.
KDE developer.
KAlarm author - http://www.astrojar.org.uk/kalarm

_______________________________________________
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