[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

CrystalSpace (PlaneShift) SIGSEGV - gcc bug?



Following this guide: http://laanx.fragnetics.com/debian.php

I have compiled PlaneShift from CVS (re-co'ing) for 3 days in a row. It
segfaults, every time. So I looked deeper, and went on #planeshift and
#crystalspace on freenode, and I got a little more info. Apparently
CrystalSpace has some test apps, and one of them is walktest. I was told
to try this test app out, and lo and behold, same segfault.

Went into #crystalspace and an op told me that he's heard of this crash
but he never figured out what caused it or why. I believe he said it
might be some kind of gcc bug, so if it is it must be Debian (sid)
specific, so thats why I am posting here, and to see if any of you have
had luck building all of PlaneShift or CrystalSpace on Debian.

For reference, here are the backtraces:

meff@ghreen:~/programs/planeshift/CS$ gdb ./walktest
GNU gdb 6.3-debian
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 "i386-linux"...Using host libthread_db
library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run
Starting program: /home/meff/programs/planeshift/CS/walktest
[Thread debugging using libthread_db enabled]
[New Thread 1076337376 (LWP 3219)]
crystalspace.maploader: Could not get sound driver

crystalspace.system:
  Crystal Space version 0.99 r0 [Unix-x86-GCC] (Mon 7-Jul-2004).
  Created by Jorrit Tyberghein and others...

crystalspace.canvas.glx2d:
  Opening GLX2D
  Creating Context
  Video driver GL/X version indirect renderer
  Visual ID: 21, 24bit TrueColor
  R8:G8:B8:A0,
  level 0, double buffered
Xlib:  extension "XFree86-DRI" missing on display ":0.0".

crystalspace.canvas.openglcommon:
  OpenGL renderer: GeForce4 MX 440/AGP/SSE2 (vendor: NVIDIA Corporation)
  version 1.5.2 NVIDIA 66.29
  Using windowed mode at resolution 640x480.
  Pixel format: Color: 24 Alpha: 0 Depth: 24 Stencil: 8 AccumColor: 24
  AccumAlpha: 0 MultiSamples: 0

crystalspace.system:
  Loading map 'flarge'.
Load TYPE plugin crystalspace.mesh.object.emit

crystalspace.engine.warning:
  Lightmaps are not up to date (no 'lm_precalc_info' found in cache).
  Use -relight cmd option to calc lighting.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076337376 (LWP 3219)]
0x41108a49 in csImageFile::Rescale (this=0x828ea80, newwidth=-1,
newheight=-1)
    at libs/csgfx/csimage.cpp:218
218           RESIZE (csRGBpixel, Image)
(gdb) bt
#0  0x41108a49 in csImageFile::Rescale (this=0x828ea80, newwidth=-1,
    newheight=-1) at libs/csgfx/csimage.cpp:218
#1  0x4039afc4 in csGLTextureHandle::AdjustSizePo2 (this=0x828f2c8)
    at plugins/video/render3d/opengl/gl_txtmgr.cpp:347
#2  0x4039ab3b in csGLTextureHandle::PrepareInt (this=0x828f2c8)
    at plugins/video/render3d/opengl/gl_txtmgr.cpp:284
#3  0x4039a86e in csGLTextureHandle::GetRendererDimensions
(this=0x828f2c8,
    mw=@0xbffff02c, mh=@0xbffff028)
    at plugins/video/render3d/opengl/gl_txtmgr.cpp:201
#4  0x419ea64e in csPolygon3DStatic::CreateBoundingTextureBox
(this=0x84360a8)
    at plugins/mesh/thing/object/polygon.cpp:529
#5  0x419eb13d in csPolygon3DStatic::Finish (this=0x84360a8,
    thing_logparent=0x84700d0) at
plugins/mesh/thing/object/polygon.cpp:598
#6  0x419cc115 in csThingStatic::Prepare (this=0x8470260,
    thing_logparent=0x84700d0) at
plugins/mesh/thing/object/thing.cpp:267
#7  0x419d280b in csThing::Prepare (this=0x8470490)
    at plugins/mesh/thing/object/thing.cpp:1819
#8  0x419d4745 in csThing::ReadFromCache (this=0x8470490,
cache_mgr=0x8418c80)
    at plugins/mesh/thing/object/thing.cpp:2346
#9  0x419e5a52 in csThing::LightingInfo::ReadFromCache (this=0x847058c,
    cache_mgr=0x8418c80) at thing.h:1002
#10 0x407b1e6b in csEngine::ShineLights (this=0x81bf540, region=0x0,
    meter=0x85b5598) at plugins/engine/3d/engine.cpp:1584
---Type <return> to continue, or q <return> to quit---
#11 0x407b117a in csEngine::Prepare (this=0x81bf540, meter=0x85b5598)
    at plugins/engine/3d/engine.cpp:1294
#12 0x080b98c8 in WalkTest::Initialize (this=0x819a008, argc=1,
    argv=0xbffff874, iConfigName=0x8177450 "/config/walktest.cfg")
    at apps/walktest/walktest.cpp:1430
