Bug #6707
closedWT 3.3.11 crashes on Debian 8 during HTTP server initialization
0%
Description
This happens on latest Debian 8.11 distrib (fully updated).
Tried boost versions from 1.55 to 1.68, same result.
Tried WT 3 from GIT, same result.
Valgring log:
00:00:00:09.013 5314 Invalid write of size 1
00:00:00:09.013 5314 at 0x7FBE4FB: boost::asio::detail::scheduler::scheduler(boost::asio::execution_context&, int)
00:00:00:09.013 5314 by 0x869AB08: boost::asio::io_context::io_context(int) (io_context.ipp:44)
00:00:00:09.013 5314 by 0x869BBFE: boost::asio::detail::resolver_service_base::resolver_service_base(boost::asio::io_context&) (resolver_service_base.ipp:40)
00:00:00:09.013 5314 by 0x86A89DA: boost::asio::detail::resolver_serviceboost::asio::ip::tcp::resolver_service(boost::asio::io_context&) (resolver_service.hpp:58)
00:00:00:09.013 5314 by 0x86A76A2: boost::asio::execution_context::service* boost::asio::detail::service_registry::create<boost::asio::detail::resolver_serviceboost::asio::ip::tcp, boost::asio::io_context>(void*) (service_registry.hpp:87)
00:00:00:09.013 5314 by 0x7FBC63F: boost::asio::detail::service_registry::do_use_service(boost::asio::execution_context::service::key const&, boost::asio::execution_context::service* ()(void), void*)
00:00:00:09.013 5314 by 0x86A5BEA: boost::asio::detail::resolver_serviceboost::asio::ip::tcp& boost::asio::detail::service_registry::use_service<boost::asio::detail::resolver_serviceboost::asio::ip::tcp >(boost::asio::io_context&) (service_registry.hpp:39)
00:00:00:09.013 5314 by 0x86A4143: boost::asio::detail::resolver_serviceboost::asio::ip::tcp& boost::asio::use_service<boost::asio::detail::resolver_serviceboost::asio::ip::tcp >(boost::asio::io_context&) (io_context.hpp:39)
00:00:00:09.013 5314 by 0x86A234A: boost::asio::basic_io_object<boost::asio::detail::resolver_serviceboost::asio::ip::tcp >::basic_io_object(boost::asio::io_context&) (basic_io_object.hpp:117)
00:00:00:09.013 5314 by 0x869F4CA: boost::asio::ip::basic_resolverboost::asio::ip::tcp::basic_resolver(boost::asio::io_context&) (basic_resolver.hpp:101)
00:00:00:09.013 5314 by 0x8695F12: http::server::Server::start() (Server.C:154)
00:00:00:09.013 5314 by 0x8695691: http::server::Server::Server(http::server::Configuration const&, Wt::WServer&) (Server.C:123)
00:00:00:09.013 5314 Address 0x134c3c59 is 1 bytes after a block of size 232 alloc'd
00:00:00:09.013 5314 at 0x4C29180: operator new(unsigned long) (vg_replace_malloc.c:324)
00:00:00:09.013 5314 by 0x869AAF3: boost::asio::io_context::io_context(int) (io_context.ipp:44)
00:00:00:09.013 5314 by 0x869BBFE: boost::asio::detail::resolver_service_base::resolver_service_base(boost::asio::io_context&) (resolver_service_base.ipp:40)
00:00:00:09.013 5314 by 0x86A89DA: boost::asio::detail::resolver_serviceboost::asio::ip::tcp::resolver_service(boost::asio::io_context&) (resolver_service.hpp:58)
00:00:00:09.013 5314 by 0x86A76A2: boost::asio::execution_context::service* boost::asio::detail::service_registry::create<boost::asio::detail::resolver_serviceboost::asio::ip::tcp, boost::asio::io_context>(void*) (service_registry.hpp:87)
00:00:00:09.013 5314 by 0x7FBC63F: boost::asio::detail::service_registry::do_use_service(boost::asio::execution_context::service::key const&, boost::asio::execution_context::service* ()(void), void*)
00:00:00:09.013 5314 by 0x86A5BEA: boost::asio::detail::resolver_serviceboost::asio::ip::tcp& boost::asio::detail::service_registry::use_service<boost::asio::detail::resolver_serviceboost::asio::ip::tcp >(boost::asio::io_context&) (service_registry.hpp:39)
00:00:00:09.013 5314 by 0x86A4143: boost::asio::detail::resolver_serviceboost::asio::ip::tcp& boost::asio::use_service<boost::asio::detail::resolver_serviceboost::asio::ip::tcp >(boost::asio::io_context&) (io_context.hpp:39)
00:00:00:09.013 5314 by 0x86A234A: boost::asio::basic_io_object<boost::asio::detail::resolver_serviceboost::asio::ip::tcp >::basic_io_object(boost::asio::io_context&) (basic_io_object.hpp:117)
00:00:00:09.013 5314 by 0x869F4CA: boost::asio::ip::basic_resolverboost::asio::ip::tcp::basic_resolver(boost::asio::io_context&) (basic_resolver.hpp:101)
00:00:00:09.013 5314 by 0x8695F12: http::server::Server::start() (Server.C:154)
00:00:00:09.013 5314 by 0x8695691: http::server::Server::Server(http::server::Configuration const&, Wt::WServer&) (Server.C:123)
Updated by Roel Standaert about 6 years ago
- Status changed from New to Feedback
That's odd. I tried it and it works fine. What command line arguments are you using maybe? What does your main function look like? It all seems to be inside of the constructor of basic_resolver, which we don't have any control over.
Updated by Roel Standaert about 6 years ago
- Status changed from Feedback to Closed
Closing this due to inactivity.