[GRASS-dev] [GRASS GIS] #2134: Create a general exit-safe interface to C libraries

GRASS GIS trac at osgeo.org
Tue Nov 19 04:17:07 PST 2013


#2134: Create a general exit-safe interface to C libraries
--------------------------------------------------+-------------------------
 Reporter:  wenzeslaus                            |       Owner:  grass-dev@…              
     Type:  enhancement                           |      Status:  new                      
 Priority:  normal                                |   Milestone:  7.0.0                    
Component:  Python ctypes                         |     Version:  svn-trunk                
 Keywords:  G_fatal_error, exit, multiprocessing  |    Platform:  All                      
      Cpu:  Unspecified                           |  
--------------------------------------------------+-------------------------

Comment(by glynn):

 Replying to [comment:4 zarch]:

 > Or as already suggested by Glynn (#1646) wrap the G_add_error_handler,

 Using an error handler allows you to avoid process termination. But once a
 fatal error has occurred, you cannot safely call any GRASS function; doing
 so may well result in a segfault.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2134#comment:6>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list