#13 0x080ba376 in main (argc=1, argv=0xbffff874)
    at apps/walktest/walktest.cpp:1589
(gdb)



meff@ghreen:~/programs/planeshift/planeshift$ gdb ./updater
GNU gdb 6.3-debian
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 "i386-linux"...Using host libthread_db
library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run
Starting program: /home/meff/programs/planeshift/planeshift/updater
[Thread debugging using libthread_db enabled]
[New Thread 1077975136 (LWP 3252)]

crystalspace.canvas.glx2d:
  Opening GLX2D
  Creating Context
  Video driver GL/X version indirect renderer
  Visual ID: 21, 24bit TrueColor
  R8:G8:B8:A0,
  level 0, double buffered
Xlib:  extension "XFree86-DRI" missing on display ":0.0".

crystalspace.canvas.openglcommon:
  OpenGL renderer: GeForce4 MX 440/AGP/SSE2 (vendor: NVIDIA Corporation)
  version 1.5.2 NVIDIA 66.29
  Using windowed mode at resolution 640x480.
  Pixel format: Color: 24 Alpha: 0 Depth: 24 Stencil: 8 AccumColor: 24
  AccumAlpha: 0 MultiSamples: 0
Critical files (<critical>) not found (Server only)

planeshift.updater.application:
  psUpdaterEngine initialized.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1077975136 (LWP 3252)]
0x40f395ea in csImageFile::Rescale (this=0x83032c0, newwidth=-1,
newheight=-1)
    at libs/csgfx/csimage.cpp:218
218           RESIZE (csRGBpixel, Image)
(gdb) bt
#0  0x40f395ea in csImageFile::Rescale (this=0x83032c0, newwidth=-1,
    newheight=-1) at libs/csgfx/csimage.cpp:218
#1  0x405cafc4 in csGLTextureHandle::AdjustSizePo2 (this=0x83033c0)
    at plugins/video/render3d/opengl/gl_txtmgr.cpp:347
#2  0x405cab3b in csGLTextureHandle::PrepareInt (this=0x83033c0)
    at plugins/video/render3d/opengl/gl_txtmgr.cpp:284
#3  0x405ca86e in csGLTextureHandle::GetRendererDimensions
(this=0x83033c0,
    mw=@0xbffff2ac, mh=@0xbffff2a8)
    at plugins/video/render3d/opengl/gl_txtmgr.cpp:201
#4  0x405b5147 in csGLGraphics3D::DrawPixmap (this=0x823fc38,
hTex=0x83033c0,
    sx=160, sy=180, sw=320, sh=120, tx=0, ty=0, tw=128, th=128, Alpha=0
'\0')
    at plugins/video/render3d/opengl/gl_render3d.cpp:1938
#5  0x0815eb50 in csSimplePixmap::DrawScaled (this=0x831ac40,
g3d=0x823fc38,
    sx=160, sy=180, sw=320, sh=120, Alpha=0 '\0')
    at libs/cstool/cspixmap.cpp:50
#6  0x080f8dea in pawsImage::Draw (this=0x831ac40, rect=
      {_vptr.csRect = 0x81ec048, xmin = 160, ymin = 180, xmax = 480,
ymax = 300}) at src/common/paws/pawstexturemanager.cpp:253
#7  0x0811209b in pawsWidget::DrawBackground (this=0x831ae50)
    at src/common/paws/pawswidget.cpp:902
#8  0x08112340 in pawsWidget::Draw (this=0x831ae50)
    at src/common/paws/pawswidget.cpp:934
#9  0x080d62a0 in pawsServerList::Draw (this=0x831ae50)
---Type <return> to continue, or q <return> to quit---
    at src/updater/pawsserverlist.cpp:180
#10 0x08112d38 in pawsWidget::DrawChildren (this=0x8308b60)
    at src/common/paws/pawswidget.cpp:1064
#11 0x080e13c8 in PawsManager::Draw (this=0x827f508)
    at src/common/paws/pawsmanager.cpp:385
#12 0x080d1516 in psUpdaterEngine::HandleEvent (this=0x8231648,
ev=@0x820e5a8)
    at src/updater/psupdaterengine.cpp:218
#13 0x080d44e9 in psUpdaterEngine::EventHandler::HandleEvent
(this=0x8334da0,
    ev=@0x820e5a8) at psupdaterengine.h:99
#14 0x081a8fea in csEventQueue::Notify (this=0x82320a8, pseudo_event=10)
    at libs/csutil/cseventq.cpp:219
#15 0x081a9118 in csEventQueue::Process (this=0x82320a8)
    at libs/csutil/cseventq.cpp:236
#16 0x081c578d in csDefaultRunLoop (r=0x822cf00)
    at libs/csutil/generic/runloop.cpp:81
#17 0x080d32b5 in main (argc=1, argv=0xbffff864)
    at src/updater/psupdaterengine.cpp:703
(gdb)



Any help is appreciated :)
-r


-- 
Rodney Gordon II (meff)             |         meff <at> pobox <dot> com

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: