Running the application from the command line don't cause any problem. The git source was built using the bootstrap script in the package, however the version fastcgi++-2.0beta-6852ded9 built with ./configure && make has the same problem. The app run on a debian stable (a chrooted environment) with boost 1.35.
I add your "debug" code, the source of the application is at the end of this email.
When I start the apache end kill it without call the fcgi application on the browser, no error is reported. When I start the apache, call the fcgi, this log is reported (as correct):
Whenever I stop apache after a call on the fcgi application, the error is reported by syslogd at /var/log/message
Aug 12 13:59:30 ubuntudev kernel: [154439.084532] test.fcgi[6573]: segfault at 0 ip b77db2e8 sp bfd0e0d0 error 4 in libfastcgipp.so.2.0.0[b77d2000+73000]
class Echo: public Fastcgipp::Request<wchar_t> { bool response()
{ error_log("Echo::response()"); out << "Content-Type: text/html; charset=utf-8\r\n\r\n"; out << "Hallo\n";