• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux boost crash !

Calon

Experienced Member
Joined
Feb 6, 2009
Messages
1,070
Reaction score
21
Hello im using Debian 64x but recently im facing a boost crash happened to me 2 times in 3 days :/

Code:
#7  0x00000000006c6cee in boost::asio::detail::task_io_service<boost::asio::detail::epoll_reactor<false> >::do_one (this=0xc5aa30, lock=...,
    this_idle_thread=0x7fae9d0d4d10, ec=...)
    at /usr/include/boost/asio/detail/task_io_service.hpp:260
        more_handlers = false
        c = {lock_ = @0x7fae9d0d4d50, task_io_service_ = @0xc5aa30}
        h = 0xc5aa88
        polling = false
        task_has_run = true
#8  0x00000000006c4edf in boost::asio::detail::task_io_service<boost::asio::detail::epoll_reactor<false> >::run (this=0xc5aa30, ec=...)
    at /usr/include/boost/asio/detail/task_io_service.hpp:103
        ctx = {<boost::noncopyable_::noncopyable> = {<No data fields>},
          owner_ = 0xc5aa30, next_ = 0x0}
        this_idle_thread = {
          wakeup_event = {<boost::noncopyable_::noncopyable> = {<No data fields>---Type <return> to continue, or q <return> to quit---return
}, cond_ = {__data = {__lock = 0, __futex = 0, __total_seq = 0,
                __wakeup_seq = 0, __woken_seq = 0, __mutex = 0x0,
                __nwaiters = 0, __broadcast_seq = 0},
              __size = '\000' <repeats 47 times>, __align = 0},
            signalled_ = false}, next = 0x0}
        lock = {<boost::noncopyable_::noncopyable> = {<No data fields>},
          mutex_ = @0xc5aa58, locked_ = false}
        n = 138130677
#9  0x00000000006c4165 in boost::asio::io_service::run (this=0x7fffc7e3ba18)
    at /usr/include/boost/asio/impl/io_service.ipp:68
        ec = {m_val = 0, m_cat = 0x7faea240e530}
        s = 8
#10 0x00000000006d57ee in boost::_mfi::mf0<unsigned long, boost::asio::io_service>::operator() (this=0x7fae985be470, p=0x7fffc7e3ba18)
    at /usr/include/boost/bind/mem_fn_template.hpp:49
No locals.
#11 0x00000000006d575f in boost::_bi::list1<boost::_bi::value<boost::asio::io_service*> >::operator()<unsigned long, boost::_mfi::mf0<unsigned long, boost::asio::io_service>, boost::_bi::list0> (this=0x7fae985be480, f=..., a=...)
    at /usr/include/boost/bind/bind.hpp:243
No locals.
#12 0x00000000006d570b in boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long, boost::asio::io_service>, boost::_bi::list1<boost::_bi::value<boost:---Type <return> to continue, or q <return> to quit---return
:asio::io_service*> > >::operator() (this=0x7fae985be470)
    at /usr/include/boost/bind/bind_template.hpp:20
        a = {<No data fields>}
#13 0x00000000006d5654 in boost::detail::thread_data<boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long, boost::asio::io_service>, boost::_bi::list1<boost::_bi::value<boost::asio::io_service*> > > >::run (this=0x7fae985be340)
    at /usr/include/boost/thread/detail/thread.hpp:56
thank you
 
Last edited:
You are in 1 company or you have your pc personal -.^ why made by is in OS problem and need try changed other version ..
 
because am almost beginner i have installed it from elf compiling one, what version of boost should it be for the newest TFS ?
 
If you reinstall OS, just do apt-get install libboost-all-dev, this will install newest libboost (most tutorials have old libboost because of "it->leaf" error in newer ones),
but Xleniz fixed this in
http://otland.net/f479/compiling-ubuntu-12-04-precise-64bit-170202/
- though, I dont recommend the tutorial, it has packages not needed, and packages you need is not there.

Practically, its just changing
Code:
std::string s = it->leaf();
to
Code:
boost::filesystem::path p = it->path();
std::string s = p.filename().string();

inside luascript.cpp and scriptmanager.cpp (OTSERV Source)
 
maybe you have
Code:
		std::string s = it->path().filename();
change it to ->
Code:
		boost::filesystem::path p = it->path();
		std::string s = p.filename().string();
 
Back
Top