cmbi / mrs

Maarten's Retrieval Service
Boost Software License 1.0
0 stars 3 forks source link

MRS crash during search #24

Open cbaakman opened 10 years ago

cbaakman commented 10 years ago

MRS crashed with:

warning: Can't read pathname for load map: Invoer-/uitvoerfout.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/bin/m6 server start --pidfile=/var/run/m6.pid'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f265efccf2b in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x00007f265efccf2b in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x0000000000542aaa in as_literal<std::basic_string<char> > (r=...) at /usr/include/boost/range/as_literal.hpp:109
#2  equals<std::basic_string<char>, std::basic_string<char>, boost::algorithm::is_iequal> (Comp=..., Test=..., Input=...)
    at /usr/include/boost/algorithm/string/predicate.hpp:290
#3  boost::algorithm::iequals<std::basic_string<char>, std::basic_string<char> > (Input=..., Test=..., Loc=...) at /usr/include/boost/algorithm/string/predicate.hpp:346
#4  0x0000000000543aa6 in M6DatabankImpl::FindString (this=<optimized out>, inIndex=..., inString=...) at src/M6Databank.cpp:1940
#5  0x000000000054428e in M6Databank::DocNrForID (this=0x23aa730, inID=...) at src/M6Databank.cpp:2323
#6  0x0000000000550632 in Fetch (inDocID=..., this=0x23aa730) at src/M6Databank.cpp:2311
#7  M6DatabankImpl::GetLinkedDocuments (this=0x244ce30, inDB=..., inID=...) at src/M6Databank.cpp:2044
#8  0x000000000064a96a in M6WSSearch::GetLinkedEx (this=0x242a260, db=..., linkedDb=..., ids=..., response=...) at src/M6WSSearch.cpp:586
#9  0x000000000065bb53 in invoke (response=..., arguments=<error reading variable: access outside bounds of object referenced via synthetic pointer>, method=<optimized out>, 
    object=<optimized out>) at /usr/local/include/zeep/dispatcher.hpp:462
#10 zeep::detail::handler<M6WSSearch, void (M6WSSearch::*)(std::string const&, std::string const&, std::vector<std::string, std::allocator<std::string> > const&, std::vector<WSSearchNS::GetLinkedExResult, std::allocator<WSSearchNS::GetLinkedExResult> >&)>::call (this=0x2441f70, in=0x7f25a53bff30) at /usr/local/include/zeep/dispatcher.hpp:191
#11 0x000000000061e3e6 in zeep::dispatcher::dispatch (this=0x242a260, action=..., in=0x7f25a53bff30) at /usr/local/include/zeep/dispatcher.hpp:343
#12 0x00000000005e878e in dispatch (this=0x242a260, in=0x7f25a53bff30) at /usr/local/include/zeep/dispatcher.hpp:327
#13 operator() (reply=..., request=..., this=0x242a760, scope=...) at src/M6Server.cpp:228
#14 boost::detail::function::void_function_obj_invoker3<M6Server::M6Server(const zeep::xml::element*)::<lambda(const zeep::http::request&, const zeep::http::el::scope&, zeep::http::reply&)>, void, const zeep::http::request&, const zeep::http::el::scope&, zeep::http::reply&>::invoke(boost::detail::function::function_buffer &, const zeep::http::request &, const zeep::http::el::scope &, zeep::http::reply &) (function_obj_ptr=..., a0=..., a1=..., a2=...) at /usr/include/boost/function/function_template.hpp:153
#15 0x00007f266140e7f1 in zeep::http::webapp::handle_request(zeep::http::request const&, zeep::http::reply&) () from /usr/local/lib/libzeep.so.3.0
#16 0x00000000005e8539 in M6Server::handle_request (this=0x7fff346efb00, req=..., rep=...) at src/M6Server.cpp:821
#17 0x00007f26613fbc82 in zeep::http::server::handle_request(boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >&, zeep::http::request const&, zeep::http::reply&) () from /usr/local/lib/libzeep.so.3.0
#18 0x00007f26613f4027 in zeep::http::connection::handle_read(boost::system::error_code const&, unsigned long) () from /usr/local/lib/libzeep.so.3.0
#19 0x00007f26613f8100 in boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::_bi::bind_t<void, boost::_mfi::mf2<void, zeep::http::connection, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<zeep::http::connection> >, boost::arg<1> (*)(), boost::arg<2> (*)()> > >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) ()
   from /usr/local/lib/libzeep.so.3.0
#20 0x000000000061c642 in complete (owner=..., this=0x7f25a58ab1d0, bytes_transferred=0, ec=...) at /usr/include/boost/asio/detail/task_io_service_operation.hpp:37
#21 do_run_one (ec=..., private_op_queue=..., this_thread=..., lock=..., this=<optimized out>) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:366
#22 boost::asio::detail::task_io_service::run (this=0x67002f0, ec=...) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:146
#23 0x00007f2661400985 in boost::asio::io_service::run() () from /usr/local/lib/libzeep.so.3.0
#24 0x00007f2660ca7da9 in ?? () from /usr/lib/libboost_thread.so.1.48.0
#25 0x00007f26618bfe9a in start_thread (arg=0x7f25cf31c700) at pthread_create.c:308
#26 0x00007f265ec6231d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#27 0x0000000000000000 in ?? ()

It refers to: https://github.com/cmbi/mrs/blob/develop/src/M6Databank.cpp#L1940

It occured during a search action. However, the input is unknown making it hard to reproduce the error.