Bug 101154 - kinfocenter opengl DRI/GLX crash
Summary: kinfocenter opengl DRI/GLX crash
Status: RESOLVED FIXED
Alias: None
Product: kcontrol
Classification: Miscellaneous
Component: kcminfo (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Helge Deller
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-09 09:56 UTC by robert andersen
Modified: 2005-10-14 15:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
diff (361 bytes, text/plain)
2005-08-27 10:11 UTC, Helge Deller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description robert andersen 2005-03-09 09:56:14 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages
Compiler:          gcc-3.4.3.20050110 
OS:                Linux

opening the opengl tab in kinfocenter crashes kinfocenter when DRI/GLX is enabled in xorg with ati-drivers-8.10.19 and xorg-x11-6.8.2. 


backtrace

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 4009)]
0xb67c4408 in waitpid () from /lib/libpthread.so.0
#0  0xb67c4408 in waitpid () from /lib/libpthread.so.0
#1  0xb7497f44 in ?? () from /usr/kde/3.4/lib/libkdecore.so.4
#2  0xb73b057e in KCrash::defaultCrashHandler ()
   from /usr/kde/3.4/lib/libkdecore.so.4
#3  0x00000003 in ?? ()
#4  0x00000018 in ?? ()
#5  0xb74a56c0 in kde_malloc_is_used () from /usr/kde/3.4/lib/libkdecore.so.4
#6  0xb7497f44 in ?? () from /usr/kde/3.4/lib/libkdecore.so.4
#7  0xb74a56a4 in kde_malloc_is_used () from /usr/kde/3.4/lib/libkdecore.so.4
#8  0x00000010 in ?? ()
#9  0xb74a56c0 in kde_malloc_is_used () from /usr/kde/3.4/lib/libkdecore.so.4
#10 0xb7497f44 in ?? () from /usr/kde/3.4/lib/libkdecore.so.4
#11 0xb74a56a4 in kde_malloc_is_used () from /usr/kde/3.4/lib/libkdecore.so.4
#12 0x00000fab in ?? ()
#13 0x00000400 in ?? ()
#14 0x00000400 in ?? ()
#15 0xb74a56c0 in kde_malloc_is_used () from /usr/kde/3.4/lib/libkdecore.so.4
#16 0x00000019 in ?? ()
#17 0xb74a56c0 in kde_malloc_is_used () from /usr/kde/3.4/lib/libkdecore.so.4
#18 0xb703097a in QString::grow () from /usr/qt/3/lib/libqt-mt.so.3
Comment 1 Brian Pankey 2005-04-01 12:38:24 UTC
Same thing happens here; reproducible everytime.
same versions also; x11-base/xorg-x11-6.8.2-r1 and media-video/ati-drivers-8.10.19

Laptop specs:
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.10-gentoo-r7 i686)
=================================================================
System uname: 2.6.10-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.4-r3 [2.4 (#1, Mar 29 2005, 21:01:35)]
dev-lang/python:     2.4-r3
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.11
CFLAGS="-march=pentium-m -fforce-addr -momit-leaf-frame-pointer -O2 -ftracer -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-march=pentium-m -fforce-addr -momit-leaf-frame-pointer -O2 -ftracer -pipe -fomit-frame-pointer"

backtrace output:
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1235822912 (LWP 8226)]
[KCrash handler]
#7  0xb65de5d1 in strstr () from /lib/tls/libc.so.6
#8  0x083b39c8 in ?? ()
#9  0xbfffd840 in ?? ()
#10 0xbfffd9d8 in ?? ()
#11 0xb63ab743 in create_cpu () from /usr/kde/3.4/lib/kde3/kcm_info.so
Comment 2 Joel Campbell 2005-05-05 05:26:37 UTC
Same issue. 
Happens every time. 

KDE 3.4
X.org version: xorg-x11-6.8.2-r1
ATI Driver version: ati-drivers-8.12.10

Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r6 x86_64 Mobile AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 26 2005, 00:04:22)]
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
Comment 3 Ilya Korniyko 2005-05-19 19:12:30 UTC
So can anyone give backtrace WITH debug information compile in? Is it a big problem for gentoo users?

