Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#9 Refreshing empty query causes segfault

open
Elad Lahav
None
5
2012-10-31
2006-08-10
Yann Dirson
No

On 1.3.4, right-click on query tab icon, and
selecting "refresh", when no query was run before,
causes a segfault.

Discussion

  • Elad Lahav
    Elad Lahav
    2006-08-10

    Logged In: YES
    user_id=378741

    Fixed in CVS, Thanks.

     
  • Elad Lahav
    Elad Lahav
    2006-08-10

    Logged In: YES
    user_id=378741

    I have accidentaly closed this bug instead of another one.
    There was not fix in CVS yet, sorry.
    However, I am unable to reproduce this crash. Can please run
    KScope i a debugger and submit a backtrace of the crash?

     
  • Logged In: NO

    test

     
  • Logged In: NO

    Sorry, just checking if I can post! daniel29 here, forgot my
    sf password :-(

    I can confirm this bug using kscope 1.4.1. It is not limited
    to empty tabs. When right clicking on a tab, kscope segfaults.

    $ gdb kscope
    (gdb) run
    Starting program: /usr/local/bin/kscope

    [Thread debugging using libthread_db enabled]

    [New Thread 1097582752 (LWP 8971)]

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1097582752 (LWP 8971)]
    0x40ea1209 in QMenuData::count () from /usr/lib/libqt-mt.so.3

    (gdb) back

    0 0x40ea1209 in QMenuData::count () from

    /usr/lib/libqt-mt.so.3

    1 0x08087e33 in QueryWidget::slotContextMenu ()

    2 0x0808856d in QueryWidget::qt_invoke ()

    3 0x40da271c in QObject::activate_signal () from

    /usr/lib/libqt-mt.so.3

    4 0x407b8a37 in KTabWidget::contextMenu () from

    /usr/lib/libkdeui.so.4

    5 0x407b7eac in KTabWidget::contextMenu () from

    /usr/lib/libkdeui.so.4

    6 0x407b8f36 in KTabWidget::qt_invoke () from

    /usr/lib/libkdeui.so.4

    7 0x08093a3f in TabWidget::qt_invoke ()

    8 0x40da271c in QObject::activate_signal () from

    /usr/lib/libqt-mt.so.3

    9 0x407b6d84 in KTabBar::contextMenu () from

    /usr/lib/libkdeui.so.4

    10 0x407b5979 in KTabBar::mousePressEvent () from

    /usr/lib/libkdeui.so.4

    11 0x40dd8b26 in QWidget::event () from /usr/lib/libqt-mt.so.3

    12 0x40ecba92 in QTabBar::event () from /usr/lib/libqt-mt.so.3

    13 0x40d45e1f in QApplication::internalNotify () from

    /usr/lib/libqt-mt.so.3

    14 0x40d45514 in QApplication::notify () from

    /usr/lib/libqt-mt.so.3

    15 0x408d7ec3 in KApplication::notify () from

    /usr/lib/libkdecore.so.4

    16 0x40cda5b0 in QETWidget::translateMouseEvent () from

    /usr/lib/libqt-mt.so.3

    17 0x40cd823e in QApplication::x11ProcessEvent () from

    /usr/lib/libqt-mt.so.3

    18 0x40cef254 in QEventLoop::processEvents () from

    /usr/lib/libqt-mt.so.3

    19 0x40d581d8 in QEventLoop::enterLoop () from

    /usr/lib/libqt-mt.so.3

    20 0x40d58088 in QEventLoop::exec () from

    /usr/lib/libqt-mt.so.3

    21 0x40d46071 in QApplication::exec () from

    /usr/lib/libqt-mt.so.3

    22 0x08063ab0 in main ()

    Does this debugger output help?

     
  • Elad Lahav
    Elad Lahav
    2006-10-01

    Logged In: YES
    user_id=378741

    That helps, thanks.
    I still don't underdtand why it crashes, though (and it
    doesn't for me).
    Can you please run one more test? Set a breakpoint at
    QueryWidget::setPageMenu() and let me know what the value of
    the pMenu parameter is.

    Elad