[Bug 169692] unapply difference button is crashing kompare if no difference is applied

Kushal Das kushaldas at gmail.com
Mon Aug 25 10:07:31 CEST 2008


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





--- Comment #4 from Kushal Das <kushaldas gmail com>  2008-08-25 10:07:27 ---
[kdas at d80 ~]$ valgrind kompare
==13149== Memcheck, a memory error detector.
==13149== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==13149== Using LibVEX rev 1804, a library for dynamic binary translation.
==13149== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.       
==13149== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==13149== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.  
==13149== For more details, rerun with: -v                                 
==13149==                                                                  
==13149== Syscall param writev(vector[...]) points to uninitialised byte(s)
==13149==    at 0xB970BC: writev (in /lib/libc-2.8.so)                     
==13149==    by 0x2D735D: (within /usr/lib/libxcb.so.1.0.0)                
==13149==    by 0x2D798D: (within /usr/lib/libxcb.so.1.0.0)                
==13149==    by 0x2D7AB8: (within /usr/lib/libxcb.so.1.0.0)                
==13149==    by 0x2D8BD5: xcb_wait_for_reply (in /usr/lib/libxcb.so.1.0.0) 
==13149==    by 0x7640E40: _XReply (in /usr/lib/libX11.so.6.2.0)           
==13149==    by 0x761DC52: XGetWindowProperty (in /usr/lib/libX11.so.6.2.0)
==13149==    by 0x761CE76: XGetWMHints (in /usr/lib/libX11.so.6.2.0)       
==13149==    by 0x5364546: QWidgetPrivate::setWindowIcon_sys(bool) (in
/usr/lib/libQtGui.so.4.4.1)
==13149==    by 0x5330C5A: QWidget::create(unsigned long, bool, bool) (in
/usr/lib/libQtGui.so.4.4.1)
==13149==    by 0x532CBF2: QWidgetPrivate::createWinId(unsigned long) (in
/usr/lib/libQtGui.so.4.4.1)
==13149==    by 0x532FF2A: QWidgetPrivate::setWindowTitle_helper(QString
const&) (in /usr/lib/libQtGui.so.4.4.1)
==13149==  Address 0x4316b1b is 6,939 bytes inside a block of size 8,556
alloc'd                                
==13149==    at 0x4004BA2: calloc (vg_replace_malloc.c:397)                     
==13149==    by 0x2D7610: xcb_connect_to_fd (in /usr/lib/libxcb.so.1.0.0)       
==13149==    by 0x2DA12E: xcb_connect (in /usr/lib/libxcb.so.1.0.0)             
==13149==    by 0x764033A: _XConnectXCB (in /usr/lib/libX11.so.6.2.0)           
==13149==    by 0x762795E: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)           
==13149==    by 0x534F7AF: (within /usr/lib/libQtGui.so.4.4.1)                  
==13149==    by 0x52DFB68: QApplicationPrivate::construct(_XDisplay*, unsigned
long, unsigned long) (in /usr/lib/libQtGui.so.4.4.1)
==13149==    by 0x52E072A: QApplication::QApplication(int&, char**, bool, int)
(in /usr/lib/libQtGui.so.4.4.1)                     
==13149==    by 0x742649D: KApplication::KApplication(bool) (in
/usr/lib/libkdeui.so.5.1.0)                                        
==13149==    by 0x804FAE2: main (main.cpp:81)                                   
==13149==                                                                       
==13149== Syscall param writev(vector[...]) points to uninitialised byte(s)     
==13149==    at 0xB97138: writev (in /lib/libc-2.8.so)                          
==13149==    by 0x2D735D: (within /usr/lib/libxcb.so.1.0.0)                     
==13149==    by 0x2D798D: (within /usr/lib/libxcb.so.1.0.0)                     
==13149==    by 0x2D7AB8: (within /usr/lib/libxcb.so.1.0.0)                     
==13149==    by 0x2D8BD5: xcb_wait_for_reply (in /usr/lib/libxcb.so.1.0.0)      
==13149==    by 0x7640E40: _XReply (in /usr/lib/libX11.so.6.2.0)                
==13149==    by 0x76341F6: XSync (in /usr/lib/libX11.so.6.2.0)                  
==13149==    by 0x533AF00: QApplication::syncX() (in
/usr/lib/libQtGui.so.4.4.1)                                                   
==13149==    by 0x533EC5C: (within /usr/lib/libQtGui.so.4.4.1)                  
==13149==    by 0x534B5FC: QApplication::x11ProcessEvent(_XEvent*) (in
/usr/lib/libQtGui.so.4.4.1)                                 
==13149==    by 0x53746CB: (within /usr/lib/libQtGui.so.4.4.1)                  
==13149==    by 0x5AA0D7: g_main_context_dispatch (in
/lib/libglib-2.0.so.0.1600.5)                                                
==13149==  Address 0x4316383 is 4,995 bytes inside a block of size 8,556
alloc'd                                                   
==13149==    at 0x4004BA2: calloc (vg_replace_malloc.c:397)                     
==13149==    by 0x2D7610: xcb_connect_to_fd (in /usr/lib/libxcb.so.1.0.0)       
==13149==    by 0x2DA12E: xcb_connect (in /usr/lib/libxcb.so.1.0.0)             
==13149==    by 0x764033A: _XConnectXCB (in /usr/lib/libX11.so.6.2.0)           
==13149==    by 0x762795E: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)           
==13149==    by 0x534F7AF: (within /usr/lib/libQtGui.so.4.4.1)                  
==13149==    by 0x52DFB68: QApplicationPrivate::construct(_XDisplay*, unsigned
long, unsigned long) (in /usr/lib/libQtGui.so.4.4.1)
==13149==    by 0x52E072A: QApplication::QApplication(int&, char**, bool, int)
(in /usr/lib/libQtGui.so.4.4.1)                     
==13149==    by 0x742649D: KApplication::KApplication(bool) (in
/usr/lib/libkdeui.so.5.1.0)                                        
==13149==    by 0x804FAE2: main (main.cpp:81)
==13149==
==13149== Invalid read of size 1
==13149==    at 0x27561D: Diff2::KompareModelList::compareDirs(QString const&,
QString const&) (komparemodellist.cpp:212)
==13149==    by 0x279FFC:
Diff2::KompareModelList::qt_metacall(QMetaObject::Call, int, void**)
(klocalizedstring.h:595)
==13149==    by 0x4DCA3DF: QMetaObject::activate(QObject*, int, int, void**)
(in /usr/lib/libQtCore.so.4.4.1)
==13149==    by 0x4DCA7DF: QMetaObject::activate(QObject*, QMetaObject const*,
int, int, void**) (in /usr/lib/libQtCore.so.4.4.1)
==13149==    by 0x52D5030: QAction::triggered(bool) (in
/usr/lib/libQtGui.so.4.4.1)
==13149==    by 0x52D599E: QAction::activate(QAction::ActionEvent) (in
/usr/lib/libQtGui.so.4.4.1)
==13149==    by 0x56F9431: QToolButton::nextCheckState() (in
/usr/lib/libQtGui.so.4.4.1)
==13149==    by 0x561CD62: (within /usr/lib/libQtGui.so.4.4.1)
==13149==    by 0x561D035: QAbstractButton::mouseReleaseEvent(QMouseEvent*) (in
/usr/lib/libQtGui.so.4.4.1)
==13149==    by 0x56F992B: QToolButton::mouseReleaseEvent(QMouseEvent*) (in
/usr/lib/libQtGui.so.4.4.1)
==13149==    by 0x53330C1: QWidget::event(QEvent*) (in
/usr/lib/libQtGui.so.4.4.1)
==13149==    by 0x561B05D: QAbstractButton::event(QEvent*) (in
/usr/lib/libQtGui.so.4.4.1)
==13149==  Address 0x15 is not stack'd, malloc'd or (recently) free'd
KCrash: Application 'kompare' crashing...
sock_file=/home/kdas/.kde/socket-d80/kdeinit4__0
==13149==
==13149== ERROR SUMMARY: 6 errors from 3 contexts (suppressed: 103 from 2)
==13149== malloc/free: in use at exit: 8,398,878 bytes in 62,220 blocks.
==13149== malloc/free: 305,590 allocs, 243,370 frees, 127,119,157 bytes
allocated.
==13149== For counts of detected errors, rerun with: -v
==13149== searching for pointers to 62,220 not-freed blocks.
==13149== checked 40,111,560 bytes.
==13149==
==13149== LEAK SUMMARY:
==13149==    definitely lost: 11,000 bytes in 433 blocks.
==13149==      possibly lost: 29,145 bytes in 1,084 blocks.
==13149==    still reachable: 8,358,733 bytes in 60,703 blocks.
==13149==         suppressed: 0 bytes in 0 blocks.
==13149== Rerun with --leak-check=full to see details of leaked memory.




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


More information about the Kompare-devel mailing list