← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 701920] Re: [lunux] rev 458 crash

 

after analysis of the configuration files I saw that adchpp.xml path to
the executable file does not match the physical path run.

In adchpp.xml was recorded
<Plugins Path="/usr/src/soft/adchpp/build/release-default/bin/">,
but the program was run from "/ usr / src / soft / adchpp / build / debug-default / bin /"

after the path to the executable file was ispralen in adchpp.xml
failures ceased.

this is a bug or a feature of the program work?

-- 
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to ADCH++.
https://bugs.launchpad.net/bugs/701920

Title:
  [lunux] rev 458 crash

Status in ADCH++:
  New

Bug description:
  This hub is running ADCH++ v2.6.1 (r458) Debug

  # cat /etc/adchpp/Script.xml 
  <?xml version="1.0" encoding="utf-8" standalone="yes"?>
  <ScriptPlugin>
  	<Engine language="lua" scriptPath="/etc/adchpp/plugins">
  		<Script>access.bans.lua</Script>
  		<Script>access.bot.lua</Script>
  		<Script>access.limits.lua</Script>
  		<Script>access.lua</Script>
  		<Script>access.op.lua</Script>
  		<Script>motd.lua</Script>
  		<Script>history.lua</Script>
  		<Script>json.lua</Script> 
  	</Engine>
  </ScriptPlugin>

  if use "+kick <nick>" in log

  2, 4: access.op.lua:43: attempt to call global 'get_user' (a nil value)
  stack traceback:
  	access.op.lua:43: in function 'command'
  	access.lua:1451: in function 'handle_plus_command'
  	./access.lua:1464: in function 'v'
  	./access.lua:1535: in function 'onReceive'
  	./access.lua:1555: in function <./access.lua:1554>

  server crash after 2-3 min

  
  # gdb --core=core.21512 ./adchppd 
  GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.2)
  Copyright (C) 2009 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 "i386-redhat-linux-gnu".
  For bug reporting instructions, please see:
  <http://www.gnu.org/software/gdb/bugs/>...
  Reading symbols from /usr/src/soft/adchpp/build/debug-default/bin/adchppd...done.
  Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libstdc++.so.6
  Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
  Loaded symbols for /lib/libdl.so.2
  Reading symbols from /lib/i686/nosegneg/libpthread.so.0...(no debugging symbols found)...done.
  Loaded symbols for /lib/i686/nosegneg/libpthread.so.0
  Reading symbols from /lib/libssl.so.6...(no debugging symbols found)...done.
  Loaded symbols for /lib/libssl.so.6
  Reading symbols from /usr/src/soft/adchpp/build/debug-default/bin/libaboost_system.so...done.
  Loaded symbols for /usr/src/soft/adchpp/build/debug-default/bin/libaboost_system.so
  Reading symbols from /usr/src/soft/adchpp/build/debug-default/bin/libaboost_date_time.so...done.
  Loaded symbols for /usr/src/soft/adchpp/build/debug-default/bin/libaboost_date_time.so
  Reading symbols from /usr/src/soft/adchpp/build/debug-default/bin/libadchpp.so...done.
  Loaded symbols for /usr/src/soft/adchpp/build/debug-default/bin/libadchpp.so
  Reading symbols from /lib/i686/nosegneg/libm.so.6...(no debugging symbols found)...done.
  Loaded symbols for /lib/i686/nosegneg/libm.so.6
  Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
  Loaded symbols for /lib/libgcc_s.so.1
  Reading symbols from /lib/i686/nosegneg/libc.so.6...(no debugging symbols found)...done.
  Loaded symbols for /lib/i686/nosegneg/libc.so.6
  Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
  Loaded symbols for /lib/ld-linux.so.2
  Reading symbols from /usr/lib/libgssapi_krb5.so.2...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libgssapi_krb5.so.2
  Reading symbols from /usr/lib/libkrb5.so.3...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libkrb5.so.3
  Reading symbols from /lib/libcom_err.so.2...(no debugging symbols found)...done.
  Loaded symbols for /lib/libcom_err.so.2
  Reading symbols from /usr/lib/libk5crypto.so.3...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libk5crypto.so.3
  Reading symbols from /lib/libresolv.so.2...(no debugging symbols found)...done.
  Loaded symbols for /lib/libresolv.so.2
  Reading symbols from /lib/libcrypto.so.6...(no debugging symbols found)...done.
  Loaded symbols for /lib/libcrypto.so.6
  Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libz.so.1
  Reading symbols from /usr/lib/libkrb5support.so.0...(no debugging symbols found)...done.
  Loaded symbols for /usr/lib/libkrb5support.so.0
  Reading symbols from /lib/libkeyutils.so.1...(no debugging symbols found)...done.
  Loaded symbols for /lib/libkeyutils.so.1
  Reading symbols from /lib/libselinux.so.1...(no debugging symbols found)...done.
  Loaded symbols for /lib/libselinux.so.1
  Reading symbols from /lib/libsepol.so.1...(no debugging symbols found)...done.
  Loaded symbols for /lib/libsepol.so.1
  Reading symbols from /usr/src/soft/adchpp/build/release-default/bin/Script.so...done.
  Loaded symbols for /usr/src/soft/adchpp/build/release-default/bin/Script.so
  Reading symbols from /usr/src/soft/adchpp/build/release-default/bin/libalua.so...done.
  Loaded symbols for /usr/src/soft/adchpp/build/release-default/bin/libalua.so
  Reading symbols from /usr/src/soft/adchpp/build/release-default/bin/Bloom.so...done.
  Loaded symbols for /usr/src/soft/adchpp/build/release-default/bin/Bloom.so
  Reading symbols from /usr/src/soft/adchpp/build/release-default/bin/luadchpp.so...done.
  Loaded symbols for /usr/src/soft/adchpp/build/release-default/bin/luadchpp.so
  Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
  Loaded symbols for /lib/libnss_files.so.2
  Core was generated by `./adchppd'.
  Program terminated with signal 11, Segmentation fault.
  #0  0x009a8149 in lua_remove (L=0x92d6670, idx=1) at lua/lapi.c:185
  185	  while (++p < L->top) setobjs2s(L, p-1, p);
  (gdb) bt
  #0  0x009a8149 in lua_remove (L=0x92d6670, idx=1) at lua/lapi.c:185
  #1  0x0017953d in docall (__functor=..., __args#0=..., __args#1=..., __args#2=@0xbf83f0db)
      at build/release-default/swig/lua_wrap.cc:2084
  #2  operator() (__functor=..., __args#0=..., __args#1=..., __args#2=@0xbf83f0db)
      at build/release-default/swig/lua_wrap.cc:2029
  #3  std::_Function_handler<void(adchpp::Entity&, adchpp::AdcCommand&, bool&), LuaFunction>::_M_invoke(const std::_Any_data &, adchpp::Entity &, adchpp::AdcCommand &, bool &) (__functor=..., __args#0=..., __args#1=..., __args#2=@0xbf83f0db)
      at /usr/lib/gcc/i386-redhat-linux6E/4.4.0/../../../../include/c++/4.4.0/tr1_impl/functional:1668
  #4  0x003d59e7 in std::function<void(adchpp::Entity&, adchpp::AdcCommand&, bool&)>::operator()(adchpp::Entity &, adchpp::AdcCommand &, bool &) const (this=0x9339878, __args#0=..., __args#1=..., __args#2=@0xbf83f0db)
      at /usr/lib/gcc/i386-redhat-linux6E/4.4.0/../../../../include/c++/4.4.0/tr1_impl/functional:2024
  #5  0x003d3a49 in adchpp::Signal<void(adchpp::Entity&, adchpp::AdcCommand&, bool&)>::operator()<adchpp::Entity&, adchpp::AdcCommand&, bool&>(adchpp::Entity &, adchpp::AdcCommand &, bool &) (this=0x92af7f8, t0=..., t1=..., t2=@0xbf83f0db)
      at adchpp/Signal.h:58
  #6  0x003cfc03 in adchpp::ClientManager::onReceive (this=0x92af6f8, c=..., cmd=...) at adchpp/ClientManager.cpp:167
  #7  0x0038dd75 in adchpp::Client::onData (this=0x931e650, buf=...) at adchpp/Client.cpp:144
  #8  0x0038eafd in adchpp::(anonymous namespace)::Handler1<std::shared_ptr<adchpp::Buffer>, &(adchpp::Client::onData)>::operator() (this=0x9322ab8, bv=...) at adchpp/Client.cpp:68
  #9  0x0038e719 in std::_Function_handler<void(const adchpp::BufferPtr&), adchpp::<unnamed>::Handler1<std::shared_ptr<adchpp::Buffer>, &adchpp::Client::onData> >::_M_invoke(const std::_Any_data &, const std::unary_function<adchpp::BufferPtr const&, void>::BufferPtr &) (__functor=..., __args#0=...)
      at /usr/lib/gcc/i386-redhat-linux6E/4.4.0/../../../../include/c++/4.4.0/tr1_impl/functional:1668
  #10 0x00376ed7 in std::function<void(const adchpp::BufferPtr&)>::operator()(const std::unary_function<adchpp::BufferPtr const&, void>::BufferPtr &) const (this=0x93442f0, __args#0=...)
      at /usr/lib/gcc/i386-redhat-linux6E/4.4.0/../../../../include/c++/4.4.0/tr1_impl/functional:2024
  #11 0x003720b0 in adchpp::ManagedSocket::completeRead (this=0x934429c, ec=..., bytes=4) at adchpp/ManagedSocket.cpp:177
  #12 0x00372eb1 in adchpp::(anonymous namespace)::Handler<&(adchpp::ManagedSocket::completeRead)>::operator() (
      this=0x930cf90, ec=..., bytes=4) at adchpp/ManagedSocket.cpp:92
  #13 0x00372a5c in std::_Function_handler<void(const boost::system::error_code&, unsigned int), adchpp::<unnamed>::Handler<&adchpp::ManagedSocket::completeRead> >::_M_invoke(const std::_Any_data &, const boost::system::error_code &, unsigned int) (__functor=..., __args#0=..., __args#1=4)
      at /usr/lib/gcc/i386-redhat-linux6E/4.4.0/../../../../include/c++/4.4.0/tr1_impl/functional:1668
  ---Type <return> to continue, or q <return> to quit---  
  #14 0x003c9176 in std::function<void(const boost::system::error_code&, size_t)>::operator()(const boost::system::error_code &, size_t) const (this=0xbf83f374, __args#0=..., __args#1=4)
      at /usr/lib/gcc/i386-redhat-linux6E/4.4.0/../../../../include/c++/4.4.0/tr1_impl/functional:2024
  #15 0x003c9d6f in boost::asio::detail::binder2<std::function<void(const boost::system::error_code&, size_t)>, boost::system::error_code, unsigned int>::operator()(void) (this=0xbf83f374) at boost/boost/asio/detail/bind_handler.hpp:97
  #16 0x003c94a0 in boost::asio::asio_handler_invoke<boost::asio::detail::binder2<std::function<void(const boost::system::error_code&, size_t)>, boost::system::error_code, unsigned int> >(boost::asio::detail::binder2<std::function<void(const boost::system::error_code&, size_t)>, boost::system::error_code, unsigned int>, ...) (function=...)
      at boost/boost/asio/handler_invoke_hook.hpp:64
  #17 0x003c8d6a in boost_asio_handler_invoke_helpers::invoke<boost::asio::detail::binder2<std::function<void(const boost::system::error_code&, size_t)>, boost::system::error_code, unsigned int>, std::function<void(const boost::system::error_code&, size_t)> >(const boost::asio::detail::binder2<std::function<void(const boost::system::error_code&, size_t)>, boost::system::error_code, unsigned int> &, std::function<void(const boost::system::error_code&, size_t)> &) (
      function=..., context=...) at boost/boost/asio/detail/handler_invoke_helpers.hpp:39
  #18 0x003c7b1e in boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, std::function<void(const boost::system::error_code&, size_t)> >::do_complete(boost::asio::io_service::io_service_impl *, boost::asio::detail::resolver_service_base::operation *, boost::system::error_code, size_t) (owner=0x92af6a0, base=0x935f878)
      at boost/boost/asio/detail/reactive_socket_recv_op.hpp:106
  #19 0x0039e7f5 in boost::asio::detail::task_io_service_operation::complete (this=0x935f878, owner=...)
      at boost/boost/asio/detail/task_io_service_operation.hpp:35
  #20 0x003a048d in boost::asio::detail::task_io_service::do_one (this=0x92af6a0, lock=..., this_idle_thread=0xbf83f4cc)
      at boost/boost/asio/detail/impl/task_io_service.ipp:278
  #21 0x003a0092 in boost::asio::detail::task_io_service::run (this=0x92af6a0, ec=...)
      at boost/boost/asio/detail/impl/task_io_service.ipp:130
  #22 0x003a06c6 in boost::asio::io_service::run (this=0x92af664) at boost/boost/asio/impl/io_service.ipp:57
  #23 0x0039d2cb in adchpp::SocketManager::run (this=0x92af620) at adchpp/SocketManager.cpp:237
  #24 0x00390c56 in adchpp::Core::run (this=0x92af170) at adchpp/Core.cpp:62
  #25 0x080539c4 in runConsole (configPath=...) at adchppd/adchppdu.cpp:166
  #26 0x08053ff3 in main (argc=1, argv=0xbf840714) at adchppd/adchppdu.cpp:246
  (gdb) 
  (gdb)





References