It crashes for me too, but it also hangs PC when it goes to backrace :(
Comment 4 Sonyu Chen 2005-06-01 15:16:09 UTC
I am a Gentoo user, using :
==========
KDE 3.4.1
xorg-x11 6.8.2-r1
nvidia-glx nvidia-kernel 1.0.6629-r1
on MX440 
==========
and find the problem too.
Comment 5 t35t0r t35t0r 2005-08-27 02:41:55 UTC
On gentoo, I'm using KDE 3.4.2, ati-drivers-8.16.20, and vanilla linux-2.6.12.5. I get the same crash. I'll recompile the ati-drivers with debugging symbols to see if it will help.
Comment 6 t35t0r t35t0r 2005-08-27 08:54:15 UTC
ok guys, took me several hoours to recompile kdelibs and kdebase in gentoo with debugging symbols:
CFLAGS="-ggdb -march=athlon-xp"
FEATURES="nostrip"

This is the backtrace from the error that happens when you click opengl in the KDE info center:

Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1236321632 (LWP 16093)]
[KCrash handler]
#7  0xb655d797 in strstr () from /lib/tls/libc.so.6
#8  0xb63c0868 in print_limits (l1=0x843b518, glExtensions=0x0)
    at opengl.cpp:423
#9  0xb63c2a4e in print_screen_info (l1=0x83e6e40, after=0x8428c60)
    at opengl.cpp:494
#10 0xb63c56b6 in get_gl_info (dpy=0x8239900, scrnum=0, 
    allowDirect=-1237552156, l1=0xb63c73e4, after=0xb63c73e4)
    at opengl.cpp:596
#11 0xb63c5bd5 in GetInfo_OpenGL_Generic (lBox=0x821cc58) at qstring.h:848
#12 0xb63c5bf1 in GetInfo_OpenGL (lBox=0xb63c73e4) at opengl.cpp:659
#13 0xb63b459c in KInfoListWidget::load (this=0x82421e0) at info.cpp:366
#14 0xb63b4d69 in KInfoListWidget (this=0x82421e0, _title=@0xb63c73e4, 
    parent=0xb63c73e4, name=0xb63c73e4 "GL_ARB_vertex_program", 
    _getlistbox=0xb63c73e4 <typeinfo name for KMemoryWidget+1348>)
    at info.cpp:430
#15 0xb63b9117 in create_opengl (parent=0xb63c73e4) at main.cpp:135
#16 0xb7a5479d in KCModuleLoader::load (mod=@0x81380d0, libname=@0xbffdaa00, 
    loader=0x1, report=None, parent=0x0, name=0x0, args=@0xb63c73e4)
    at kcmoduleloader.cpp:92
#17 0xb7a5514f in KCModuleLoader::loadModule (mod=@0x81380d0, report=None, 
    withfallback=true, parent=0x0, name=0x0, args=@0xbffdaaf0)
    at kcmoduleloader.cpp:141
#18 0xb7a54c54 in KCModuleLoader::loadModule (mod=@0xb63c73e4, 
    parent=0xb63c73e4, name=0xb63c73e4 "GL_ARB_vertex_program", 
    args=@0xb63c73e4) at kcmoduleloader.cpp:117
#19 0xb7fb9b81 in ConfigModule::module (this=0x81380a8) at qvaluelist.h:432
#20 0xb7fae886 in ModuleWidget::load (this=0x818d930, module=0x81380a8)
    at dockcontainer.cpp:124
#21 0xb7faef3a in DockContainer::loadModule (this=0x8181b88, module=0x81380a8)
    at dockcontainer.cpp:175
#22 0xb7faf1d5 in DockContainer::dockModule (this=0x8181b88, module=0x81380a8)
    at dockcontainer.cpp:229
#23 0xb7faba21 in TopLevel::activateModule (this=0x81271f8, mod=0x81380a8)
    at toplevel.cpp:392
#24 0xb7fa8598 in TopLevel::qt_invoke (this=0x81271f8, _id=72, _o=0xbffdadc0)
    at qucom_p.h:312
#25 0xb6c5ec53 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#26 0xb7fafb68 in AboutWidget::moduleSelected (this=0x819e808, t0=0xb63c73e4)
    at aboutwidget.moc:102
#27 0xb7fb2364 in AboutWidget::slotModuleLinkClicked (this=0x819e808, 
    url=@0xb63c73e4) at aboutwidget.cpp:196
#28 0xb7fafbe3 in AboutWidget::qt_invoke (this=0x819e808, _id=45, 
    _o=0xbffdaef0) at qucom_p.h:312
