Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Anope 1.9.6. shutting down after several minutes, segmentation fault  (Read 4235 times)

0 Members and 1 Guest are viewing this topic.

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26

Hi guys,

Our services are connecting to our network and then shut down after a few minutes, leaving us this backtrace:

Quote
#0  0x000000322487fb21 in __strlen_sse2 () from /lib64/libc.so.6
#1  0x00000000004d4dd3 in std::char_traits<char>::length (__s=0x696d646174656e40 <Address 0x696d646174656e40 out of bounds>) at /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/char_traits.h:263
#2  0x00000000004d618d in std::basic_string<char, ci::ci_char_traits, std::allocator<char> >::basic_string (this=0x7ffffffe8860, __s=0x696d646174656e40 <Address 0x696d646174656e40 out of bounds>, __a=...)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/basic_string.tcc:216
#3  0x0000000000549d48 in Anope::string::ci_str (this=0xbb4580) at /home/ircd/anope-1.9.6-source/include/anope.h:146
#4  0x000000000054823a in ci::less::operator() (this=0x874b80, s1=..., s2=...) at /home/ircd/anope-1.9.6-source/src/hashcomp.cpp:118
#5  0x000000000059442c in std::_Rb_tree<Anope::string, std::pair<Anope::string const, NickCore*>, std::_Select1st<std::pair<Anope::string const, NickCore*> >, ci::less, std::allocator<std::pair<Anope::string const, NickCore*> > >::_M_lower_bound (this=0x874b80, __x=0xb0a020, __y=0x874b88, __k=...) at /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_tree.h:986
#6  0x000000000059938a in std::_Rb_tree<Anope::string, std::pair<Anope::string const, NickCore*>, std::_Select1st<std::pair<Anope::string const, NickCore*> >, ci::less, std::allocator<std::pair<Anope::string const, NickCore*> > >::find
    (this=0x874b80, __k=...) at /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_tree.h:1421
#7  0x00000000005985e9 in std::map<Anope::string, NickCore*, ci::less, std::allocator<std::pair<Anope::string const, NickCore*> > >::find (this=0x874b80, __x=...)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/bits/stl_map.h:659
#8  0x00000000005960a7 in findcore (nick=...) at /home/ircd/anope-1.9.6-source/src/nickserv.cpp:119
#9  0x00007fffefd83ce8 in ChanServCore::OnDelCore (this=0x956f60, nc=0xb948b0) at /home/ircd/anope-1.9.6-source/modules/pseudoclients/chanserv.cpp:102
#10 0x000000000058f146 in NickCore::~NickCore (this=0xb948b0, __in_chrg=<value optimized out>) at /home/ircd/anope-1.9.6-source/src/nickcore.cpp:32
#11 0x000000000058f67a in NickCore::~NickCore (this=0xb948b0, __in_chrg=<value optimized out>) at /home/ircd/anope-1.9.6-source/src/nickcore.cpp:46
#12 0x0000000000589fa2 in NickAlias::~NickAlias (this=0xb9ea50, __in_chrg=<value optimized out>) at /home/ircd/anope-1.9.6-source/src/nickalias.cpp:48
#13 0x000000000058a220 in NickAlias::~NickAlias (this=0xb9ea50, __in_chrg=<value optimized out>) at /home/ircd/anope-1.9.6-source/src/nickalias.cpp:61
#14 0x00007ffff18c183a in MySQLLiveModule::OnFindNick (this=0x933e90, nick=...) at /home/ircd/anope-1.9.6-source/modules/database/db_sql_live_read.cpp:123
#15 0x0000000000595c69 in findnick (nick=...) at /home/ircd/anope-1.9.6-source/src/nickserv.cpp:104
#16 0x00007fffe5ce5da8 in CommandNSIdentify::Execute (this=0xa2e9d8, source=..., params=std::vector of length 1, capacity 2 = {...}) at /home/ircd/anope-1.9.6-source/modules/commands/ns_identify.cpp:33
#17 0x00000000004ea66c in BotInfo::OnMessage (this=0x91b820, u=0xba2e80, message=...) at /home/ircd/anope-1.9.6-source/src/bots.cpp:304
#18 0x00000000005abca9 in IRCdMessage::OnPrivmsg (this=0x929e70, source=..., params=std::vector of length 2, capacity 2 = {...}) at /home/ircd/anope-1.9.6-source/src/protocol.cpp:435
#19 0x000000000056b2fd in OnPrivmsg (source=..., params=std::vector of length 2, capacity 2 = {...}) at /home/ircd/anope-1.9.6-source/src/messages.cpp:132
#20 0x00000000005a6649 in process (buffer=...) at /home/ircd/anope-1.9.6-source/src/process.cpp:87
#21 0x000000000055e712 in UplinkSocket::Read (this=0xb49b10, buf=...) at /home/ircd/anope-1.9.6-source/src/main.cpp:159
#22 0x00000000005cc565 in BufferedSocket::ProcessRead (this=0xb49b38) at /home/ircd/anope-1.9.6-source/src/socket_transport.cpp:57
#23 0x00000000005d1fbd in SocketEngine::Process () at /home/ircd/anope-1.9.6-source/src/socketengines/socketengine_epoll.cpp:138
#24 0x0000000000560e9b in main (ac=3, av=0x7fffffffe688, envp=0x7fffffffe6a8) at /home/ircd/anope-1.9.6-source/src/main.cpp:408



For the notice: Anope has not been moved to another server :)




Any help?
Logged

Adam

  • Team
  • *
  • Offline Offline
  • Posts: 463
Re: Anope 1.9.6. shutting down after several minutes, segmentation fault
« Reply #1 on: March 22, 2012, 08:58:38 PM »

Looks like something caused by db_sql_live_read. I don't have time now to look but if you unload that it should be ok.
Logged

Jens Voss

  • Team
  • *
  • Offline Offline
  • Posts: 125
Re: Anope 1.9.6. shutting down after several minutes, segmentation fault
« Reply #2 on: March 23, 2012, 08:13:52 AM »

1. a "/nickserv identify" caused the db_mysql_live_read module to search the mysql database for the nick
2. the nick was not found in the database, so the db module deleted/dropped the nickalias (thats not a bug)
3. because the nickgroup has only one nickalias, the nickcore was also deleted/dropped.
4. anope crashed while deleting the nickcore. this seems to be bug.

What anope version are you running? Its not the 1.9.6 release, but its also not the current git, because the line numbers are not matching ...

Logged
Pages: [1]   Go Up