Bug 1110980 - Qt Creator debugging issue after GDB update
Summary: Qt Creator debugging issue after GDB update
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qt-creator
Version: 20
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Sandro Mani
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1111908
TreeView+ depends on / blocked
 
Reported: 2014-06-19 03:34 UTC by Chris Derichs
Modified: 2014-07-05 14:52 UTC (History)
12 users (show)

Fixed In Version: qt-creator-3.1.2-1.fc20
Clone Of:
: 1111908 (view as bug list)
Environment:
Last Closed: 2014-07-05 14:52:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot of it working (232.09 KB, image/png)
2014-06-19 03:35 UTC, Chris Derichs
no flags Details
Screenshot of it broken (224.52 KB, image/png)
2014-06-19 03:35 UTC, Chris Derichs
no flags Details

Description Chris Derichs 2014-06-19 03:34:35 UTC
Description of problem:
QT Creator loses the ability to inspect certain objects in the locals window after GDB update. Also, if qt-debuginfo is installed everything debugging related becomes very slow.

Version-Release number of selected component (if applicable):
This combo is broken:
gdb-7.7.1-13.fc20
qt-devel-4.8.6-9.fc20
qt-creator-3.1.1-1.fc20

This combo worked:
gdb-7.6.50.20130731-16.fc20
qt-devel-4.8.6-9.fc20
qt-creator-3.1.1-1.fc20


How reproducible:
always


Steps to Reproduce:
1. Install gdb, qt-creator, qt-devel
2. New Qt Widgets Application, accept all the defaults.
3. In the .h include:
#include <QMap>
#include <QString>
4. In the mainwindow.cpp
after setupUi()
    QMap<QString, QString> test;
    test["Hello"] = "hey";
    test["World"] = "there";
5. Put a breakpoint on test["World"] = "there";
6. Start debugging (if you have qt-debuginfo installed expect it to take forever to hit that breakpoint)

Actual results:
In the locals window:
| test <not accssible> QMap<QString, QString>

Expected results:
In the locals window:
> test < 1 items> QMap<QString, QString>

Additional info:
Having the qt-debuginfo installed really slows down everything.
Im guessing I should be filing this against some qt package but since downgrading gdb fixed all my debugging issues I thought I'd start here.

Comment 1 Chris Derichs 2014-06-19 03:35:27 UTC
Created attachment 910230 [details]
Screenshot of it working

Comment 2 Chris Derichs 2014-06-19 03:35:58 UTC
Created attachment 910232 [details]
Screenshot of it broken

Comment 3 Jan Kratochvil 2014-06-19 11:34:03 UTC
The GDB slowness is tracked as: Bug 1096131
This should not affect any GDB functionality, though.

Comment 4 Jan Kratochvil 2014-06-21 21:25:12 UTC
Sorry for breaking inter-Component compatibility in stable Fedora release.
qt-creator needs to backport this fix:
https://github.com/qtproject/qt-creator/commit/e3979fe09d7dd3ef1546e97d22d76178c8e38303
  Debugger: Make dumper work with GDB 7.7
  GDB 7.7 changed behavior e.g. for the names of anonymous fields,
  we need to adjust dumpers and some tests.

Comment 5 Jan Kratochvil 2014-06-21 22:05:11 UTC
GDB change ("regression") since:

echo 'struct s { union { int a; long b; }; } v;'|gcc -o anon.o -Wall -g -c -x c -;! ../gdb -data-directory ../data-directory -batch ./anon.o -ex "python print(gdb.lookup_global_symbol('v').value().type.fields()[0].name)"|grep -w None

b5b08fb4ffa53ec088f8ad865bee0fd6edb2906f is the first bad commit
commit b5b08fb4ffa53ec088f8ad865bee0fd6edb2906f
Author: Siva Chandra <sivachandra>
Date:   Fri Dec 27 12:20:59 2013 -0800
    Use bitpos and type to lookup a gdb.Field object when its name is 'None'.
        PR python/15464
        PR python/16113

Comment 6 Sandro Mani 2014-06-22 00:14:35 UTC
Fixed package building: http://koji.fedoraproject.org/koji/taskinfo?taskID=7065018

Comment 7 Fedora Update System 2014-06-22 16:10:59 UTC
qt-creator-3.1.1-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/qt-creator-3.1.1-3.fc20

Comment 8 Fedora Update System 2014-06-22 23:56:08 UTC
Package qt-creator-3.1.1-3.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing qt-creator-3.1.1-3.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7622/qt-creator-3.1.1-3.fc20
then log in and leave karma (feedback).

Comment 9 Chris Derichs 2014-06-24 02:40:48 UTC
This update fixes the issue for me using:

Name        : gdb
Arch        : x86_64
Version     : 7.7.1
Release     : 13.fc20

and 

Name        : qt-creator
Arch        : x86_64
Version     : 3.1.1
Release     : 3.fc20

Thanks!

Comment 10 Fedora Update System 2014-06-26 08:40:23 UTC
qt-creator-3.1.2-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/qt-creator-3.1.2-1.fc20

Comment 11 Fedora Update System 2014-07-05 14:52:15 UTC
qt-creator-3.1.2-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.