-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 And....
myhello.wt is much smaller than original hello.wt ... - -rwxr-xr-x 1 scippio users 277K 28. led 15.52 hello.wt - -rwxr-xr-x 1 scippio users 40K 28. led 15.23 myhello.wt V.M. Václav Málek napsal(a): > Valgrad output... - ------------------------- Předmět: Re: [Wt-interest] problem with hello world :] Od: Václav Málek <[email protected]> Datum: Wed, 28 Jan 2009 13:53:40 +0100 Komu: Dushan Savich <[email protected]> Komu: Dushan Savich <[email protected]> - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, ok .. there it it :) ... and sorry for my english.. Otherwise.... examples compiling via cmakes runnig with no problems. == valgrind output == [scip...@jerry wt]$ valgrind --leak-check=yes ./myhello.wt - - --http-address 0.0.0.0 --http-port 8080 --docroot . ==15686== Memcheck, a memory error detector. ==15686== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==15686== Using LibVEX rev 1854, a library for dynamic binary translation. ==15686== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==15686== Using valgrind-3.3.1, a dynamic binary instrumentation framework. ==15686== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==15686== For more details, rerun with: -v ==15686== [2009-Jan-28 13:50:34.380103] 15686 - [notice] "Wt: initializing built-in httpd" [2009-Jan-28 13:50:34.780857] 15686 - [notice] "Reading Wt config file: /etc/wt/wt_config.xml (location = './myhello.wt')" [2009-Jan-28 13:50:35.583903] 15686 - [notice] "Starting server: http://0.0.0.0:8080" [2009-Jan-28 13:50:43.808942] 15686 [/ 3fnedv8fVhB4GjXh] [notice] "Session created (#sessions = 1)" Could not parse 'Cookie: __utmz=143290798.1232508421.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=143290798.4277259051505041400.1232508421.1232508421.1232511912.2; __gads=ID=5d803894050ff078:T=1232508421:S=ALNI_MaDa62oTkHawgl7ZBgMQT3f5D4x3A', stopped at: '=(direct)|utmccn=(direct)|utmcmd=(none); __utma=143290798.4277259051505041400.1232508421.1232508421.1232511912.2; __gads=ID=5d803894050ff078:T=1232508421:S=ALNI_MaDa62oTkHawgl7ZBgMQT3f5D4x3A' ==15686== Thread 10: ==15686== Conditional jump or move depends on uninitialised value(s) ==15686== at 0x47BA631: longest_match (in /usr/lib/libz.so.1.2.3.3) ==15686== by 0x47BBC6E: deflate_slow (in /usr/lib/libz.so.1.2.3.3) ==15686== by 0x47BAFAC: deflate (in /usr/lib/libz.so.1.2.3.3) ==15686== by 0x43C6A6B: http::server::Reply::encodeNextContentBuffer(std::vector<asio::const_buffer, std::allocator<asio::const_buffer> >&, int&, int&) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43C7CF5: http::server::Reply::nextBuffers(std::vector<asio::const_buffer, std::allocator<asio::const_buffer> >&) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43B675A: http::server::Connection::startWriteResponse() (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43B6BBF: http::server::Connection::handleWriteResponse() (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43B6CF4: http::server::Connection::handleWriteResponse(asio::error_code const&) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43FF4EE: asio::detail::write_handler<asio::basic_stream_socket<asio::ip::tcp, asio::stream_socket_service<asio::ip::tcp> >, std::vector<asio::const_buffer, std::allocator<asio::const_buffer> >, asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf1<void, http::server::Connection, asio::error_code const&>, boost::_bi::list2<boost::_bi::value<boost::shared_ptr<http::server::Connection> >> , boost::arg<1> (*)()> > >::operator()(asio::error_code const&, unsigned) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43FFE8E: asio::detail::handler_queue::handler_wrapper<asio::detail::binder2<asio::detail::write_handler<asio::basic_stream_socket<asio::ip::tcp, asio::stream_socket_service<asio::ip::tcp> >, std::vector<asio::const_buffer, std::allocator<asio::const_buffer> >, asio::detail::transfer_all_t, boost::_bi::bind_t<void, asio::detail::transfer_all_t::_mfi::mf1<void, http::server::Connection, asio::error_code const&>, boost::list2<boost::value<asio::detail::transfer_all_t::shared_ptr<http::server> >> , asio::detail::transfer_all_t::arg<1> (*)()> > >, http::server::Connection, unsigned> >> ::do_call(asio::detail::handler_queue::handler*) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43E28F9: asio::detail::task_io_service<asio::detail::epoll_reactor<false> >> ::run(asio::error_code&) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43D3C79: http::server::Server::run() (in /usr/lib/libwthttp.so.2.2.1) ==15686== ==15686== Conditional jump or move depends on uninitialised value(s) ==15686== at 0x47BA5C1: longest_match (in /usr/lib/libz.so.1.2.3.3) ==15686== by 0x47BBC6E: deflate_slow (in /usr/lib/libz.so.1.2.3.3) ==15686== by 0x47BAFAC: deflate (in /usr/lib/libz.so.1.2.3.3) ==15686== by 0x43C6A6B: http::server::Reply::encodeNextContentBuffer(std::vector<asio::const_buffer, std::allocator<asio::const_buffer> >&, int&, int&) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43C7CF5: http::server::Reply::nextBuffers(std::vector<asio::const_buffer, std::allocator<asio::const_buffer> >&) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43B675A: http::server::Connection::startWriteResponse() (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43B6BBF: http::server::Connection::handleWriteResponse() (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43B6CF4: http::server::Connection::handleWriteResponse(asio::error_code const&) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43FF4EE: asio::detail::write_handler<asio::basic_stream_socket<asio::ip::tcp, asio::stream_socket_service<asio::ip::tcp> >, std::vector<asio::const_buffer, std::allocator<asio::const_buffer> >, asio::detail::transfer_all_t, boost::_bi::bind_t<void, boost::_mfi::mf1<void, http::server::Connection, asio::error_code const&>, boost::_bi::list2<boost::_bi::value<boost::shared_ptr<http::server::Connection> >> , boost::arg<1> (*)()> > >::operator()(asio::error_code const&, unsigned) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43FFE8E: asio::detail::handler_queue::handler_wrapper<asio::detail::binder2<asio::detail::write_handler<asio::basic_stream_socket<asio::ip::tcp, asio::stream_socket_service<asio::ip::tcp> >, std::vector<asio::const_buffer, std::allocator<asio::const_buffer> >, asio::detail::transfer_all_t, boost::_bi::bind_t<void, asio::detail::transfer_all_t::_mfi::mf1<void, http::server::Connection, asio::error_code const&>, boost::list2<boost::value<asio::detail::transfer_all_t::shared_ptr<http::server> >> , asio::detail::transfer_all_t::arg<1> (*)()> > >, http::server::Connection, unsigned> >> ::do_call(asio::detail::handler_queue::handler*) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43E28F9: asio::detail::task_io_service<asio::detail::epoll_reactor<false> >> ::run(asio::error_code&) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x43D3C79: http::server::Server::run() (in /usr/lib/libwthttp.so.2.2.1) 10.70.0.38 - - [2009-Jan-28 13:50:44.956211] "GET / HTTP/1.1" 200 1623 ==15686== ==15686== Thread 11: ==15686== Invalid read of size 1 ==15686== at 0x402577B: strcmp (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==15686== by 0x4123AE6: boost::detail::function::functor_manager<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Wt::WObject>, boost::_bi::list1<boost::_bi::value<Wt::WObject*> > > >> ::manage(boost::detail::function::function_buffer const&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type) (in /usr/lib/libwt.so.2.2.1) ==15686== by 0x804BDA0: boost::any::holder<boost::function0<void> >> ::~holder() (in /home/scippio/sources/linjab/myhello.wt) ==15686== by 0x4584FDE: boost::signals::detail::named_slot_map::insert(boost::signals::detail::stored_group const&, boost::signals::connection const&, boost::any const&, boost::signals::connect_position) (in /usr/lib/libboost_signals-mt.so) ==15686== by 0x4588530: boost::signals::detail::signal_base_impl::connect_slot(boost::any const&, boost::signals::detail::stored_group const&, boost::shared_ptr<boost::signals::detail::slot_base::data_t>, boost::signals::connect_position) (in /usr/lib/libboost_signals-mt.so) ==15686== by 0x804C4CB: boost::signal0<void, boost::last_value<void>, int, std::less<int>, boost::function0<void> >> ::connect(boost::slot<boost::function0<void> > const&, boost::signals::connect_position) (in /home/scippio/sources/linjab/myhello.wt) ==15686== by 0x41E1BEA: Wt::EventSignalBase::connect(void (Wt::WObject::*)(), Wt::WObject*, Wt::WStatelessSlot*) (in /usr/lib/libwt.so.2.2.1) ==15686== by 0x413F7E6: boost::signals::connection Wt::EventSignal<void>::connect<Wt::WWidget, Wt::WWidget>(Wt::WWidget*, void (Wt::WWidget::*)()) (in /usr/lib/libwt.so.2.2.1) ==15686== by 0x413758E: Wt::WApplication::setLoadingIndicator(Wt::WLoadingIndicator*) (in /usr/lib/libwt.so.2.2.1) ==15686== by 0x413AF6B: Wt::WApplication::WApplication(Wt::WEnvironment const&) (in /usr/lib/libwt.so.2.2.1) ==15686== by 0x804AFAD: HelloApplication::HelloApplication(Wt::WEnvironment const&) (in /home/scippio/sources/linjab/myhello.wt) ==15686== by 0x804B278: createApplication(Wt::WEnvironment const&) (in /home/scippio/sources/linjab/myhello.wt) ==15686== Address 0x8b14ec83 is not stack'd, malloc'd or (recently) free'd ==15686== ==15686== Process terminating with default action of signal 11 (SIGSEGV) ==15686== Access not within mapped region at address 0x8B14EC83 ==15686== at 0x402577B: strcmp (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==15686== by 0x4123AE6: boost::detail::function::functor_manager<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Wt::WObject>, boost::_bi::list1<boost::_bi::value<Wt::WObject*> > > >> ::manage(boost::detail::function::function_buffer const&, boost::detail::function::function_buffer&, boost::detail::function::functor_manager_operation_type) (in /usr/lib/libwt.so.2.2.1) ==15686== by 0x804BDA0: boost::any::holder<boost::function0<void> >> ::~holder() (in /home/scippio/sources/linjab/myhello.wt) ==15686== by 0x4584FDE: boost::signals::detail::named_slot_map::insert(boost::signals::detail::stored_group const&, boost::signals::connection const&, boost::any const&, boost::signals::connect_position) (in /usr/lib/libboost_signals-mt.so) ==15686== by 0x4588530: boost::signals::detail::signal_base_impl::connect_slot(boost::any const&, boost::signals::detail::stored_group const&, boost::shared_ptr<boost::signals::detail::slot_base::data_t>, boost::signals::connect_position) (in /usr/lib/libboost_signals-mt.so) ==15686== by 0x804C4CB: boost::signal0<void, boost::last_value<void>, int, std::less<int>, boost::function0<void> >> ::connect(boost::slot<boost::function0<void> > const&, boost::signals::connect_position) (in /home/scippio/sources/linjab/myhello.wt) ==15686== by 0x41E1BEA: Wt::EventSignalBase::connect(void (Wt::WObject::*)(), Wt::WObject*, Wt::WStatelessSlot*) (in /usr/lib/libwt.so.2.2.1) ==15686== by 0x413F7E6: boost::signals::connection Wt::EventSignal<void>::connect<Wt::WWidget, Wt::WWidget>(Wt::WWidget*, void (Wt::WWidget::*)()) (in /usr/lib/libwt.so.2.2.1) ==15686== by 0x413758E: Wt::WApplication::setLoadingIndicator(Wt::WLoadingIndicator*) (in /usr/lib/libwt.so.2.2.1) ==15686== by 0x413AF6B: Wt::WApplication::WApplication(Wt::WEnvironment const&) (in /usr/lib/libwt.so.2.2.1) ==15686== by 0x804AFAD: HelloApplication::HelloApplication(Wt::WEnvironment const&) (in /home/scippio/sources/linjab/myhello.wt) ==15686== by 0x804B278: createApplication(Wt::WEnvironment const&) (in /home/scippio/sources/linjab/myhello.wt) ==15686== ==15686== ERROR SUMMARY: 23 errors from 3 contexts (suppressed: 49 from 1) ==15686== malloc/free: in use at exit: 151,033 bytes in 2,628 blocks. ==15686== malloc/free: 4,338 allocs, 1,710 frees, 532,250 bytes allocated. ==15686== For counts of detected errors, rerun with: -v ==15686== searching for pointers to 2,628 not-freed blocks. ==15686== checked 84,340,588 bytes. ==15686== ==15686== Thread 1: ==15686== ==15686== 1,440 bytes in 10 blocks are possibly lost in loss record 118 of 128 ==15686== at 0x4022E22: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==15686== by 0x40118EB: _dl_allocate_tls (in /lib/ld-2.9.so) ==15686== by 0x498A78A: pthread_create@@GLIBC_2.1 (in /lib/libpthread-2.9.so) ==15686== by 0x498B027: pthread_cre...@glibc_2.0 (in /lib/libpthread-2.9.so) ==15686== by 0x4401847: Wt::WServer::start() (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x440248C: Wt::WRun(int, char**, Wt::WApplication* (*)(Wt::WEnvironment const&)) (in /usr/lib/libwthttp.so.2.2.1) ==15686== by 0x804AF09: main (in /home/scippio/sources/linjab/myhello.wt) ==15686== ==15686== ==15686== 7,375 bytes in 178 blocks are possibly lost in loss record 122 of 128 ==15686== at 0x402477E: operator new(unsigned) (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==15686== by 0x4622F0F: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.10) ==15686== by 0x4623BA4: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/libstdc++.so.6.0.10) ==15686== by 0x4623DC1: std::string::string(char const*, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.10) ==15686== by 0x4977A31: (within /usr/lib/libboost_filesystem-mt.so) ==15686== by 0x4977F8C: (within /usr/lib/libboost_filesystem-mt.so) ==15686== by 0x496F5E3: (within /usr/lib/libboost_filesystem-mt.so) ==15686== by 0x400E993: call_init (in /lib/ld-2.9.so) ==15686== by 0x400EAC3: _dl_init (in /lib/ld-2.9.so) ==15686== by 0x400084E: (within /lib/ld-2.9.so) ==15686== ==15686== LEAK SUMMARY: ==15686== definitely lost: 0 bytes in 0 blocks. ==15686== possibly lost: 8,815 bytes in 188 blocks. ==15686== still reachable: 142,218 bytes in 2,440 blocks. ==15686== suppressed: 0 bytes in 0 blocks. ==15686== Reachable blocks (those to which a pointer was found) are not shown. ==15686== To see them, rerun with: --leak-check=full --show-reachable=yes Zabit (SIGKILL) thank you... V.M. Dushan Savich napsal(a): >> Hi Václav , Could you please do the valgrind and send us the >> output? I smell the path to the boost libraries being involved >> :-) >> >> Cheers! Dushan >> >> >> / / <http://valgrind.org/> >> >> >> Václav Málek wrote: Hello, >> >> first... wt is great! I take it for building social development >> portal.. .;D But ... when I compiling hello world example with >> standard commands (no cmake): >> >> Checking for C library wt... (cached) yes Checking for C library >> wthttp... (cached) yes scons: done reading SConscript files. >> scons: Building targets ... g++ -o hello.o -c -O2 -Wno-deprecated >> -Wall hello.cpp g++ -o myhello.wt hello.o -L/usr/lib -lwt >> -lwthttp scons: done building targets. [scip...@jerry wt]$ >> ./myhello.wt --docroot . --http-address 0.0.0.0 --http-port 8080 >> [2009-Jan-28 09:50:18.593933] 19438 - [notice] "Wt: initializing >> built-in httpd" [2009-Jan-28 09:50:18.594248] 19438 - [notice] >> "Reading Wt config file: /etc/wt/wt_config.xml (location = >> './myhello.wt')" [2009-Jan-28 09:50:18.595579] 19438 - [notice] >> "Starting server: http://0.0.0.0:8080" [2009-Jan-28 >> 09:50:29.143478] 19438 [/ 5tJuDbunz75ggBnF] [notice] "Session >> created (#sessions = 1)" Could not parse 'Cookie: >> __utmz=225408769.1231769288.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); >> >> >> __utma=225408769.901865729986911200.1231769288.1231769288.1231771284.2', >> stopped at: '=(direct)|utmccn=(direct)|utmcmd=(none); >> __utma=225408769.901865729986911200.1231769288.1231769288.1231771284.2' >> 127.0.0.1 - - [2009-Jan-28 09:50:29.146270] "GET / HTTP/1.1" 200 >> 1622 Neoprávněný přístup do paměti (SIGSEGV) >> >> :( >> >> Please, what I forget? :( >>> - - - ------------------------------------------------------------------------------ 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 - - -- Václav Málek Email: [email protected] Tel: +420 723 913 552 JID: [email protected] WWW: http://www.2ants.eu - -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmAVVEACgkQrYc0wbmFUUvDrQCfXCz9AB3llyaSLoyDNczdK8Pj /EoAn07WzsFRHzMQnmNdYWURRfu55g9V =FocM - -----END PGP SIGNATURE----- - ------------------------- - ------------------------------------------------------------------------------ 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 - -- Václav Málek Email: [email protected] Tel: +420 723 913 552 JID: [email protected] WWW: http://www.2ants.eu -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmBaOUACgkQrYc0wbmFUUv1SgCfTQr49Izp4Ao2o1so1XFDK9nP giAAoLn6v4Ocvp3jX0gISOseSdrA7ORC =M9nA -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ 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
