gcc ver: 4.0.0
proc: PPC G4 1.67Ghz
os: Mac OS X Tiger (10.4.2)
config line: --enable-debug --without-python --prefix=/Users/myuser/Development/cs-debug
notes: No errors in "jam" or "make all"
./walktest/...../walktest creates a segfault, if -relight is used, I get a Bus Error.
gdb with bt:
... more above this, but generic loading ...
Load TYPE plugin crystalspace.mesh.object.emit
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
crystalspace.engine.warning:
Couldn't load cached lighting for 131 object(s):
walls
walls
walls
teapot1
...
Use -relight cmd option to refresh lighting.
crystalspace.system:
Precaching all things...
Reading symbols for shared libraries . done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xffffffff
0x0fcf6de0 in csRef<iShadowCaster>::operator= (this=0xf8e9d80, newobj=0xffffffff) at ../CS/./include/csutil/ref.h:234
234 CSREF_TRACK_INCREF (newobj, this);
(gdb) bt
#0 0x0fcf6de0 in csRef<iShadowCaster>::operator= (this=0xf8e9d80, newobj=0xffffffff) at ../CS/./include/csutil/ref.h:234
#1 0x0fccde38 in csFrustumVis::RegisterVisObject (this=0xf8e9b60, visobj=0x21b3220) at ../CS/plugins/culling/frustvis/frustvis.cpp:256
#2 0x049b48c8 in csSector::RegisterEntireMeshToCuller (this=0xc7ca350, mesh=0x21b3228) at ../CS/plugins/engine/3d/sector.cpp:152
#3 0x049b4c44 in csSector::SetVisibilityCullerPlugin (this=0xc7ca350, plugname=0x4ac3514 "crystalspace.culling.frustvis", culler_params=0x0) at ../CS/plugins/engine/3d/sector.cpp:261
#4 0x049b2bcc in csSector::GetVisibilityCuller (this=0xc7ca350) at ../CS/plugins/engine/3d/sector.cpp:268
#5 0x04972600 in csEngine::PrecacheDraw (this=0x205e400, region=0x0) at ../CS/plugins/engine/3d/engine.cpp:1646
#6 0x0002eb24 in WalkTest::Initialize (this=0x2004e00, argc=1, argv=0xbffff970, iConfigName=0xe7d5c "/config/walktest.cfg") at ../CS/apps/walktest/walktest.cpp:1330
#7 0x0002fa0c in main (argc=1, argv=0xbffff970) at ../CS/apps/walktest/walktest.cpp:1483
with -relight:
Written by Matt Reda
<mreda@mac.com>
crystalspace.canvas.openglcommon.driverdb:
Applied: Work around broken ATI point sprites
Applied: ATI: Can't handle compressed formats for RECT textures
Applied: ATI: RECT texture extension support apparently sucks
crystalspace.canvas.openglcommon:
OpenGL renderer: ATI Radeon 9600 XT OpenGL Engine (vendor: ATI Technologies
Inc.) version 1.5 ATI-1.4.6
Using windowed mode at resolution 640x480.
Pixel format: Color: 0 Alpha: 0 Depth: 0 Stencil: 0 AccumColor: 0
AccumAlpha: 0 MultiSamples: 0
WARNING! Crystal Space performs better in 24 or 32 bit display mode!
Multisample: disabled
crystalspace.system:
Loading map 'flarge'.
Load TYPE plugin crystalspace.mesh.object.emit
crystalspace.engine.notify:
Lightmaps are not up to date (no 'lm_precalc_info' found in cache).
Recalculation of lightmaps forced.
Initializing lighting (149 meshes).
Shining lights (44 lights).
Reading symbols for shared libraries + done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
csFlags::Get (this=0x0) at ../CS/./include/csutil/flags.h:85
85 { return flags; }
(gdb) bt
#0 csFlags::Get (this=0x0) at ../CS/./include/csutil/flags.h:85
#1 0x0fc87e00 in CastShadows_Front2Back (treenode=0xfb05f20, userdata=0xbfffef4c, cur_timestamp=2, planes_mask=@0xbfffeeac) at ../CS/plugins/culling/frustvis/frustvis.cpp:1110
#2 0x0fc9989c in csKDTree::Front2Back (this=0xfb05f20, pos=@0xfb05884, func=0xfc87a84 <CastShadows_Front2Back(csKDTree*, void*, unsigned int, unsigned int&)>, userdata=0xbfffef4c, cur_timestamp=2, frustum_mask=0) at ../CS/libs/csgeom/kdtree.cpp:637
#3 0x0fc99c70 in csKDTree::Front2Back (this=0xfb05f20, pos=@0xfb05884, func=0xfc87a84 <CastShadows_Front2Back(csKDTree*, void*, unsigned int, unsigned int&)>, userdata=0xbfffef4c, frustum_mask=0) at ../CS/libs/csgeom/kdtree.cpp:698
#4 0x0fc8b054 in csFrustumVis::CastShadows (this=0xfb05e90, fview=0xbffff2b0) at ../CS/plugins/culling/frustvis/frustvis.cpp:1192
#5 0x049b3d84 in csSector::RealCheckFrustum (this=0xc702870, lview=0xbffff2b0) at ../CS/plugins/engine/3d/sector.cpp:826
#6 0x049b4648 in csSector::CheckFrustum (this=0xc702870, lview=0xbffff2b0) at ../CS/plugins/engine/3d/sector.cpp:816
#7 0x04987b60 in csLight::CalculateLighting (this=0xc7042a0) at ../CS/plugins/engine/3d/light.cpp:376
#8 0x0497b9f8 in csEngine::ShineLights (this=0x205e400, region=0x0, meter=0xa32f6f0) at ../CS/plugins/engine/3d/engine.cpp:1514
#9 0x0496f74c in csEngine::Prepare (this=0x205e400, meter=0xa32f6f0) at ../CS/plugins/engine/3d/engine.cpp:1187
#10 0x0002ea58 in WalkTest::Initialize (this=0x2004e00, argc=2, argv=0xbffff95c, iConfigName=0xe7d5c "/config/walktest.cfg") at ../CS/apps/walktest/walktest.cpp:1323
#11 0x0002fa0c in main (argc=2, argv=0xbffff95c) at ../CS/apps/walktest/walktest.cpp:1483
I believe this is a bug as it works perfect on my Desktop (Mac OS X Panther (10.3.9))