[Cppcms-users] Segmentation fault on FreeBSD in high load
Brought to you by:
artyom-beilis
From: Vinicius P. <ds...@ha...> - 2012-08-07 02:33:22
|
Hi, I'm new to CppCMS and been doing some work on it, too see where I get. When I run the code on Linux/Gentoo it works fine, on FreeBSD it runs fine too, but on high loads it crashs (like when testing with siege). Can anyone help me on what may be wrong with it? It's my code, something on FreeBSD? By the way, I got 22k trans/sec with CppCMS on Gentoo, running the embedded web server, the Apache with static files is way bellow this. The performance gain from PHP to CppCMS is very impressive. Thanks in advance, Vinicius System: FreeBSD freebsd 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 ro...@am...:/usr/obj/usr/src/sys/GENERIC amd64 The gdb log is: ---------------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 804807400 (LWP 100101/wep)] 0x000000000061d870 in vtable for __cxxabiv1::__class_type_info () (gdb) bt #0 0x000000000061d870 in vtable for __cxxabiv1::__class_type_info () #1 0x0000000800939cb3 in cppcms::http::response::set_content_header (this=0x80ba7ac00, content_type=@0x7fffffffd590) at info.h:83 #2 0x000000080093b90b in response (this=0x80ba7ac00, context=@0x807bf75b0) at /root/work/cppcms-1.0.1/src/http_response.cpp:116 #3 0x000000080094953d in context (this=0x807bf75b0, conn=Variable "conn" is not available. ) at /root/work/cppcms-1.0.1/src/http_context.cpp:58 #4 0x0000000800a2dc07 in booster::callback<void ()(booster::system::error_code const&)>::callable_impl<void, cppcms::impl::cgi::socket_acceptor<cppcms::impl::cgi::http, cppcms::impl::cgi::http_creator>::accept_binder>::operator() (this=Variable "this" is not available. ) at cgi_acceptor.h:140 #5 0x0000000800cf9059 in operator() (this=0x8083feee0, e=Variable "e" is not available. ) at callback.h:211 #6 0x0000000800cee189 in booster::callback<void ()()>::callable_impl<void, booster::aio::event_loop_impl::event_handler_dispatcher>::operator() (this=Variable "this" is not available. ) at callback.h:211 #7 0x0000000800cef490 in booster::aio::event_loop_impl::run_one (this=0x804842200, evs=0x80480e000, evs_size=128) at callback.h:201 #8 0x0000000800cec349 in booster::aio::io_service::run (this=Variable "this" is not available. ) at /root/work/cppcms-1.0.1/booster/lib/aio/src/io_service.cpp:144 #9 0x0000000800918dde in cppcms::service::run (this=0x7fffffffda80) at /root/work/cppcms-1.0.1/src/service.cpp:574 #10 0x000000000040d472 in main (argc=Variable "argc" is not available. ) at wep.cpp:167 ---------------------- |