Crystal Space
Welcome, Guest. Please login or register.
November 29, 2014, 05:10:29 am

Login with username, password and session length
Search:     Advanced search
9026 Posts in 2046 Topics by 9158 Members
Latest Member: Virginiarude
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Project Development
| |-+  Bug Reports
| | |-+  CVS Mac OS X (10.4.2) - Segmentation Fault on demo apps
« previous next »
Pages: [1] Print
Author Topic: CVS Mac OS X (10.4.2) - Segmentation Fault on demo apps  (Read 8726 times)
Micah
Guest


Email
« on: August 09, 2005, 04:41:44 am »

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:
Code:
... 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:
Code:
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))
Logged
Micah
Guest


Email
« Reply #1 on: August 09, 2005, 02:54:06 pm »

  Mac OS X Tiger defaults to gcc 4.0; after switching to gcc 3.3 and recompiling, everything worked on first try. (do this by "gcc_select 3.3")

 Not a fix, but a solution none the less...
Logged
mounterriver
Guest


Email
« Reply #2 on: September 02, 2005, 03:37:19 am »

I compiled the crystal space with gcc 4.0 on linux, the same segmentation fault occurs
Logged
dingobloo
Idle Extrordinare.
Global Moderator
Full Member
*****
Posts: 125


View Profile WWW
« Reply #3 on: October 23, 2005, 06:00:01 am »

This is because gcc 4.0 has problems with CS, using gcc 3, or newer gcc 4.0 is the solution to this problem.
Logged
evought
Newbie
*
Posts: 9


View Profile Email
« Reply #4 on: November 15, 2005, 04:35:58 am »

This is because gcc 4.0 has problems with CS, using gcc 3, or newer gcc 4.0 is the solution to this problem.


Yes, XCode 2.2 (gcc 4.0.1) works.
Logged
bigbigchina7
Newbie
*
Posts: 4


View Profile Email
« Reply #5 on: April 07, 2010, 12:42:48 pm »

thanks for your post ,that will be help !
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 8.902 seconds with 17 queries.