Review Request 128021: [libtaskmanager] Prevent from dereferencing dangling pointer
Anthony Fieroni
bvbfan at abv.bg
Thu May 26 14:37:27 UTC 2016
> On Май 26, 2016, 4:30 след обяд, David Edmundson wrote:
> > Do you have a backtrace? Mostly so I can see if we can close any bug reports.
> >
> > A TaskManager.Backend objects is owned by the taskItem - so the lifespan of the TaskItem will *always* outlive the Backend - so we shouldn't need a smart pointer.
> > The ToolTip is more questionable, it has the same lifespan as the backend, so it's a bit confusing as to which order they get deleted - so there is scope for a problem.
> >
> > I'll wait for Eike, but +1 from me.
I don't have backtrace, cause gdb not produce it, i think stack is overheaded and it can't be reverted.
- Anthony
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128021/#review95831
-----------------------------------------------------------
On Май 26, 2016, 4:04 след обяд, Anthony Fieroni wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128021/
> -----------------------------------------------------------
>
> (Updated Май 26, 2016, 4:04 след обяд)
>
>
> Review request for Plasma and Eike Hein.
>
>
> Repository: plasma-desktop
>
>
> Description
> -------
>
> This pointers are *shared* between plasma-framework and libtaskamanger
>
>
> Diffs
> -----
>
> applets/taskmanager/plugin/backend.h 1d1a7a1
>
> Diff: https://git.reviewboard.kde.org/r/128021/diff/
>
>
> Testing
> -------
>
> I experience rare and strage crashes in plasmashell without backtrace when tooltip is dismissed in taskmanager. I guess stack is *smashed* cause dereferencing invalid pointer.
>
>
> Thanks,
>
> Anthony Fieroni
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160526/96814175/attachment.html>
More information about the Plasma-devel
mailing list