From kde-bugs-dist Mon Aug 06 14:10:33 2012 From: =?UTF-8?Q?Petr=20B=C4=9Bhan=20?= Date: Mon, 06 Aug 2012 14:10:33 +0000 To: kde-bugs-dist Subject: [Bug 283479] cannot start ktimetracker Message-Id: X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=134426246405321 https://bugs.kde.org/show_bug.cgi?id=3D283479 Petr B=C4=9Bhan changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |huancz@gmail.com --- Comment #36 from Petr B=C4=9Bhan --- I have been plagued for a few months by this problem, or at least a problem with the same symptoms: ktimetracker pops modal dialog saying "could not cr= eate ktimetrackerpart" and then opens empty window. For me, it's 100% correlated with compiler used. I first noticed it after upgrading to gcc-4.7-alpha, and it's been that way ever since. If I rebuild my system (gentoo x86_64) using gcc-4.7.anything, ktt is broken. If I then switch compiler to 4.6.3 and reb= uild ktimetracker package, it works again (rest of system can stay built with 4.= 7). Here is my attempt to poke at it a bit with gdb, but without any real QT knowledge, I have no idea what to try next: KTimeTracker compiled with gcc-4.7.2_pre9999 (snapshot of gcc-4_7-branch fr= om Sat Aug 4 00:17:53, but been the same since 4.7.0 release): (gdb) frame #0 qobject_cast (object=3D0x5b5360) at /usr/include/qt4/QtCore/qobject.h:380 380 return static_cast(reinterpret_cast(object)->staticMetaObject.cast(object)); (gdb) bt #0 qobject_cast (object=3D0x5b5360) at /usr/include/qt4/QtCore/qobject.h:380 #1 0x000000000043eff6 in KPluginFactory::create (this=3D0x523310, parent=3D0x652b00, args=3D...) at /usr/include/kpluginfac= tory.h:509 #2 0x000000000043da02 in MainWindow::MainWindow (this=3D0x652b00, icsfile= =3D..., __in_chrg=3D, __vtt_parm=3D) at /usr/src/debug/kde-base/ktimetracker-4.9.0/ktimetracker-4.9.0/ktimetracker/= mainwindow.cpp:68 #3 0x0000000000422adc in main (argc=3D1, argv=3D0x7fffffffd868) at /usr/src/debug/kde-base/ktimetracker-4.9.0/ktimetracker-4.9.0/ktimetracker/= main.cpp:128 (gdb) print reinterpret_cast(object) $15 =3D (ktimetrackerpart *) 0x5b5360 (gdb) print reinterpret_cast(object)->staticMetaObject.cast(object) $16 =3D (QObject *) 0x0 <=3D=3D=3D=3D=3D=3D This 0x0 is then returned and c= auses message box to appear. Similar session when compiled with 4.6.3: (gdb) bt #0 qobject_cast (object=3D0x555000) at /usr/include/qt4/QtCore/qobject.h:380 #1 0x000000000043f3b8 in KPluginFactory::create (this=3D0x54c910, parent=3D0x671d20, args=3D...) at /usr/include/kpluginfac= tory.h:509 #2 0x000000000043de27 in MainWindow::MainWindow (this=3D0x671d20, icsfile= =3D..., __in_chrg=3D, __vtt_parm=3D) at /usr/src/debug/kde-base/ktimetracker-4.9.0/ktimetracker-4.9.0/ktimetracker/= mainwindow.cpp:68 #3 0x00000000004230ce in main (argc=3D1, argv=3D0x7fffffffd868) at /usr/src/debug/kde-base/ktimetracker-4.9.0/ktimetracker-4.9.0/ktimetracker/= main.cpp:128 (gdb) print reinterpret_cast(object) $17 =3D (ktimetrackerpart *) 0x555000 (gdb) print reinterpret_cast(object)->staticMetaObject.cast(object) $18 =3D (QObject *) 0x555000 <=3D=3D=3D=3D=3D=3D now it works CXXFLAGS=3D-O0 -ggdb -Bsymbolic-function mentioned earlier is not enabled --=20 You are receiving this mail because: You are watching all bug changes.=