[vlc-devel] [PATCH] Qt4: Avoid a potential division by zero
Edward Wang
edward.c.wang at compdigitec.com
Sun Oct 21 17:58:23 CEST 2012
On 12-10-21 11:50 AM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> Le dimanche 21 octobre 2012 18:28:01, Edward Wang a écrit :
>> Fixes an annoying crash for me.
> Please provide a stack trace. We need to verify if this matches existing
> crash/bug reports so we can close them... TIA.
>
Sure thing.
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0xb4999b70 (LWP 13689)]
0xb5f195e9 in SeekSlider::mouseMoveEvent (this=0x8325b00,
event=0xb4998abc) at ../../../../modules/gui/qt4/util/input_slider.cpp:306
306 secstotimestr( psz_length, ( ( posX - margin ) *
inputLength ) / ( size().width() - handleLength() ) );
(gdb) bt
#0 0xb5f195e9 in SeekSlider::mouseMoveEvent (this=0x8325b00,
event=0xb4998abc)
at ../../../../modules/gui/qt4/util/input_slider.cpp:306
#1 0xb54b9004 in QWidget::event(QEvent*) () from
/usr/lib/i386-linux-gnu/libQtGui.so.4
#2 0xb5876a63 in QAbstractSlider::event(QEvent*) () from
/usr/lib/i386-linux-gnu/libQtGui.so.4
#3 0xb591bb00 in QSlider::event(QEvent*) () from
/usr/lib/i386-linux-gnu/libQtGui.so.4
#4 0xb545ed84 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /usr/lib/i386-linux-gnu/libQtGui.so.4
#5 0xb5464deb in QApplication::notify(QObject*, QEvent*) () from
/usr/lib/i386-linux-gnu/libQtGui.so.4
#6 0xb51cc19e in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
from /usr/lib/i386-linux-gnu/libQtCore.so.4
#7 0xb545fd45 in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)
() from /usr/lib/i386-linux-gnu/libQtGui.so.4
#8 0xb54ec304 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#9 0xb54eae8d in QApplication::x11ProcessEvent(_XEvent*) () from
/usr/lib/i386-linux-gnu/libQtGui.so.4
#10 0xb551728c in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#11 0xb4f6125f in g_main_context_dispatch () from
/lib/i386-linux-gnu/libglib-2.0.so.0
#12 0xb4f61990 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#13 0xb4f61c2a in g_main_context_iteration () from
/lib/i386-linux-gnu/libglib-2.0.so.0
#14 0xb51faada in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
()
from /usr/lib/i386-linux-gnu/libQtCore.so.4
#15 0xb5516e7a in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#16 0xb51cb1dd in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/i386-linux-gnu/libQtCore.so.4
#17 0xb51cb421 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/i386-linux-gnu/libQtCore.so.4
#18 0xb51d019d in QCoreApplication::exec() () from
/usr/lib/i386-linux-gnu/libQtCore.so.4
#19 0xb545c924 in QApplication::exec() () from
/usr/lib/i386-linux-gnu/libQtGui.so.4
#20 0xb5e12378 in Thread (obj=0x80fe380) at
../../../../modules/gui/qt4/qt4.cpp:550
#21 0xb7f8cd31 in start_thread (arg=0xb4999b70) at pthread_create.c:304
#22 0xb7ed546e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind
further
(gdb)
Regards,
Edward Wang
More information about the vlc-devel
mailing list