From: Paul RASCLE Date: Tue, 26 Jun 2018 15:38:31 +0000 (+0200) Subject: debug SIGSEV at end of SALOME_SessionServer X-Git-Tag: SHAPER_V9_1_0RC1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=79a0be32272f466da346a243f622fd55ed9f134e;p=modules%2Fkernel.git debug SIGSEV at end of SALOME_SessionServer --- diff --git a/bin/PortManager.py b/bin/PortManager.py index c842c7e71..345af4e41 100644 --- a/bin/PortManager.py +++ b/bin/PortManager.py @@ -35,11 +35,11 @@ __PORT_MAX_NUMBER = 2910 import logging def createLogger(): logger = logging.getLogger(__name__) -# logger.setLevel(logging.DEBUG) - logger.setLevel(logging.INFO) + logger.setLevel(logging.DEBUG) + #logger.setLevel(logging.INFO) ch = logging.StreamHandler() ch.setLevel(logging.DEBUG) - formatter = logging.Formatter("%(levelname)s:%(threadName)s:%(message)s") + formatter = logging.Formatter("%(levelname)s:%(threadName)s:%(pathname)s[%(lineno)s]%(message)s") ch.setFormatter(formatter) logger.addHandler(ch) return logger diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index e0814bab1..6e5d07f2c 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -172,9 +172,12 @@ void SALOMEDSImpl_Study::Init() //============================================================================ void SALOMEDSImpl_Study::Clear() { - delete _builder; - delete _cb; - delete _useCaseBuilder; + if (_builder) delete _builder; + _builder = NULL; + if (_cb) delete _cb; + _cb = NULL; + if (_useCaseBuilder) delete _useCaseBuilder; + _useCaseBuilder = NULL; URL(""); _appli->Close(_doc); _doc = NULL;