From 79a0be32272f466da346a243f622fd55ed9f134e Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Tue, 26 Jun 2018 17:38:31 +0200 Subject: [PATCH] debug SIGSEV at end of SALOME_SessionServer --- bin/PortManager.py | 6 +++--- src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) 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; -- 2.39.2