Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136803 - kde-base/kdebase: kwin crashes in QPainter::drawTiledPixmap
Summary: kde-base/kdebase: kwin crashes in QPainter::drawTiledPixmap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-14 10:47 UTC by schaedpq
Modified: 2006-08-24 09:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description schaedpq 2006-06-14 10:47:07 UTC
For some time I have an issue with kwin (apparantly) randomly crashing due to a segmentation fault. According to the backtrace, that happens in QPainter::drawTiledPixmap.
I observed this in qt-3.3.4-r8 and qt-3.3.6-r1 with kdelibs-3.5.2-r6 and
kdebase-3.5.2-r1 (and I think it happened with kdelibs-3.4.3-r1 and kdebase-3.4.3-r1 as well).

I have some difficulties to reproduce this issue, it happens now and then. Sometimes several times a day, sometimes it does not happen for days. The backtrace is always the same:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1484253520 (LWP 22653)]
0x01e8f802 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#0  0x01e8f802 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x03aaf120 in nanosleep () from /lib/libc.so.6
#2  0x03aaef50 in sleep () from /lib/libc.so.6
#3  0x028e1ecc in KCrash::startDrKonqi (argv=0xb561dca0, argc=18)
    at kcrash.cpp:311
#4  0x0291c780 in KCrash::defaultCrashHandler (sig=11) at kcrash.cpp:228
#5  0x03a4e888 in killpg () from /lib/libc.so.6
#6  0x02e81d43 in QPainter::drawTiledPixmap (this=0xb561e250, x=0, y=0, w=0,
    h=0, pixmap=@0x8292a10, sx=0, sy=0) at qpainter_x11.cpp:2849
#7  0x03d89762 in QPainter::drawTiledPixmap (this=0xb561e250, r=@0xb561e240,
    pm=@0x8292a10) at qpainter.h:664
#8  0x03d85766 in KWinPlastik::PlastikClient::captionPixmap (this=0x8242d40)
    at plastikclient.cpp:491
#9  0x03d85c7d in KWinPlastik::PlastikClient::captionRect (this=0x8242d40)
    at plastikclient.cpp:381
#10 0x03d85fb9 in KWinPlastik::PlastikClient::updateCaption (this=0x8242d40)
    at plastikclient.cpp:426
#11 0x03d348e1 in KCommonDecoration::init (this=0x8242d40)
    at kcommondecoration.cpp:124
#12 0x03d8047c in KWinPlastik::PlastikClient::init (this=0x8242d40)
    at plastikclient.cpp:197
#13 0x03cbac7e in KWinInternal::Client::updateDecoration (this=0x8274c40,
    check_workspace_pos=false, force=false) at client.cpp:276
#14 0x03cd1db2 in KWinInternal::Client::manage (this=0x8274c40, w=39846060,
    isMapped=false) at manage.cpp:296
#15 0x03cd864c in KWinInternal::Workspace::createClient (this=0x81a6508,
    w=4294966780, is_mapped=false) at workspace.cpp:477
#16 0x03cd8f2b in KWinInternal::Workspace::workspaceEvent (this=0x81a6508,
    e=0xb561ee10) at events.cpp:360
#17 0x03cd901c in KWinInternal::Application::x11EventFilter (this=0xb561eff0,
    e=0xb561ee10) at main.cpp:154
#18 0x02e3ceb3 in qt_x11EventFilter (ev=0xb561ee10)
    at qapplication_x11.cpp:386
#19 0x02e48b89 in QApplication::x11ProcessEvent (this=0xb561eff0,
    event=0xb561ee10) at qapplication_x11.cpp:3308
#20 0x02e67208 in QEventLoop::processEvents (this=0x816b7f8, flags=4)
    at qeventloop_x11.cpp:192
#21 0x02ee1a75 in QEventLoop::enterLoop (this=0x816b7f8) at qeventloop.cpp:198
#22 0x02ee1990 in QEventLoop::exec (this=0x816b7f8) at qeventloop.cpp:145
#23 0x02ecc647 in QApplication::exec (this=0xb561eff0)
    at qapplication.cpp:2758
#24 0x03cdaa55 in kdemain (argc=3, argv=0x8142078) at main.cpp:282
#25 0x03c3c834 in kdeinitmain (argc=-516, argv=0xfffffdfc) at kwin_dummy.cpp:3
#26 0x0804fe53 in launch (argc=3, _name=0x8141cf4 "kwin", args=0x8141d3a "",
    cwd=0x0, envc=0, envs=0x8141d3e "", reset_env=false, tty=0x0,
    avoid_loops=false,
    startup_id_str=0xfffffdfc <Address 0xfffffdfc out of bounds>)
    at kinit.cpp:639
#27 0x080505b7 in handle_launcher_request (sock=8) at kinit.cpp:1203
#28 0x08050b7c in handle_requests (waitForPid=0) at kinit.cpp:1406
#29 0x08051260 in main (argc=2, argv=0xb561f7d4, envp=0xb561f7e0)
    at kinit.cpp:1850

I noticed some similarities with bugs #107179 as the effect is similar and the crash occurrs in both cases in QPainter, but in different functions.

For some time I thought it may be an issue with the hardened gcc and may be related to bug #126896 but kwin also crashes, if qt is compiled with a vanilla gcc, although I have the imperession, that it happens less often.
The crash that produced the backtrace above happend while using a qt compiled by a vanilla gcc (i686-pc-linux-gnu-3.4.6-vanilla).

# emerge --info
Portage 2.1 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r3, 2.6.14-hardened-r8 i686)
=================================================================
System uname: 2.6.14-hardened-r8 i686 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=athlon64 -march=athlon64 -O2 -pipe -Wall"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/postfix/sample /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-mtune=athlon64 -march=athlon64 -O2 -pipe -Wall"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror"
LINGUAS="de"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage"
USE="3dnow 3dnowext X a52 acpi alsa ash-completion berkdb bitmap-fonts cdparanoia crypt cups dga dlloader dri dv dvd dvdr dvdread encode font-server glx gtk gtk2 hardened imap isdnlog jabber kde kdeenablefinal live lzo mad matrox mbox mime mjpeg mmx mmxext mozcalendar mozsvg mp3 mpeg mplayer musicbrainz network nls nodrm nptl nptlonly nsplugin offensive ogg opengl pam pam_timestamp pdf pic png quicktime readline real sftplogging sse ssl tcpd theora truetype truetype-fonts type1 type1-fonts userlocales v4l v4l2 vorbis win32codecs x86 xmms xorg xprint xv zlib elibc_glibc kernel_linux linguas_de userland_GNU video_cards_nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sérgio Luís 2006-08-02 14:41:28 UTC
I had some crashes with kwin (which i could reproduce). Now that i upgraded to kde 3.5.4 they are gone. Can you see if kde-3.5.4 resolves your problem?
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2006-08-24 09:07:29 UTC
Assuming this is not a problem with KDE 3.5.4. Otherwise reopen please.