Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Services terminating while using SAREGISTER (cs_saregister)  (Read 11225 times)

0 Members and 1 Guest are viewing this topic.

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26
Services terminating while using SAREGISTER (cs_saregister)
« on: January 14, 2011, 08:54:40 PM »

Dear,

We've loaded the module 'cs_saregister' and 'ns_saregister'. They both load without any error and the ns_ module works perfectly, but while using cs_register, our Anope services are terminating with the following lines;


* *** Global -- from services.ircefy.nl: PANIC! buffer = :Rico PRIVMSG chanserv@services.ircefy.nl :saregister #blaat Rico hihihi
<Global> Services terminating: Aborted
<ConnectServ> SERVER services.ircefy.nl left the network at irc.ircefy.nl for Services terminating: Aborted

(and some SIGNOFF's etc.etc.).


The command that we're using is: /cs saregister #blaat Rico hihihi (/cs saregister #chan nick desc)


We're using Anope 1.8.5 and the module from http://modules.anope.org/index.php?page=view&id=182



Any help?
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #1 on: January 14, 2011, 08:56:05 PM »

Ask the module author.
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #2 on: January 14, 2011, 09:21:18 PM »

The module isn't compatible with the latest 1.8.5 release apparently..
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #3 on: January 14, 2011, 09:24:06 PM »

Ohh okay. Just one question then;

cs_saregister.c For Anope 1.8 (designed for 1.8.5) - (45 Downloads) [View In Browser] [Unsupported Source Fix]



It say's 'designed for 1.8.5.', so we thought 'should work'. Has it worked once before on 1.8.5. or is that just a mistake?
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #4 on: January 14, 2011, 09:38:25 PM »

No, did you see the "Unsupported" bit?



EDIT: We automatically attempt to build windows binaries when we release so module authors don't need to which aims to provide users with a better service. These are entirely unsupported and not tested.
Logged

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #5 on: January 14, 2011, 09:43:50 PM »

Oh, well okay. Keep up the good work !
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #6 on: January 14, 2011, 10:09:28 PM »

Module updated to work with 1.8.5.

Version 1.1 is now available on the modules site.
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #7 on: January 14, 2011, 10:25:48 PM »

Hmm thanks a lot for taking the time to fix it, wasn't expecting that so quickly xD but it still gives us the same errors and then it terminates anope again :(
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #8 on: January 14, 2011, 10:27:14 PM »

are you sure you are loading the new version ???

i tested it on my testnet and it worked fine...
if you are sure you upgraded correctly, can you get a backtrace of the crash?
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #9 on: January 14, 2011, 10:30:36 PM »

Yeah we've upgraded correctly,

Quote
/**
 * -----------------------------------------------------------------------------
 * Name    : cs_saregister
 * Author  : Viper <Viper@Anope.org>
 * Date    : 21/10/2009 (Last update: 14/01/2011)
 * Version : 1.1
 * -----------------------------------------------------------------------------
 * Requires    : Anope-1.8.5
 * Tested      : Anope 1.8.5 SVN + InspIRCd 1.2.0



Crash:
Quote
<Global> [cs_saregister] Loading module...
<Global> [cs_saregister] Module loaded successfully...
-OperServ- Module saregister_cs geladen
<Global> Module loading status: 0 (Module, Okay - No Error)
<Global> OperServ: Rico: set superadmin on
<Global> OperServ: Rico is a SuperAdmin
<Global> PANIC! buffer = :Rico PRIVMSG chanserv@services.ircefy.nl :saregister #test Chloe hoi
<Global> Services terminating: Aborted
* IRCefy heeft de server verlaten (irc.ircefy.nl services.ircefy.nl)
* IRCDGuru heeft de server verlaten (irc.ircefy.nl services.ircefy.nl)
* Global heeft de server verlaten (irc.ircefy.nl services.ircefy.nl)
* HelpServ heeft de server verlaten (irc.ircefy.nl services.ircefy.nl)
* BotServ heeft de server verlaten (irc.ircefy.nl services.ircefy.nl)
* MemoServ heeft de server verlaten (irc.ircefy.nl services.ircefy.nl)
* HostServ heeft de server verlaten (irc.ircefy.nl services.ircefy.nl)
* ChanServ heeft de server verlaten (irc.ircefy.nl services.ircefy.nl)
* NickServ heeft de server verlaten (irc.ircefy.nl services.ircefy.nl)
* OperServ heeft de server verlaten (irc.ircefy.nl services.ircefy.nl)
<ConnectServ> SIGNOFF user: IRCefy (services@ircefy.nl IRCefy) at services.ircefy.nl irc.ircefy.nl services.ircefy.nl
<ConnectServ> SIGNOFF user: IRCDGuru (bot@ircdguru.be IRCDGuru) at services.ircefy.nl irc.ircefy.nl services.ircefy.nl
<ConnectServ> SIGNOFF user: Global (services@ircefy.nl Global Noticer) at services.ircefy.nl irc.ircefy.nl services.ircefy.nl
<ConnectServ> SIGNOFF user: HelpServ (services@ircefy.nl Help Server) at services.ircefy.nl irc.ircefy.nl services.ircefy.nl
<ConnectServ> SIGNOFF user: BotServ (services@ircefy.nl Bot Server) at services.ircefy.nl irc.ircefy.nl services.ircefy.nl
<ConnectServ> SIGNOFF user: MemoServ (services@ircefy.nl Memo Server) at services.ircefy.nl irc.ircefy.nl services.ircefy.nl
<ConnectServ> SIGNOFF user: HostServ (services@ircefy.nl vHost Server) at services.ircefy.nl irc.ircefy.nl services.ircefy.nl
<ConnectServ> SIGNOFF user: ChanServ (services@ircefy.nl Channel Server) at services.ircefy.nl irc.ircefy.nl services.ircefy.nl
<ConnectServ> SIGNOFF user: NickServ (services@ircefy.nl Nickname Server) at services.ircefy.nl irc.ircefy.nl services.ircefy.nl
<ConnectServ> SIGNOFF user: OperServ (services@ircefy.nl Operator Server) at services.ircefy.nl irc.ircefy.nl services.ircefy.nl
<ConnectServ> SERVER services.ircefy.nl left the network at irc.ircefy.nl for Services terminating: Aborted

Quote
* *** Global -- from services.ircefy.nl: PANIC! buffer = :Rico PRIVMSG chanserv@services.ircefy.nl :saregister #test Chloe hoi
* *** LocOps -- Received SQUIT services.ircefy.nl from services.ircefy.nl[85.214.232.254] (Services terminating: Aborted)



Trying backtrace at the moment (didn't know how, just got explained :P)
« Last Edit: January 14, 2011, 10:32:24 PM by cmvdeeden »
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #10 on: January 14, 2011, 10:33:57 PM »

There s rather useless log though..

Try to get a gdb backrace:
gdb#: (1) From the directory that you would do ./services from, do the following instead: gdb ./services (2) Do: r -support (3) Upon crash, do: bt full (4) Pastebin everything from step 1 to step 3. (Alternatively, if that output is too long, just pastebin everything from when Anope crashed to the end of the output of bt full.)

And it s not because the source shows 1.1 it s also loading it.. did you run "make install" after "make modules"?
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #11 on: January 14, 2011, 10:42:02 PM »

Well, gdb doesn't seem to work and yast neither (to install it etc.).

Any other way to show debug mode untill we can use yast to install gdb?

And yes, I've done 'makes modules' and 'make install'
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #12 on: January 14, 2011, 10:42:57 PM »

./services -support
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #13 on: January 14, 2011, 10:51:05 PM »

Ah that's better!

Quote

[Jan 14 23:48:57.807827 2011] debug: Received: :Chloe PRIVMSG chanserv@services.ircefy.nl :saregister #blaat2 Chloe test
*** buffer overflow detected ***: ./services terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x48)[0xb7bb2028]
/lib/libc.so.6[0xb7bb0040]
/srv/www/vhosts/ircefy.nl/services/modules/runtime/saregister_cs.so.FyLadA(do_saregister+0x3be)[0xb78e798e]
./services(do_run_cmd+0xab)[0x806d9fb]
./services(mod_run_cmd+0x43)[0x806dba3]
./services(chanserv+0x75)[0x806ce85]
./services(m_privmsg+0x4e8)[0x807f068]
/srv/www/vhosts/ircefy.nl/services/modules/runtime/unreal32.so.YDIQ36(anope_event_privmsg+0x3b)[0xb7abdb6b]
./services(process+0x1e6)[0x80916f6]
./services(main+0x155)[0x807c4a5]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb7ae1705]
./services[0x8059301]
======= Memory map: ========
08048000-080b3000 r-xp 00000000 00:3a 10536684   /srv/www/vhosts/ircefy.nl/services/services
080b3000-080b4000 r-xp 0006b000 00:3a 10536684   /srv/www/vhosts/ircefy.nl/services/services
080b4000-080bb000 rwxp 0006c000 00:3a 10536684   /srv/www/vhosts/ircefy.nl/services/services
080bb000-080f2000 rwxp 080bb000 00:00 0
08243000-08559000 rwxp 08243000 00:00 0          [heap]
b78c0000-b78cd000 r-xp 00000000 00:3a 10033381   /lib/libgcc_s.so.1
b78cd000-b78ce000 r-xp 0000c000 00:3a 10033381   /lib/libgcc_s.so.1
b78ce000-b78cf000 rwxp 0000d000 00:3a 10033381   /lib/libgcc_s.so.1
b78d7000-b78e1000 r-xp 00000000 00:3a 10028864   /lib/libnss_files-2.9.so
b78e1000-b78e2000 r-xp 00009000 00:3a 10028864   /lib/libnss_files-2.9.so
b78e2000-b78e3000 rwxp 0000a000 00:3a 10028864   /lib/libnss_files-2.9.so
b78e6000-b78e9000 r-xp 00000000 00:3a 10616958   /srv/www/vhosts/ircefy.nl/services/modules/runtime/saregister_cs.so.FyLadA
b78e9000-b78ea000 r-xp 00002000 00:3a 10616958   /srv/www/vhosts/ircefy.nl/services/modules/runtime/saregister_cs.so.FyLadA
b78ea000-b78eb000 rwxp 00003000 00:3a 10616958   /srv/www/vhosts/ircefy.nl/services/modules/runtime/saregister_cs.so.FyLadA
b78eb000-b78ec000 r-xp 00000000 00:3a 10616957   /srv/www/vhosts/ircefy.nl/services/modules/runtime/he_help.so.mgNBLV
b78ec000-b78ed000 r-xp 00000000 00:3a 10616957   /srv/www/vhosts/ircefy.nl/services/modules/runtime/he_help.so.mgNBLV
b78ed000-b78ee000 rwxp 00001000 00:3a 10616957   /srv/www/vhosts/ircefy.nl/services/modules/runtime/he_help.so.mgNBLV
b78ee000-b78ef000 r-xp 00000000 00:3a 10616956   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_delall.so.LmU8dP
b78ef000-b78f0000 r-xp 00000000 00:3a 10616956   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_delall.so.LmU8dP
b78f0000-b78f1000 rwxp 00001000 00:3a 10616956   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_delall.so.LmU8dP
b78f1000-b78f2000 r-xp 00000000 00:3a 10616955   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_del.so.WnH1GI
b78f2000-b78f3000 r-xp 00000000 00:3a 10616955   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_del.so.WnH1GI
b78f3000-b78f4000 rwxp 00001000 00:3a 10616955   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_del.so.WnH1GI
b78f4000-b78f6000 r-xp 00000000 00:3a 10616954   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_setall.so.PBMgaC
b78f6000-b78f7000 r-xp 00001000 00:3a 10616954   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_setall.so.PBMgaC
b78f7000-b78f8000 rwxp 00002000 00:3a 10616954   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_setall.so.PBMgaC
b78f8000-b78fa000 r-xp 00000000 00:3a 10616953   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_set.so.mmy1Dv
b78fa000-b78fb000 r-xp 00001000 00:3a 10616953   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_set.so.mmy1Dv
b78fb000-b78fc000 rwxp 00002000 00:3a 10616953   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_set.so.mmy1Dv
b78fc000-b78fe000 r-xp 00000000 00:3a 10616952   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_list.so.hZed8o
b78fe000-b78ff000 r-xp 00001000 00:3a 10616952   /srv/www/vhosts/ircefy.nl/services/modules/runtime/hs_list.so.hZed8o
b78ff000-b7900000 rwxp 00002000 00:3a[Jan 14 23:48:57.809293 2011] PANIC! buffer = :Chloe PRIVMSG chanserv@services.ircefy.nl :saregister #blaat2 Chloe test
[Jan 14 23:48:57.809719 2011] debug: Sent: :services.ircefy.nl GLOBOPS :PANIC! buffer = :Chloe PRIVMSG chanserv@services.ircefy.nl :saregister #blaat2 Chloe test

[Jan 14 23:48:57.811645 2011] debug: Emitting event "signal" (1 args)
[Jan 14 23:48:57.811698 2011] debug: Emitting event "shutdown" (1 args)
[Jan 14 23:48:57.811723 2011] Services terminating: Aborted
[Jan 14 23:48:57.811845 2011] debug: Sent: SQUIT services.ircefy.nl :Services terminating: Aborted
[Jan 14 23:48:57.811875 2011] debug: firstuser() returning barbot
[Jan 14 23:48:57.811900 2011] debug: nextuser() returning Blusion
[Jan 14 23:48:57.811926 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.811957 2011] debug: nextuser() returning Chloe-ubuntu
[Jan 14 23:48:57.811983 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812009 2011] debug: nextuser() returning Chloe
[Jan 14 23:48:57.812034 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812060 2011] debug: nextuser() returning Chloe`slaapjesdoenmetRic
[Jan 14 23:48:57.812085 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812116 2011] debug: nextuser() returning clotje^zzzz
[Jan 14 23:48:57.812159 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812186 2011] debug: nextuser() returning ConnectServ
[Jan 14 23:48:57.812219 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812247 2011] debug: Deleting channel #algemeen-ops
[Jan 14 23:48:57.812272 2011] debug: Deleting channel #records-top
[Jan 14 23:48:57.812298 2011] debug: nextuser() returning DJ-Serv
[Jan 14 23:48:57.812323 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812349 2011] debug: nextuser() returning funtrivia
[Jan 14 23:48:57.812374 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812400 2011] debug: nextuser() returning google
[Jan 14 23:48:57.812425 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812452 2011] debug: nextuser() returning IRCService
[Jan 14 23:48:57.812478 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812503 2011] debug: Deleting channel #triviafun
[Jan 14 23:48:57.812528 2011] debug: Deleting channel #palace
[Jan 14 23:48:57.812554 2011] debug: nextuser() returning LimitServ
[Jan 14 23:48:57.812580 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812606 2011] debug: nextuser() returning Mariska
[Jan 14 23:48:57.812631 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812657 2011] debug: nextuser() returning mbon
[Jan 14 23:48:57.812682 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812707 2011] debug: Deleting channel #jeu_de_trivia
[Jan 14 23:48:57.812781 2011] debug: nextuser() returning Memphis
[Jan 14 23:48:57.812807 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812833 2011] debug: nextuser() returning NeoStats
[Jan 14 23:48:57.812858 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812884 2011] debug: nextuser() returning Operlog
[Jan 14 23:48:57.812909 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812934 2011] debug: nextuser() returning Proxdeny
[Jan 14 23:48:57.812959 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.812985 2011] debug: nextuser() returning QuoteServ
[Jan 14 23:48:57.813009 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.813035 2011] debug: nextuser() returning RexY-WeG
[Jan 14 23:48:57.813060 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.813085 2011] debug: nextuser() returning Rico
[Jan 14 23:48:57.813110 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.813142 2011] debug: nextuser() returning StatServ
[Jan 14 23:48:57.813168 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.813194 2011] debug: Deleting channel #opers
[Jan 14 23:48:57.813273 2011] debug: Sent: :IRCDGuru PART #unrealircd
[Jan 14 23:48:57.813473 2011] debug: Deleting channel #unrealircd
[Jan 14 23:48:57.813503 2011] debug: Deleting channel #help
[Jan 14 23:48:57.813530 2011] debug: Deleting channel #IRCService
[Jan 14 23:48:57.813555 2011] debug: Deleting channel #feyenoord
[Jan 14 23:48:57.813580 2011] debug: Deleting channel #DJ-Serv
[Jan 14 23:48:57.813604 2011] debug: Deleting channel #bla
[Jan 14 23:48:57.813630 2011] debug: nextuser() returning TextServ
[Jan 14 23:48:57.813655 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.813681 2011] debug: nextuser() returning triviantje
[Jan 14 23:48:57.813706 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.813732 2011] debug: nextuser() returning UnknownServ
[Jan 14 23:48:57.813756 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.813781 2011] debug: Deleting channel #triviantjesroom
[Jan 14 23:48:57.813807 2011] debug: nextuser() returning Veraa
[Jan 14 23:48:57.813832 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.813857 2011] debug: Deleting channel #services
[Jan 14 23:48:57.813883 2011] debug: nextuser() returning NULL (end of list)
[Jan 14 23:48:57.813908 2011] debug: Emitting event "user_logoff" (1 args)
[Jan 14 23:48:57.813968 2011] debug: Sent: :IRCefy PART #ircefy
[Jan 14 23:48:57.813994 2011] debug: Deleting channel #ircefy
[Jan 14 23:48:57.814022 2011] debug: Emitting event "shutdown" (1 args)
[Jan 14 23:48:57.814096 2011] debug: Cleaning out Module run time directory (/srv/www/vhosts/ircefy.nl/services/modules/runtime) - this may take a moment please wait
[Jan 14 23:48:57.814195 2011] debug: Module run time directory has been cleaned out
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #14 on: January 15, 2011, 12:29:14 AM »

a gdb backtrace with more details would be really nice...  ::)

a number of people in #anope tried the module and it works fine for them.
verify module version after loading with /os modinfo cs_saregister and please post the output of //raw version services*
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #15 on: January 15, 2011, 12:42:03 AM »

Hmm I'm sorry, this was the only output I've seen. I'll verify the module in a few hours, reinstalling server at the moment.
Logged

katsklaw

  • Supporter
  • Anope User
  • Offline Offline
  • Posts: 537
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #16 on: January 15, 2011, 01:35:52 AM »

I think it would also be good to know the following:

1> is the nick registered?
2> is the channel already registered?
3> are you opered? If so are you identified and at what level?
4> was your database ever converted or merged in the past for any reason?
5> have you tried saregister'ing the channel to a nick other than your own? (meaning to a nick that is not grouped to you or that was registered by you but by someone else)

Personally I don't think the module should allow a nick to saregister to the person issuing the command, that is what /cs register is for.
Logged

cmvdeeden

  • Anope User
  • Offline Offline
  • Posts: 26
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #17 on: January 15, 2011, 02:46:25 PM »

@katsklaw:

Those aren't problems. So it's useless to answer those questions, sorry.
Also, it doesn't work while using another nickname. Should be shown in the logs in my previous entries here.. Even though the answers of your questions are findable in the logs above




However, backtrace for Jan (using gdb):

Quote
STEP 2a - Loading module

[Jan 15 15:34:24.831099 2011] debug: Received: :Rico PRIVMSG operserv@services.ircefy.nl :modload cs_saregister
[Jan 15 15:34:24.831317 2011] OperServ: Rico: modload cs_saregister
[Jan 15 15:34:24.831455 2011] Trying to load module [cs_saregister]
[Jan 15 15:34:24.831649 2011] Runtime module location: /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/cs_saregister.so.9OyuhW
[Jan 15 15:34:24.853960 2011] Module cs_saregister compiled against current or newer anope revision 3037, this is 3037
[Jan 15 15:34:24.854119 2011] [cs_saregister] Loading module...
[Jan 15 15:34:24.854195 2011] debug: cs_saregister Adding 6 texts for language 0
[Jan 15 15:34:24.854262 2011] debug: cs_saregister Adding 6 texts for language 12
[Jan 15 15:34:24.854324 2011] [cs_saregister] Module loaded successfully...
[Jan 15 15:34:24.854633 2011] debug: Sent: :OperServ GLOBOPS :Rico loaded module cs_saregister
[Jan 15 15:34:24.854938 2011] debug: Sent: :OperServ NOTICE Rico :Module cs_saregister geladen
[Jan 15 15:34:24.855052 2011] Module loading status: 0 (Module, Okay - No Error)


Quote
STEP 2b - Command

[Jan 15 15:37:25.471702 2011] debug: Received: :Rico PRIVMSG chanserv@services.ircefy.nl :saregister #iamatest Rico testtest
*** buffer overflow detected ***: /srv/www/vhosts/ircefy.nl/irc/services/services terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x48)[0xb7bb4028]
/lib/libc.so.6[0xb7bb2040]
/srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/cs_saregister.so.HorcCv(do_saregister+0x3be)[0xb78e998e]
/srv/www/vhosts/ircefy.nl/irc/services/services(do_run_cmd+0xab)[0x806d9fb]
/srv/www/vhosts/ircefy.nl/irc/services/services(mod_run_cmd+0x43)[0x806dba3]
/srv/www/vhosts/ircefy.nl/irc/services/services(chanserv+0x75)[0x806ce85]
/srv/www/vhosts/ircefy.nl/irc/services/services(m_privmsg+0x4e8)[0x807f068]
/srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/unreal32.so.IhXESV(anope_event_privmsg+0x3b)[0xb7abfb6b]
/srv/www/vhosts/ircefy.nl/irc/services/services(process+0x1e6)[0x80916f6]
/srv/www/vhosts/ircefy.nl/irc/services/services(main+0x155)[0x807c4a5]
/lib/libc.so.6(__libc_start_main+0xe5)[0xb7ae3705]
/srv/www/vhosts/ircefy.nl/irc/services/services[0x8059301]
======= Memory map: ========
08048000-080b3000 r-xp 00000000 00:38 17650991   /srv/www/vhosts/ircefy.nl/irc/services/services
080b3000-080b4000 r-xp 0006b000 00:38 17650991   /srv/www/vhosts/ircefy.nl/irc/services/services
080b4000-080bb000 rwxp 0006c000 00:38 17650991   /srv/www/vhosts/ircefy.nl/irc/services/services
080bb000-08409000 rwxp 080bb000 00:00 0          [heap]
b78c2000-b78cf000 r-xp 00000000 00:38 17126548   /lib/libgcc_s.so.1
b78cf000-b78d0000 r-xp 0000c000 00:38 17126548   /lib/libgcc_s.so.1
b78d0000-b78d1000 rwxp 0000d000 00:38 17126548   /lib/libgcc_s.so.1
b78d9000-b78e3000 r-xp 00000000 00:38 17126556   /lib/libnss_files-2.9.so
b78e3000-b78e4000 r-xp 00009000 00:38 17126556   /lib/libnss_files-2.9.so
b78e4000-b78e5000 rwxp 0000a000 00:38 17126556   /lib/libnss_files-2.9.so
b78e8000-b78eb000 r-xp 00000000 00:38 17762436   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/cs_saregister.so.HorcCv
b78eb000-b78ec000 r-xp 00002000 00:38 17762436   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/cs_saregister.so.HorcCv
b78ec000-b78ed000 rwxp 00003000 00:38 17762436   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/cs_saregister.so.HorcCv
b78ed000-b78ee000 r-xp 00000000 00:38 17762430   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/he_help.so.CwWis2
b78ee000-b78ef000 r-xp 00000000 00:38 17762430   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/he_help.so.CwWis2
b78ef000-b78f0000 rwxp 00001000 00:38 17762430   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/he_help.so.CwWis2
b78f0000-b78f1000 r-xp 00000000 00:38 17762429   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_delall.so.bUnckZ
b78f1000-b78f2000 r-xp 00000000 00:38 17762429   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_delall.so.bUnckZ
b78f2000-b78f3000 rwxp 00001000 00:38 17762429   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_delall.so.bUnckZ
b78f3000-b78f4000 r-xp 00000000 00:38 17762428   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_del.so.SxBbgW
b78f4000-b78f5000 r-xp 00000000 00:38 17762428   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_del.so.SxBbgW
b78f5000-b78f6000 rwxp 00001000 00:38 17762428   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_del.so.SxBbgW
b78f6000-b78f8000 r-xp 00000000 00:38 17762427   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_setall.so.hSYBhT
b78f8000-b78f9000 r-xp 00001000 00:38 17762427   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_setall.so.hSYBhT
b78f9000-b78fa000 rwxp 00002000 00:38 17762427   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_setall.so.hSYBhT
b78fa000-b78fc000 r-xp 00000000 00:38 17762426   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_set.so.C2cJnQ
b78fc000-b78fd000 r-xp 00001000 00:38 17762426   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_set.so.C2cJnQ
b78fd000-b78fe000 rwxp 00002000 00:38 17762426   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_set.so.C2cJnQ
b78fe000-b7900000 r-xp 00000000 00:38 17762425   /srv/www/vhosts/ircefy.nl/irc/services/modules/runtime/hs_list.so.FVVczN
b7900000-b7901000 r-xp
Program received signal SIGABRT, Aborted.
0xb7fe0832 in ?? () from /lib/ld-linux.so.2

Quote
STEP 3 - bt full

#0  0xb7fe0832 in ?? () from /lib/ld-linux.so.2
No symbol table info available.
#1  0xb7af7990 in raise () from /lib/libc.so.6
No symbol table info available.
#2  0xb7af92c8 in abort () from /lib/libc.so.6
No symbol table info available.
#3  0xb7b33815 in ?? () from /lib/libc.so.6
No symbol table info available.
#4  0xb7bb4028 in __fortify_fail () from /lib/libc.so.6
No symbol table info available.
#5  0xb7bb2040 in __chk_fail () from /lib/libc.so.6
No symbol table info available.
#6  0xb78e998e in do_saregister (u=0x83f7220) at /usr/include/bits/string3.h:85
        buffer = 0x83e87db "#iamatest Rico testtest"
        chan = 0x83f8340 "#iamatest"
        target = 0x83f7810 "Rico"
        desc = 0x83f7698 "testtest"
        c = (Channel *) 0x0
        ci = (ChannelInfo *) 0x83e8850
        u2 = (User *) 0x83f7220
        na = <value optimized out>
        nc = (NickCore *) 0x83f8350
        uc = <value optimized out>

Quote
---- MOD INFO ----

[Jan 15 15:35:08.492057 2011] OperServ: Rico: modinfo cs_saregister
[Jan 15 15:35:08.492292 2011] debug: Sent: :OperServ NOTICE Rico :Module: cs_saregister Versie: 1.1 Auteur: Viper Geladen: 15 Jan 2011 15:34:24 CET

Quote
---- Output from /raw version services* ----

* Anope-1.8.5 (3037) services.ircefy.nl :UnrealIRCd 3.2.x -  QM (enc_none) -- build #1, compiled Jan 15 2011 13:04:51



However, only cs_saregister and standard modules are loaded. We've just reinstalled everything, so we've got a fresh Anope. The modules actually does work, but while using THAT SPECIFIC command (/cs saregister #chan etc etc), anope crashes.

When nick not registered; it notices it without terminating anope

Our nicks are registered, so shouldn't be a problem.
« Last Edit: January 15, 2011, 06:58:42 PM by cmvdeeden »
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: Services terminating while using SAREGISTER (cs_saregister)
« Reply #18 on: January 15, 2011, 09:29:15 PM »

This was fixed on IRC.

Apparently there were a few booboo's left in the module..  ::)
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)
Pages: [1]   Go Up