Re: Fix for segmentation fault in stage with intel graphic boards
Daniel Dube <Daniel.Dube <at> uni-tuebingen.de>
2010-04-20 15:49:02 GMT
I tested revision 8614 of stage and noticed the same behavior as in
revision 8612, except that stage does not crash as often as before.
Here is the backtrace:
#0 0xb42bb416 in glLoadIdentity () from /usr/lib/libGL.so.1
#1 0xb440d797 in Stg::Canvas::FixViewport (this=0x943a458, W=635, H=636)
at /home/dube/Projects/Rabot/Extlib/stage/libstage/canvas.cc:571
#2 0xb440b4e6 in Stg::Canvas::InitGl (this=0x943a458) at
/home/dube/Projects/Rabot/Extlib/stage/libstage/canvas.cc:113
#3 0xb4411194 in Stg::Canvas::resize (this=0x943a458, X=0, Y=30, W=635,
H=636)
at /home/dube/Projects/Rabot/Extlib/stage/libstage/canvas.cc:1290
#4 0xb41a430b in Fl_Group::resize(int, int, int, int) () from
/usr/lib/libfltk.so.1.1
#5 0xb41e04ac in Fl_Window::resize(int, int, int, int) () from
/usr/lib/libfltk.so.1.1
#6 0xb441a3bd in Fl_Widget::size (this=0x94390d8, W=635, H=666) at
/usr/include/FL/Fl_Widget.H:120
#7 0xb441849b in Stg::WorldGui::Load (this=0x9438e98, filename=0xbfae178c
"../Extlib/stage-trunk/worlds/simple.world")
at /home/dube/Projects/Rabot/Extlib/stage/libstage/worldgui.cc:282
#8 0xb446ba37 in InterfaceSimulation (this=0x9434fa8, addr=...,
driver=0x94350b0, cf=0x9430bd0, section=1)
at
/home/dube/Projects/Rabot/Extlib/stage/libstageplugin/p_simulation.cc:120
#9 0xb44681c7 in StgDriver (this=0x94350b0, cf=0x9430bd0, section=1)
at
/home/dube/Projects/Rabot/Extlib/stage/libstageplugin/p_driver.cc:338
#10 0xb44672f6 in StgDriver_Init (cf=0x9430bd0, section=1) at
/home/dube/Projects/Rabot/Extlib/stage/libstageplugin/p_driver.cc:187
#11 0xb7443013 in ConfigFile::ParseDriver (this=0x9430bd0, section=1)
at
/home/dube/Projects/Rabot/Extlib/player/libplayercore/configfile.cc:2240
#12 0xb7442d94 in ConfigFile::ParseAllDrivers (this=0x9430bd0)
at
/home/dube/Projects/Rabot/Extlib/player/libplayercore/configfile.cc:2177
#13 0x0804a1d8 in main (argc=2, argv=0xbfae2b44) at
/home/dube/Projects/Rabot/Extlib/player/server/server.cc:215
Daniel
Am 19.04.2010, 15:40 Uhr, schrieb Richard Vaughan <vaughan <at> sfu.ca>:
> Applied a similar fix in trunk as rev 8613. Thanks for the fix!
>
> Richard/
>
> 2010/4/16 Daniel Dube <Daniel.Dube <at> uni-tuebingen.de>:
>> Hi,
>>
>> we had the reproducible problem, that stage crashed on four of five
>> startups just after the simulation window appears. We noticed this
>> problem
>> on several Ubuntu 9.10 machines with attached intel graphic hardware. We
>> tested the trunk and 3.2.2 version with the same result. The problem did
>> not occur on machines with NVIDIA graphic boards.
>>
>> It seems that if Canvas::Resize() is called rather than
>> Canvas::InitGl(),
>> the intel driver produces a segmentation fault in the function
>> glLoadIdentity() called by Canvas::FixViewport().
>>
>> The following patch should fix this problem:
>>
>> --- libstage/canvas.cc (Revision 8612)
>> +++ libstage/canvas.cc (Arbeitskopie)
>> <at> <at> -1285,6 +1285,7 <at> <at>
>> void Canvas::resize(int X,int Y,int W,int H)
>> {
>> Fl_Gl_Window::resize(X,Y,W,H);
>> - FixViewport(W,H);
>> + if ( init_done )
>> + FixViewport(W,H);
>> invalidate();
>> }
>>
>>
>> Regards
>> Daniel
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Playerstage-developers mailing list
>> Playerstage-developers <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/playerstage-developers
>>
>
>
>
--
Daniel Dube
Eberhard-Karls-Universität Tübingen
Lehrstuhl Rechnerarchitektur
Sand 1, D-72076 Tübingen
Telefon: +49-7071-2977176, Fax: +49-7071-295091
E-Mail: Daniel.Dube <at> uni-tuebingen.de
http://www.ra.cs.uni-tuebingen.de/
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Playerstage-developers mailing list
Playerstage-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-developers