[Interest] Debugging helpers in Ubuntu

Viktor Engelmann viktor.engelmann at qt.io
Mon Jan 23 13:53:14 CET 2017


Hi Etienne

then I'd first suggest you look for some dangling pointer problem inside
your code.
I'd run it in valgrind to see if it can tell you more (Qt Creator
integrates valgrind via the "Analyze" menu)

regards


Am 23.01.2017 um 13:47 schrieb Etienne Sandré-Chardonnal:
> Hi Viktor,
>
> It happens in my code
>
> Etienne
>
> 2017-01-23 11:29 GMT+01:00 Viktor Engelmann <viktor.engelmann at qt.io
> <mailto:viktor.engelmann at qt.io>>:
>
>     If it has to do with certain variables, then that only makes sense
>     if the "locals and expressions" panel wants to display an object
>     that has been deleted already, so there would be a dangling
>     pointer. Does that happen in your code or Qt code? If Qt, can you
>     tell which methods?
>
>     regards
>
>     Viktor
>
>
>     Am 23.01.2017 um 10:56 schrieb Etienne Sandré-Chardonnal:
>>     Hi,
>>
>>     I have a fresh & clean Ubuntu 16.04 install which is up to date.
>>
>>     With QtCreator, if I enable the debugging helpers and stop on
>>     some breakpoints, I get a bunch of "Segmentation fault" dialog
>>     boxes opening until the desktop totally freezes. The only way I
>>     found to recover was switching to legacy text mode console and
>>     kill the desktop...
>>
>>     This does not happen at every place in the debugged code, it
>>     seems some specific local variables do this.
>>
>>     Do you have any idea how to fix this? This is super annoying... I
>>     don't even know if this comes from Qt or GDB.
>>
>>     Thanks!
>>
>>     Etienne
>>
>>
>>     _______________________________________________
>>     Interest mailing list
>>     Interest at qt-project.org <mailto:Interest at qt-project.org>
>>     http://lists.qt-project.org/mailman/listinfo/interest
>>     <http://lists.qt-project.org/mailman/listinfo/interest>
>
>     -- 
>
>     Viktor Engelmann
>     Software Engineer
>
>     The Qt Company GmbH
>     Rudower Chaussee 13
>     D-12489 Berlin
>
>     Viktor.Engelmann at qt.io <mailto:Viktor.Engelmann at qt.io>
>     +49 151 26784521 <tel:+49%201512%206784521>
>
>     http://qt.io
>     Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho
>     Sitz der Gesellschaft: Berlin
>     Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
>
>     _______________________________________________ Interest mailing
>     list Interest at qt-project.org <mailto:Interest at qt-project.org>
>     http://lists.qt-project.org/mailman/listinfo/interest
>     <http://lists.qt-project.org/mailman/listinfo/interest> 
>
-- 

Viktor Engelmann
Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin

Viktor.Engelmann at qt.io
+49 151 26784521

http://qt.io
Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin
Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170123/7d7f26a3/attachment.html>


More information about the Interest mailing list