[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 172971] New: Closing the last tab in split-view mode generates
From:       mbreugel <mbr.nxi () gmail ! com>
Date:       2008-10-16 15:42:57
Message-ID: bug-172971-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

http://bugs.kde.org/show_bug.cgi?id=172971

           Summary: Closing the last tab in split-view mode generates a
                    segfault
           Product: kdevplatform
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: sublime
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: mbr.nxi@gmail.com


Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

Steps to reproduce:

1/ boot kdevelop
2/ open a file
3/ window -> split view [either one will do]
4/ close this new view
5/ crash

The problem (AFAIK) is in mainwindow_p.cpp:350;358;360. Container's parent, the
QSplitter get's set to zero. Next ContainerStyle accesses this 0 pointer in
it's style() method through parent()->parentWidget()



0xb6bab795 in QWidget::style () from /usr/lib/libQtGui.so.4
(gdb) bt
#0  0xb6bab795 in QWidget::style () from /usr/lib/libQtGui.so.4
#1  0xb62f7a8f in Sublime::ContainerStyle::style (this=0x8c03768) at
/home/nix/KdeDev/kdevplatform2/sublime/containerstyle.cpp:39
#2  0xb62f7f61 in Sublime::ContainerStyle::styleHint (this=0x8c03768,
hint=QStyle::SH_Widget_ShareActivation, option=0x0,
    widget=0x8affdf8, returnData=0x0) at
/home/nix/KdeDev/kdevplatform2/sublime/containerstyle.cpp:170
#3  0xb6bb1f7a in QWidget::isActiveWindow () from /usr/lib/libQtGui.so.4
#4  0xb6dbbd08 in QStyleOption::init () from /usr/lib/libQtGui.so.4
#5  0xb6f12bb4 in QTabWidget::initStyleOption () from /usr/lib/libQtGui.so.4
#6  0xb6f12efe in QTabWidget::setUpLayout () from /usr/lib/libQtGui.so.4
#7  0xb6f13200 in QTabWidget::event () from /usr/lib/libQtGui.so.4
#8  0xb6b68ecc in QApplicationPrivate::notify_helper () from
/usr/lib/libQtGui.so.4
#9  0xb6b6f3ea in QApplication::notify () from /usr/lib/libQtGui.so.4
#10 0xb76f9d1d in KApplication::notify (this=0xbf7ff524, receiver=0x8affdf8,
event=0x8e21910)
    at /home/nix/KdeDev/kdelibs/kdeui/kernel/kapplication.cpp:311
#11 0xb740fb51 in QCoreApplication::notifyInternal () from
/usr/lib/libQtCore.so.4
#12 0xb7410411 in QCoreApplicationPrivate::sendPostedEvents () from
/usr/lib/libQtCore.so.4
#13 0xb743832a in QEventDispatcherUNIX::processEvents () from
/usr/lib/libQtCore.so.4
#14 0xb6bf30a2 in ?? () from /usr/lib/libQtGui.so.4
#15 0xb740e2ca in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#16 0xb740e48a in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#17 0xb741066d in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#18 0xb6b68d47 in QApplication::exec () from /usr/lib/libQtGui.so.4
#19 0x0804e464 in main (argc=1, argv=0xbf7ff984) at
/home/nix/KdeDev/kdevelop2/src/main.cpp:194


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic