Bug 6432 - Segmentation Fault when closing OpenGL the 2'nt time
Summary: Segmentation Fault when closing OpenGL the 2'nt time
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/X11 (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: highest critical
Assignee: mesa-dev
QA Contact:
URL: http://pvbrowser.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-30 17:31 UTC by Rainer Lehrig
Modified: 2009-05-20 05:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Rainer Lehrig 2006-03-30 17:31:37 UTC
Our project (see url) uses also OpenGL from trolltech Qt3. 
It works fine with XFree86 up to SuSE 9.2 ! 
I use SuSE Linux 10.0 now with X.org . 
 
When I first open OpenGL we get: 
############################################# 
Program received signal SIGFPE, Arithmetic exception. 
[Switching to Thread 1087143904 (LWP 7652)] 
0x4106626c in ?? () from /usr/X11R6/lib/modules/dri/radeon_dri.so 
(gdb) backtrace 
#0  0x4106626c in ?? () from /usr/X11R6/lib/modules/dri/radeon_dri.so 
#1  0x3f800000 in ?? () 
#2  0x3f800000 in ?? () 
#3  0x3f800000 in ?? () 
#4  0x3f800000 in ?? () 
#5  0x00001d80 in ?? () 
#6  0x00001f80 in ?? () 
#7  0xbff153f8 in ?? () 
#8  0x41066190 in ?? () from /usr/X11R6/lib/modules/dri/radeon_dri.so 
#9  0x00000008 in ?? () 
Previous frame inner to this frame (corrupt stack?) 
############################################# 
 
I now contine the program. 
When I close OpenGL everything seems OK. 
I now open OpenGL again. 
Everything works. 
But when I close OpenGL the 2'nt time I get a 
Program received signal SIGSEGV, Segmentation fault. 
(See below) 
 
################################################################### 
lehrig@nb3lehrig:~> gdb processview 
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 "i586-suse-linux"...Using host libthread_db library 
"/lib/tls/libthread_db.so.1". 
 
(gdb) run 
Starting program: /usr/local/bin/processview 
[Thread debugging using libthread_db enabled] 
[New Thread 1087143904 (LWP 7652)] 
 
Program received signal SIGFPE, Arithmetic exception. 
[Switching to Thread 1087143904 (LWP 7652)] 
0x4106626c in ?? () from /usr/X11R6/lib/modules/dri/radeon_dri.so 
(gdb) backtrace 
#0  0x4106626c in ?? () from /usr/X11R6/lib/modules/dri/radeon_dri.so 
#1  0x3f800000 in ?? () 
#2  0x3f800000 in ?? () 
#3  0x3f800000 in ?? () 
#4  0x3f800000 in ?? () 
#5  0x00001d80 in ?? () 
#6  0x00001f80 in ?? () 
#7  0xbff153f8 in ?? () 
#8  0x41066190 in ?? () from /usr/X11R6/lib/modules/dri/radeon_dri.so 
#9  0x00000008 in ?? () 
Previous frame inner to this frame (corrupt stack?) 
(gdb) continue 
Continuing. 
 
Program received signal SIGSEGV, Segmentation fault. 
0x4106f580 in __driUtilMessage () from /usr/X11R6/lib/modules/dri/radeon_dri.so 
(gdb) backtrace 
#0  0x4106f580 in __driUtilMessage () 
   from /usr/X11R6/lib/modules/dri/radeon_dri.so 
#1  0x41070195 in __driUtilUpdateDrawableInfo () 
   from /usr/X11R6/lib/modules/dri/radeon_dri.so 
#2  0x400ffbbe in __glXFreeContext () from /usr/lib/libGL.so.1 
#3  0x405f7394 in QGLContext::reset () from /usr/lib/libqt-mt.so.3 
#4  0x405f2b1d in QGLContext::~QGLContext () from /usr/lib/libqt-mt.so.3 
#5  0x405f2fd4 in QGLWidget::~QGLWidget () from /usr/lib/libqt-mt.so.3 
#6  0x0809da77 in ~PvGLWidget (this=0x8214a08) at pvglwidget.cpp:39 
#7  0x403d4acf in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3 
#8  0x08095e8f in ~MyQWidget (this=0x82535e8) at MyWidgets.cpp:56 
#9  0x403d4acf in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3 
#10 0x404b5075 in QViewportWidget::~QViewportWidget () 
   from /usr/lib/libqt-mt.so.3 
#11 0x404b48cb in QScrollView::~QScrollView () from /usr/lib/libqt-mt.so.3 
#12 0x080823ab in ProcessView::interprete (this=0x81f9e58, 
    command=0xbff15a94 "endDefinition()\n") at processview.cpp:2621 
#13 0x0808b7ef in ProcessView::dataReceived (this=0x81f9e58) 
    at processview.cpp:1433 
#14 0x0808b98b in ProcessView::selectSocket (this=0x81f9e58) 
    at processview.cpp:445 
#15 0x080a4523 in ProcessView::qt_invoke (this=0x81f9e58, _id=81, 
    _o=0xbff16008) at moc_processview.cpp:155 
#16 0x4039b159 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 
#17 0x4039b600 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 
#18 0x406ddbc9 in QTimer::timeout () from /usr/lib/libqt-mt.so.3 
#19 0x403bf63f in QTimer::event () from /usr/lib/libqt-mt.so.3 
#20 0x4033b9f1 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3 
#21 0x4033c369 in QApplication::notify () from /usr/lib/libqt-mt.so.3 
#22 0x40330728 in QEventLoop::activateTimers () from /usr/lib/libqt-mt.so.3 
#23 0x402e9e2f in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 
#24 0x40352903 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 
#25 0x403527e6 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 
#26 0x4033b33f in QApplication::exec () from /usr/lib/libqt-mt.so.3 
#27 0x08073c5f in main (argc=1, argv=0xbff16554) at main.cpp:210 
(gdb) quit 
The program is running.  Exit anyway? (y or n) y 
lehrig@nb3lehrig:~>
Comment 1 Rainer Lehrig 2006-03-30 17:36:26 UTC
The bug is not dependent of the graphics card !!! 
It is the same with radeaon, nvidia, software OpenGL and under VMware. 
Comment 2 Jerome Glisse 2009-05-20 05:44:20 UTC
Should be fixed now, reopen if you still have this issue with recent mesa.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.