[GRASS-dev] Re: [GRASS GIS] #1073: G_fatal_error segfault outside of GRASS session

GRASS GIS trac at osgeo.org
Tue May 18 13:17:52 EDT 2010


#1073: G_fatal_error segfault outside of GRASS session
------------------------+---------------------------------------------------
  Reporter:  kyngchaos  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect     |      Status:  new                      
  Priority:  normal     |   Milestone:  6.4.0                    
 Component:  default    |     Version:  6.4.0 RCs                
Resolution:             |    Keywords:                           
  Platform:  MacOSX     |         Cpu:  OSX/Intel                
------------------------+---------------------------------------------------
Comment (by glynn):

 Replying to [ticket:1073 kyngchaos]:
 > When any module is run outside of a GRASS session, G_fatal_error itself
 segfaults.  This causes a loop for a while until the system gives up.

 In 7.0, r40465 was made to protect against infinite recursion. At that
 time, it was determined that the issue couldn't arise with 6.x, but either
 that was incorrect or something has changed.

 AFAICT, the issue is due to log_error calling G_gisbase(); I have no idea
 why it's doing this, as it uses the result as a truth value, but
 G_gisbase() ends up calling G_fatal_error() if GISBASE is unset.

 In any case, something similar to r40465 will work for 6.x.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1073#comment:1>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list