LP Bug 1025567: Service initialization segfaults upon adapter loading. Do not use static TmpFileNameTemplateDefault std::string when initializing Service because Service may be initialized during static initialization, and the string may not be initialized before Service. https://bugs.launchpad.net/ecap/+bug/1025567 Index: src/Service.cc =================================================================== --- src/Service.cc (revision 13269) +++ src/Service.cc (working copy) @@ -35,7 +35,6 @@ mode(aMode), vbAccumulationLimit(0), blockOnError(false), - tmpFileNameTemplate(TmpFileNameTemplateDefault), lastDbUpdate(0) { } @@ -90,6 +89,8 @@ } void Adapter::Service::setAll(const Options &cfg) { + tmpFileNameTemplate = TmpFileNameTemplateDefault; + Cfgtor cfgtor(*this); cfg.visitEachOption(cfgtor);