Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 93197

Summary: kde-base/kdat-3.4.0: sigsegv on attempting to delete backup profiles.
Product: Gentoo Linux Reporter: Jason McGuiness <gentoo-bugs>
Component: New packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jason McGuiness 2005-05-19 05:37:38 UTC
I get a sigsegv when attempting to select a backup profile after apparently (see 
my other bug report, 93195) deleting two others.

Reproducible: Always
Steps to Reproduce:
1. Create three backup profiles.
2. Delete the first, then the last.
3. The selection will have moved off the remaining profile, so select it.
4. Get a sigsegv error.

Actual Results:  
I got a sigsegv error.

Expected Results:  
Selected the backup profile.

Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-
gentoo-r7 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r7 x86_64 AMD Opteron(tm) Processor 250
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 15 2005, 23:35:44)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6
sys-devel/automake:  1.9.5, 1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=opteron -O0 -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /
var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=opteron -O0 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks nostrip sandbox strict"
GENTOO_MIRRORS="http://gentoo.mirror.sdv.fr http://ftp.easynet.nl/mirror/gentoo/ http://
www.gigaload.org/gentoo.org/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/
distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/dev/shm/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa amd64 bash-completion berkdb bitmap-fonts bzlib cdr crypt cups curl 
dvd dvdread exif fam flac font-server foomaticdb gdbm gif gpm gtk gtk2 imagemagick imlib 
ipv6 jp2 jpeg libwww lm_sensors lzw lzw-tiff mad motif mp3 ncurses network nls nptl 
nptlonly ogg oggvorbis opengl pam pda perl png ppds python qt qtmt readline rtc sdk spell 
ssl sysfs tcpd tetex threads tiff truetype truetype-fonts type1-fonts usb userlocales 
vorbis xfce4 xine xml xml2 xmms xpm xrandr xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jason McGuiness 2005-05-19 05:40:11 UTC
I ran kdat, after rebuilding it with "-O0 -g" and nostrip, from gdb and got a 
stack trace:

> gdb kdat
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/kde/3.4/bin/kdat
[Thread debugging using libthread_db enabled]
[New Thread 46912560819184 (LWP 26611)]
X Error: BadDevice, invalid or uninitialized input device 167
  Major opcode:  145
  Minor opcode:  3
  Resource id:  0x0
Failed to open device

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912560819184 (LWP 26611)]
0x00002aaaac7c0fc3 in QString::QString () from /usr/qt/3/lib/libqt-mt.so.3
(gdb) where
#0  0x00002aaaac7c0fc3 in QString::QString () from /usr/qt/3/lib/libqt-mt.so.3
#1  0x000000000041c3b2 in BackupProfile::getName (this=0x7812e0)
    at BackupProfile.cpp:143
#2  0x000000000041d7ab in BackupProfileInfoWidget::setBackupProfile (
    this=0x824200, backupProfile=0x7812e0) at BackupProfileInfoWidget.cpp:99
#3  0x000000000042ce07 in KDat::showBackupProfileInfo (this=0x70b310,
    backupProfile=0x7812e0) at KDat.cpp:334
#4  0x00000000004385a8 in BackupProfileNode::selected (this=0x8201a0)
    at Node.cpp:1461
#5  0x000000000042d039 in KDat::localHighlighted (this=0x70b310, index=3)
    at KDat.cpp:399
#6  0x0000000000428e94 in KDat::qt_invoke (this=0x70b310, _id=76,
    _o=0x7fffffffdf80) at KDat.moc:159
#7  0x00002aaaac53bae8 in QObject::activate_signal ()
   from /usr/qt/3/lib/libqt-mt.so.3
#8  0x00002aaaac53c0ef in QObject::activate_signal ()
   from /usr/qt/3/lib/libqt-mt.so.3
#9  0x000000000044d53b in KTreeView::highlighted (this=0x73e0d0, t0=3)
    at ktreeview.moc:142
#10 0x0000000000450219 in KTreeView::setCurrentItem (this=0x73e0d0, row=3)
    at ktreeview.cpp:1105
#11 0x00000000004518a8 in KTreeView::mousePressEvent (this=0x73e0d0,
    e=0x7fffffffe250) at ktreeview.cpp:1753
#12 0x00002aaaac56db93 in QWidget::event () from /usr/qt/3/lib/libqt-mt.so.3
#13 0x00002aaaac4e2fbd in QApplication::internalNotify ()
   from /usr/qt/3/lib/libqt-mt.so.3
#14 0x00002aaaac4e34ee in QApplication::notify ()
   from /usr/qt/3/lib/libqt-mt.so.3
#15 0x00002aaaab82d202 in KApplication::notify ()
   from /usr/kde/3.4/lib/libkdecore.so.4
#16 0x00002aaaac489057 in QETWidget::translateMouseEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#17 0x00002aaaac487d18 in QApplication::x11ProcessEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#18 0x00002aaaac498b0b in QEventLoop::processEvents ()
   from /usr/qt/3/lib/libqt-mt.so.3
#19 0x00002aaaac4f70c5 in QEventLoop::enterLoop ()
   from /usr/qt/3/lib/libqt-mt.so.3
#20 0x00002aaaac4f7022 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3
#21 0x0000000000452844 in main (argc=1, argv=0x7fffffffee98) at main.cpp:95
(gdb)
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-05-30 13:01:46 UTC
While not exactly a dupe, Gregorio is right regarding kdat. There didn't
happened anything in cvs for a long time.

*** This bug has been marked as a duplicate of 93194 ***