[GRASS-dev] [GRASS GIS] #1598: Exit call in some libs

GRASS GIS trac at osgeo.org
Sun Mar 4 15:09:48 EST 2012


#1598: Exit call in some libs
-------------------------+--------------------------------------------------
 Reporter:  volter       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  6.4.3                    
Component:  Default      |     Version:  6.4.2                    
 Keywords:  shared lib   |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 Some of the Grass libraries call exit. Probably you can do something about
 it!

 rpmlint -I shared-lib-calls-exit
 shared-lib-calls-exit:
 This library package calls exit() or _exit(), probably in a non-fork()
 context. Doing so from a library is strongly discouraged - when a library
 function calls exit(), it prevents the calling program from handling the
 error, reporting it to the user, closing files properly, and cleaning up
 any
 state that the program has. It is preferred for the library to return an
 actual error code and let the calling program decide how to handle the
 situation.

 grass-libs.x86_64: W: shared-lib-calls-exit
 /usr/lib64/libgrass_linkm.so.6.4.2 exit at GLIBC_2.2.5
 grass-libs.x86_64: W: shared-lib-calls-exit
 /usr/lib64/libgrass_edit.so.6.4.2 exit at GLIBC_2.2.5
 grass-libs.x86_64: W: shared-lib-calls-exit
 /usr/lib64/libgrass_sim.so.6.4.2 exit at GLIBC_2.2.5
 grass-libs.x86_64: W: shared-lib-calls-exit
 /usr/lib64/libgrass_dig2.so.6.4.2 exit at GLIBC_2.2.5
 grass-libs.x86_64: W: shared-lib-calls-exit
 /usr/lib64/libgrass_raster.so.6.4.2 exit at GLIBC_2.2.5
 grass-libs.x86_64: W: shared-lib-calls-exit
 /usr/lib64/libgrass_interpdata.so.6.4.2 exit at GLIBC_2.2.5
 grass-libs.x86_64: W: shared-lib-calls-exit
 /usr/lib64/libgrass_dbmidriver.so.6.4.2 exit at GLIBC_2.2.5
 grass-libs.x86_64: W: shared-lib-calls-exit
 /usr/lib64/libgrass_display.so.6.4.2 exit at GLIBC_2.2.5
 grass-libs.x86_64: W: shared-lib-calls-exit
 /usr/lib64/libgrass_sqlp.so.6.4.2 exit at GLIBC_2.2.5
 grass-libs.x86_64: W: shared-lib-calls-exit
 /usr/lib64/libgrass_cdhc.so.6.4.2 exit at GLIBC_2.2.5

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



More information about the grass-dev mailing list