Bug#431322: libqt4-gui: Segfaults in some cases when showing tooltips
Package: libqt4-gui
Version: 4.3.0-2
Severity: normal
Using Qt 4.3.0-2, run lastfm 1.3.0.58. When a song is playing, hover
the mouse over a link in the main window (e.g. song title, artist,
album). The program will segfault when it attempts to show a tooltip.
This was not a problem in 4.3.0-1.
I can work around it by changing lastfm's draglabel.cpp:563 from this:
QToolTip::showText( helpEvent->globalPos(),
m_items[index].m_tooltip );
to this:
QToolTip::showText( helpEvent->globalPos(),
m_items[index].m_tooltip, this );
So it looks like showText now crashes when QWidget* w = 0. I attached
a backtrace. The reference to qtooltip.cpp:370 points to a line added
by 00_0178-transparency-window-types.
Cheers,
John
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.20-3.amd64 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libqt4-gui depends on:
ii fontconfig 2.4.2-1.2 generic font configuration library
ii libaudio2 1.9-2 The Network Audio System (NAS). (s
ii libc6 2.5-11 GNU C Library: Shared libraries
ii libfontconfig1 2.4.2-1.2 generic font configuration library
ii libfreetype6 2.2.1-6 FreeType 2 font engine, shared lib
ii libgcc1 1:4.2-20070627-1 GCC support library
ii libgl1-mesa-glx [libgl1 6.5.2-5 A free implementation of the OpenG
ii libglib2.0-0 2.12.12-1 The GLib library of C routines
ii libglu1-mesa [libglu1] 6.5.2-5 The OpenGL utility library (GLU)
ii libice6 1:1.0.3-2 X11 Inter-Client Exchange library
ii libjpeg62 6b-13 The Independent JPEG Group's JPEG
ii libmng1 1.0.9-1 Multiple-image Network Graphics li
ii libpng12-0 1.2.15~beta5-2 PNG library - runtime
ii libqt4-core 4.3.0-2 Qt 4 core non-GUI functionality ru
ii libsm6 2:1.0.3-1 X11 Session Management library
ii libstdc++6 4.2-20070627-1 The GNU Standard C++ Library v3
ii libx11-6 2:1.0.3-7 X11 client-side library
ii libxcursor1 1:1.1.8-2 X cursor management library
ii libxext6 1:1.0.3-2 X11 miscellaneous extension librar
ii libxfixes3 1:4.0.3-2 X11 miscellaneous 'fixes' extensio
ii libxi6 1:1.0.1-4 X11 Input extension library
ii libxinerama1 1:1.0.2-1 X11 Xinerama extension library
ii libxrandr2 2:1.2.1-1 X11 RandR extension library
ii libxrender1 1:0.9.2-1 X Rendering Extension client libra
ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library
ii zlib1g 1:1.2.3.3.dfsg-3 compression library - runtime
Versions of packages libqt4-gui recommends:
ii qt4-qtconfig 4.3.0-2 Qt 4 configuration tool
-- no debconf information
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46965083988992 (LWP 23832)]
0x00002ab6e312523a in QObject::parent (this=0x0) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:213
213 ../../include/QtCore/../../src/corelib/kernel/qobject.h: No such file or directory.
in ../../include/QtCore/../../src/corelib/kernel/qobject.h
Current language: auto; currently c++
(gdb) where
#0 0x00002ab6e312523a in QObject::parent (this=0x0) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:213
#1 0x00002ab6e313196b in QWidget::parentWidget (this=0x0) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:949
#2 0x00002ab6e316ad4f in QWidget::window (this=0x0) at kernel/qwidget.cpp:3340
#3 0x00002ab6e3161fc7 in QWidget::topLevelWidget (this=0x0) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:287
#4 0x00002ab6e3161b19 in QToolTip::showText (pos=@0x7fffc84abb5c, text=@0x857628, w=0x0, rect=@0x7fffc84ab4d0) at kernel/qtooltip.cpp:370
#5 0x00002ab6e3161c1c in QToolTip::showText (pos=@0x7fffc84abb5c, text=@0x857628, w=0x0) at kernel/qtooltip.cpp:397
#6 0x00002ab6e2846b10 in DragLabel::event () from /usr/lib/libLastFmTools.so.1
#7 0x00002ab6e31285f5 in QApplicationPrivate::notify_helper (this=0x742880, receiver=0x886590, e=0x7fffc84abb40) at kernel/qapplication.cpp:3538
#8 0x00002ab6e3129f15 in QApplication::notify (this=0x7fffc84ac8e0, receiver=0x886590, e=0x7fffc84abb40) at kernel/qapplication.cpp:3381
#9 0x00002ab6e3e128ba in QCoreApplication::notifyInternal (this=0x7fffc84ac8e0, receiver=0x886590, event=0x7fffc84abb40) at kernel/qcoreapplication.cpp:509
#10 0x00002ab6e3125911 in QCoreApplication::sendEvent (receiver=0x886590, event=0x7fffc84abb40) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:186
#11 0x00002ab6e312bfce in QApplication::event (this=0x7fffc84ac8e0, e=0x7fffc84ac1e0) at kernel/qapplication.cpp:2071
#12 0x00002ab6e31285f5 in QApplicationPrivate::notify_helper (this=0x742880, receiver=0x7fffc84ac8e0, e=0x7fffc84ac1e0) at kernel/qapplication.cpp:3538
#13 0x00002ab6e3128917 in QApplication::notify (this=0x7fffc84ac8e0, receiver=0x7fffc84ac8e0, e=0x7fffc84ac1e0) at kernel/qapplication.cpp:3097
#14 0x00002ab6e3e128ba in QCoreApplication::notifyInternal (this=0x7fffc84ac8e0, receiver=0x7fffc84ac8e0, event=0x7fffc84ac1e0) at kernel/qcoreapplication.cpp:509
#15 0x00002ab6e3e15af3 in QCoreApplication::sendEvent (receiver=0x7fffc84ac8e0, event=0x7fffc84ac1e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:186
#16 0x00002ab6e3e3d4a3 in QTimerInfoList::activateTimers (this=0x7533c0) at kernel/qeventdispatcher_unix.cpp:541
#17 0x00002ab6e3e3a38f in timerSourceDispatch (source=0x753360) at kernel/qeventdispatcher_glib.cpp:142
#18 0x00002ab6e61616d4 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0x00002ab6e616450d in ?? () from /usr/lib/libglib-2.0.so.0
#20 0x00002ab6e6164a3e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#21 0x00002ab6e3e39ce9 in QEventDispatcherGlib::processEvents (this=0x74f8b0, flags=@0x7fffc84ac3d0) at kernel/qeventdispatcher_glib.cpp:327
#22 0x00002ab6e31b7ea7 in QGuiEventDispatcherGlib::processEvents (this=0x74f8b0, flags=@0x7fffc84ac420) at kernel/qguieventdispatcher_glib.cpp:178
#23 0x00002ab6e3e0fb81 in QEventLoop::processEvents (this=0x7fffc84ac4d0, flags=@0x7fffc84ac480) at kernel/qeventloop.cpp:126
#24 0x00002ab6e3e0fcd6 in QEventLoop::exec (this=0x7fffc84ac4d0, flags=@0x7fffc84ac4e0) at kernel/qeventloop.cpp:168
#25 0x00002ab6e3e13070 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:729
#26 0x00002ab6e31281cc in QApplication::exec () at kernel/qapplication.cpp:3035
#27 0x0000000000425c54 in ?? ()
#28 0x00002ab6e4aac8e4 in __libc_start_main () from /lib/libc.so.6
#29 0x0000000000425699 in ?? ()
#30 0x00007fffc84acae8 in ?? ()
#31 0x0000000000000000 in ?? ()
Reply to: