[Gpg4win-devel] gpgme++ crashes in std::string

Andre Heinecke aheinecke at intevation.de
Thu Jan 12 10:03:06 CET 2012


Hi,
I just want to give you a heads up that we have found the problem that made 
KDE-Windows crash when gpgme++ functions were called so that hopefully no one 
else will have to enjoy debugging those...

The problem was not in the gpgme/gpg4win stack but it was a compiler/libstdc++ 
bug. When we passed a std::string over dll boundaries a heap corruption took 
place. ( http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16612 )
We've fixed this by compiling gcc with the --enable-fully-dynamic-string 
configuration option. A preliminary test also showed that the problem is no 
longer happening with gcc 4.5 and 4.6 but for that we don't have tracked down 
the change that fixed it. (We still use 4.4)
(For more details see: https://bugs.kde.org/show_bug.cgi?id=269808 )

So if you run into strange crashes with some references to std_string in the 
backtrace, check for that compiler option :)

Btw. now that we tracked that bug down our Kontact Groupware Suite does 
integrate with gpg4win again ( see 
http://wiki.kolab.org/Kontact_for_Windows_(Enterprise-5) )

Regards,
Andre

-- 
Andre Heinecke |  ++49-541-335083-262 |  http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


More information about the Gpg4win-devel mailing list