[Kde-pim] Review Request: Using gdb to debug akonadi_agent_launcher is not always possible
Milian Wolff
mail at milianw.de
Mon Nov 7 17:42:05 GMT 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103064/#review7996
-----------------------------------------------------------
libs/xdgbasedirs.cpp
<http://git.reviewboard.kde.org/r/103064/#comment6868>
this will leak the process
- Milian Wolff
On Nov. 7, 2011, 5:33 p.m., Guy Maurel wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103064/
> -----------------------------------------------------------
>
> (Updated Nov. 7, 2011, 5:33 p.m.)
>
>
> Review request for Akonadi.
>
>
> Description
> -------
>
> Using gdb to debug
> akonadi_agent_launcher akonadi_maildir_resource akonadi_maildir_resource_0
> I use the dgb command
> set detach-on-fork off
>
> This is not possible because the process will been killed
> QProcess: Destroyed while process is still running.
> Program terminated with signal SIGKILL, Killed.
> The program no longer exists.
>
> Looking at
> http://sector.ynet.sk/qt4-tutorial/how-to-read-qt-documentation-basic-concepts.html
>
> we can found the explanation under
> Memory allocation on stack vs. heap
> ...
> Solution to this is to create variable on heap.
>
> I propose the same here to be able to debug the akonadi_agent_launcher, changing
> QProcess proc;
> to
> QProcess *proc = new QProcess();
>
>
> Diffs
> -----
>
> libs/xdgbasedirs.cpp 6307b70
>
> Diff: http://git.reviewboard.kde.org/r/103064/diff/diff
>
>
> Testing
> -------
>
>
> Thanks,
>
> Guy Maurel
>
>
_______________________________________________
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