[Interest] Debugging helpers in Ubuntu

Etienne Sandré-Chardonnal etienne.sandre at m4x.org
Mon Jan 23 14:53:39 CET 2017


Errh... Isn't it something we could expect from a debugger to work even
with bad code?
My problem is *not* that gdb is aborting with a "segmentation fault"
message.
My problem is, QtCreator/GDB opening "segmentation fault" dialogs that
stack up indefinitely until the desktop window manager freezes.



2017-01-23 13:53 GMT+01:00 Viktor Engelmann <viktor.engelmann at qt.io>:

> 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>:
>
>> 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 listInterest at qt-project.orghttp://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 <+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 http://lists.qt-project.org/ma
>> ilman/listinfo/interest
>
> --
>
> Viktor Engelmann
> Software Engineer
>
> The Qt Company GmbH
> Rudower Chaussee 13
> D-12489 Berlin
> Viktor.Engelmann at qt.io+49 151 26784521 <+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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170123/bf68af76/attachment.html>


More information about the Interest mailing list