Ticket #87 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

Segmentation fault in updateStatus method

Reported by: Knut Landmark Owned by:
Priority: major Milestone:
Component: zoo-kernel Version:
Keywords: Cc:

Description (last modified by djay) (diff)

The Zoo kernel provides the option to store a status message in shared memory along with the status value (i.e. the progress in percent), see this ticket: http://zoo-project.org/trac/ticket/81. However, the current implementation of updateStatus (service_internal.c, revision # 452) does not check if getMapFromMaps(conf,"lenv","message") returns NULL. A segmentation fault occurs (line 115) if a message value has not been set in the service code before a call to updateStatus:

// OK:
setMapInMaps( conf, "lenv", "status", "99" );
setMapInMaps( conf, "lenv", "message", "Progress: 99%" );
updateStatus( conf );

// Segmentation fault:
setMapInMaps( conf, "lenv", "status", "99" );	
updateStatus( conf ); 

(Tested on a Window 7 system.)

Change History

Changed 9 years ago by landmark

  • component changed from Development platform to zoo-kernel

Changed 9 years ago by djay

  • status changed from new to closed
  • resolution set to fixed
  • description modified (diff)

This issue should be fixed in r453, I simply added the message map the [lenv] section when it is created in the zoo_service_loader.c file.

If anything wrong occurs with the following modifications, please feel free to re-open this ticket or to open a new one.

Note: See TracTickets for help on using tickets.


Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png