I built a single threaded Wt 2.2.2 (with -DMULTI_THREADED=Off), in an archlinux system with Boost 1.36.0. Whenever I run an example from CLI I get a segfault when I do the page request through the browser. I attach CLI ouput and GDB backtrace... any hints?
Cheers! --- [alfr...@imac:~/software/wt-2.2.2/build/examples/hello]$ ./hello.wt --docroot . --http-address 127.0.0.1 --http-port 8000 [2009-Jan-22 12:56:49.938729] 16628 - [notice] "Wt: initializing built-in httpd" [2009-Jan-22 12:56:49.938879] 16628 - [notice] "Reading Wt config file: /etc/wt/wt_config.xml (location = './hello.wt')" [2009-Jan-22 12:56:49.939275] 16628 - [notice] "Starting server: http://127.0.0.1:8000" [2009-Jan-22 12:56:49.939432] 16628 - [warn] "No boost thread support, running in main thread." [2009-Jan-22 12:56:54.274794] 16628 [/ 8wiz2YTuMgyDf4Ug] [notice] "Session created (#sessions = 1)" 127.0.0.1 - - [2009-Jan-22 12:56:54.275485] "GET / HTTP/1.1" 200 1624 Segmentation fault --- [alfr...@imac:~/software/wt-2.2.2/build/examples/hello]$ gdb ./hello.wt GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu"... (gdb) run --docroot . --http-address 127.0.0.1 --http-port 8000 Starting program: /home/alfredo/software/wt-2.2.2/build/examples/hello/hello.wt --docroot . -- http-address 127.0.0.1 --http-port 8000 [Thread debugging using libthread_db enabled] [New Thread 0x7f3bda894700 (LWP 16632)] [2009-Jan-22 12:57:19.029134] 16632 - [notice] "Wt: initializing built-in httpd" [2009-Jan-22 12:57:19.029260] 16632 - [notice] "Reading Wt config file: /etc/wt/wt_config.xml (location = '/home/alfredo/software/wt-2.2.2/build/examples/hello/hello.wt')" [2009-Jan-22 12:57:19.029585] 16632 - [notice] "Starting server: http://127.0.0.1:8000" [2009-Jan-22 12:57:19.029754] 16632 - [warn] "No boost thread support, running in main thread." [2009-Jan-22 12:57:22.781060] 16632 [/ guEFYkNOY2mxx4qG] [notice] "Session created (#sessions = 1)" 127.0.0.1 - - [2009-Jan-22 12:57:22.781773] "GET / HTTP/1.1" 200 1625 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7f3bda894700 (LWP 16632)] 0x00007f3bd99f8efe in boost::signals::connection::~connection () from /usr/lib/libboost_signals.so (gdb) bt #0 0x00007f3bd99f8efe in boost::signals::connection::~connection () from /usr/lib/libboost_signals.so #1 0x0000000000405660 in boost::detail::sp_counted_impl_p<boost::signals::detail::slot_base::data_t>::dispose ( this=<value optimized out>) at /usr/include/boost/signals/slot.hpp:32 warning: (Internal error: pc 0x7f3bd9fe7012 in read in psymtab, but not in symtab.) #2 0x00007f3bd9fe7013 in Wt::EventSignal<Wt::WResponseEvent>::connect<Wt::WApplication, Wt::WApplication> ( this=<value optimized out>, target=warning: (Internal error: pc 0x7f3bd9fe6da0 in read in psymtab, but not in symtab.) warning: (Internal error: pc 0x7f3bd9fe7012 in read in psymtab, but not in symtab.) 0xa444b0, method=warning: (Internal error: pc 0x7f3bd9fe7012 in read in psymtab, but not in symtab.) 0x7f3bd9fd74d0 <Wt::WApplication::handleJavaScriptResponse(Wt::WResponseEvent)>) at /usr/include/boost/detail/sp_counted_base_nt.hpp:79 #3 0x00007f3bd9fde2c4 in WApplication (this=0xa444b0, env=<value optimized out>) at /home/alfredo/software/wt-2.2.2/src/Wt/WApplication.C:163 #4 0x00000000004047af in HelloApplication (this=0x19, e...@0x7fffe28c8048) at /home/alfredo/software/wt-2.2.2/examples/hello/hello.C:39 #5 0x0000000000404a59 in createApplication (e...@0xa47c40) at /home/alfredo/software/wt-2.2.2/examples/hello/hello.C:75 #6 0x00007f3bda10fb10 in Wt::WebSession::start (this=0xa479b0, createApplication=0x404a30 <createApplication(Wt::WEnvironment const&)>) at /home/alfredo/software/wt-2.2.2/src/web/WebSession.C:246 #7 0x00007f3bda11e3a8 in Wt::WebController::handleRequest (this=0xa43e78, request=0xa438a0, ep=0xa46b40) at /home/alfredo/software/wt-2.2.2/src/web/WebController.C:600 #8 0x00007f3bda48e396 in http::server::WtReply::consumeRequestBody (this=0xa47470, begin=<value optimized out>, end=<value optimized out>, endOfRequest=<value optimized out>) at /home/alfredo/software/wt-2.2.2/src/http/WtReply.C:37 #9 0x00007f3bda45be81 in http::server::RequestParser::parseBody (this=0xa64290, req=<value optimized out>, reply=<value optimized out>, begin=<value optimized out>, end=<value optimized out>) at /home/alfredo/software/wt-2.2.2/src/http/RequestParser.C:115 #10 0x00007f3bda4486a0 in http::server::Connection::handleReadBody (this=0xa621b0) at /home/alfredo/software/wt-2.2.2/src/http/Connection.C:129 #11 0x00007f3bda44987b in http::server::Connection::handleReadRequest0 (this=0xa621b0) at /home/alfredo/software/wt-2.2.2/src/http/Connection.C:94 #12 0x00007f3bda449c7a in http::server::Connection::handleReadRequest (this=0xa621b0, e...@0x7fffe28c9300, bytes_transferred=436) at /home/alfredo/software/wt-2.2.2/src/http/Connection.C:118 #13 0x00007f3bda4865e0 in asio::detail::handler_queue::handler_wrapper<asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, http::server::Connection, asio::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<http::server::Connection> >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, asio::error_code, unsigned long> >::do_call ( base=<value optimized out>) at /usr/include/boost/bind/mem_fn_template.hpp:265 #14 0x00007f3bda45e792 in http::server::Server::run (this=<value optimized out>) at /usr/include/asio/detail/handler_queue.hpp:38 #15 0x00007f3bda48c2c2 in Wt::WServer::start (this=0x7fffe28c9710) at /home/alfredo/software/wt-2.2.2/src/http/WServer.C:154 #16 0x00007f3bda48d1fd in Wt::WRun (argc=7, argv=0x7fffe28c9838, createApplication=0x404a30 <createApplication(Wt::WEnvironment const&)>) at /home/alfredo/software/wt-2.2.2/src/http/WServer.C:306 #17 0x00007f3bd80a2546 in __libc_start_main () from /lib/libc.so.6 #18 0x0000000000404639 in _start () (gdb) -- Alfredo Beaumont Sainz http://www.alfredobeaumont.org/blog.cgi ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