#29 0xb6c5ebcd in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#30 0xb7ab6805 in KParts::BrowserExtension::openURLRequest (this=0x8159350, 
    t0=@0xb63c73e4, t1=@0xb63c73e4) at browserextension.moc:285
#31 0xb7d1b70f in KHTMLPart::urlSelected (this=0x8177ec8, url=@0xbffdb1a0, 
    button=1, state=0, _target=@0xb63c73e4, args=<incomplete type>)
    at khtml_part.cpp:3805
#32 0xb7d8bbe4 in DOM::HTMLAnchorElementImpl::defaultEventHandler (
    this=0x820b790, evt=0x8216df0) at khtmlview.h:223
#33 0xb7d61e5f in DOM::NodeImpl::dispatchGenericEvent (this=0x820b5e8, 
    evt=0x8216df0) at qptrlist.h:174
#34 0xb7d61bf5 in DOM::NodeImpl::dispatchEvent (this=0x820b5e8, 
    evt=0x8216df0, exceptioncode=@0xb63c73e4, tempEvent=true)
    at dom_nodeimpl.cpp:402
#35 0xb7cf968c in KHTMLView::dispatchMouseEvent (this=0x81957f8, eventId=4, 
    targetNode=0x820b5e8, targetNodeNonShared=0x0, cancelable=true, 
    detail=-1237552156, _mouse=0xbffdb480, setUnder=true, 
    mouseEventType=-1237552156) at khtmlview.cpp:2731
#36 0xb7cf3747 in KHTMLView::viewportMouseReleaseEvent (this=0x81957f8, 
    _mouse=0xbffdbbe0) at dom_node.h:863
#37 0xb6d70459 in QScrollView::eventFilter () from /usr/qt/3/lib/libqt-mt.so.3
#38 0xb7cf5310 in KHTMLView::eventFilter (this=0x81957f8, o=0x81aefc0, 
    e=0xbffdbbe0) at khtmlview.cpp:1900
#39 0xb6c5c60e in QObject::activate_filters ()
   from /usr/qt/3/lib/libqt-mt.so.3
#40 0xb6c5c536 in QObject::event () from /usr/qt/3/lib/libqt-mt.so.3
#41 0xb6c9433f in QWidget::event () from /usr/qt/3/lib/libqt-mt.so.3
#42 0xb6c037bc in QApplication::internalNotify ()
   from /usr/qt/3/lib/libqt-mt.so.3
#43 0xb6c02c70 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3
#44 0xb724e752 in KApplication::notify (this=0xbffdc160, receiver=0x81aefc0, 
    event=0xbffdbbe0) at kapplication.cpp:549
#45 0xb6b999cc in QETWidget::translateMouseEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#46 0xb6b9763c in QApplication::x11ProcessEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
#47 0xb6baeb3b in QEventLoop::processEvents ()
   from /usr/qt/3/lib/libqt-mt.so.3
#48 0xb6c15698 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3
#49 0xb6c15548 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3
#50 0xb6c039f1 in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3
#51 0xb7fa81e9 in kdemain (argc=-1237552156, argv=0xbffdc3b4) at main.cpp:151
#52 0x0804876b in main (argc=-1237552156, argv=0xb63c73e4)
    at kcontrol.la.cpp:2
Comment 7 Helge Deller 2005-08-27 10:11:45 UTC
Try this patch.
Helge


Created an attachment (id=12391)
diff
Comment 8 t35t0r t35t0r 2005-08-27 19:25:45 UTC
Thanks for fixing it, it works fine now! For gentoo users please see:

http://bugs.gentoo.org/show_bug.cgi?id=103937

..let me know if i need to upload an ebuild on gentoo bugzilla
Comment 9 Helge Deller 2005-08-27 22:36:33 UTC
SVN commit 454063 by deller:

fix crash: Bug 101154: kinfocenter opengl DRI/GLX crash
BUG:101154


 M  +3 -0      opengl.cpp  


--- branches/KDE/3.5/kdebase/kcontrol/info/opengl.cpp #454062:454063
@@ -235,6 +235,9 @@
       GL_COMPRESSED_TEXTURE_FORMATS
 */
 
+  if (!glExtensions)
+	return;
+
   struct token_name {
       GLuint type;  // count and flags, !!! count must be <=2 for now
       GLenum token;
Comment 10 Ilya Korniyko 2005-10-14 15:15:10 UTC
I however think that the patch only fixes unchecked use of pointer which leads to crash, but not the bug which gives us NULL instead of valid pointer. I will try to explore this.