[Kde-pim] Using valgrind on Akonadi agents

David Jarvie djarvie at kde.org
Fri Aug 12 22:40:18 BST 2011


On Friday 12 August 2011 21:36:01 Thomas McGuire wrote:
> Hi,
> 
> 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 don't know why it is not working for you, but it should be pretty easy to 
> debug. Either use GDB to debug the akonadi_control process at the point at 
> which it starts your agent, or add some debug output. The relevant function is 
> ProcessControl::start() in akonadi/server/control.

Volker has just fixed a bug in the server which prevented this working when the resource was run by akonadi_agent_launcher, which was the case for the KAlarm resources. It works now for me.

Cheers,
David.
-- 
David Jarvie.
KDE developer.
KAlarm author -- http://www.astrojar.org.uk/kalarm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20110812/3ac7e845/attachment.sig>
-------------- next part --------------
_______________________________________________
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