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

GRASS GIS trac at osgeo.org
Tue May 18 11:02:02 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                
 Keywords:             |    Platform:  MacOSX                   
      Cpu:  OSX/Intel  |  
-----------------------+----------------------------------------------------
 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.

 From the OSX crashlog:

 {{{
 OS Version:      Mac OS X 10.6.3 (10D573)
 Report Version:  6

 Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
 Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fff5f3fec50
 Crashed Thread:  0  Dispatch queue: com.apple.main-thread

 Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
 0   libgrass_gis.dylib                  0x000000010006d364 vfprint_error +
 20
 1   libgrass_gis.dylib                  0x000000010006db22 G_fatal_error +
 170
 2   libgrass_gis.dylib                  0x000000010006d046 G_getenv + 37
 3   libgrass_gis.dylib                  0x000000010006d468 vfprint_error +
 280
 4   libgrass_gis.dylib                  0x000000010006db22 G_fatal_error +
 170
 5   libgrass_gis.dylib                  0x000000010006d046 G_getenv + 37
 6   libgrass_gis.dylib                  0x000000010006d468 vfprint_error +
 280
 7   libgrass_gis.dylib                  0x000000010006db22 G_fatal_error +
 170
 ...
 }}}

 This repeats for about 510 lines.  I believe it should be printing a
 message that I need to run the module within a GRASS session.

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


More information about the grass-dev mailing list