Anope IRC Services
Anope Development => Modules => Topic started by: Andi on July 17, 2006, 05:17:56 PM
-
Hi!
The module bs_moremodesperline v1.05 (by SGR & ProjectDEAD) causes a segfault in anope 1.7.14. Here is the backtrace
#0 0x4023ac7f in strlen () from /lib/libc.so.6
#1 0x4020e3a5 in vfprintf () from /lib/libc.so.6
#2 0x4022c310 in vsnprintf () from /lib/libc.so.6
#3 0x08080612 in vsend_cmd (source=0x83cde20 "InterneteXploder",
fmt=0x2889 <Address 0x2889 out of bounds>, args=0x0) at send.c:53
#4 0x080805c3 in send_cmd (source=0x0,
fmt=0x2889 <Address 0x2889 out of bounds>) at send.c:33
#5 0x4045a07d in mynewmsg (u=0x83d6cb8, ci=0x83cfcb0)
at bs_moremodesperline.c:525
#6 0x40459d49 in my_privmsg (source=0x0, ac=2, av=0x0)
at bs_moremodesperline.c:102
#7 0x080803f6 in process () at process.c:278
#8 0x08070168 in main (ac=1, av=0xbffffd94, envp=0xbffffda4) at main.c:600
Full backtrace:
#0 0x4023ac7f in strlen () from /lib/libc.so.6
No symbol table info available.
#1 0x4020e3a5 in vfprintf () from /lib/libc.so.6
No symbol table info available.
#2 0x4022c310 in vsnprintf () from /lib/libc.so.6
No symbol table info available.
#3 0x08080612 in vsend_cmd (source=0x83cde20 "InterneteXploder",
fmt=0x2889 <Address 0x2889 out of bounds>, args=0x0) at send.c:53
buf = "MODE #funirc +ooooo: Robby `235E@À_ab`dab`0 06b6232E@220Ç#@ 05bb Yabv232E@ 234E@,»E@Ø6fbdütbÃÂÂf 37@ ", ' ' <repeats 168 times>, " 04 23#@[Jul 17 17:48:20.458034 2006] 0051300 00 00 00 00Þûÿ¿ÀH/@ÿ 03 00 00à÷ÿ¿È÷ÿ¿ 20Ã"@Üöÿ¿22740@(üÿ¿à÷ÿ¿ 00 00 00 00|÷ÿ¿Üöÿ¿ 01200ÂÂÂûà÷ÿ¿à÷"...
#4 0x080805c3 in send_cmd (source=0x0,
fmt=0x2889 <Address 0x2889 out of bounds>) at send.c:33
No locals.
#5 0x4045a07d in mynewmsg (u=0x83d6cb8, ci=0x83cfcb0)
at bs_moremodesperline.c:525
cmd = 0x83d66b8 "!op"
text = 0x404594f8 "M 01"
param1 = 0x404594f8 "M 01"
params = 0x83c21bc "Robby"
i = 1078302581
tmp = 0x404594f8 "M 01"
param = {0x83d6c28 "Robby",
0x4045bae4 "`235E@À_ab`dab`0 06b6232E@220Ç#@ 05bb Yabv232E@ 234E@,»E@Ø6fbdütbÃÂÂf 37@", 0x2b <Address 0x2b out of bounds>,
0x40459775 "mynewmsg", 0x404594f8 "M 01"}
dowhat = 2
#6 0x40459d49 in my_privmsg (source=0x0, ac=2, av=0x0)
at bs_moremodesperline.c:102
u = (User *) 0x83d6cb8
ci = (ChannelInfo *) 0x2889
#7 0x080803f6 in process () at process.c:278
retVal = 0
current = (Message *) 0x83dbde8
source = "bitnapper", ' ' <repeats 19 times>, "¸rrb 00 00 00 26n 00 00 00 00 00 00 00 kfbD±»Dÿÿÿÿøüÿ¿3Gbb"
cmd = "PRIVMSG 00 00±»D200üÿ¿1 36 00 00@S/@tr#@ 00 00 00 00A 36 37@AU77H 00 00 00åÈabho=b 24Û.@ 05 00 00 00231231231 31"
buf = "PRIVMSG 00#funirc 00:!op Robby 00:!op Robby", ' ' <repeats 167 times>, ">° 35@r 00 00 00a 00 00 00ðûÿ¿230@bbb 00 00 00pûÿ¿ 00 00 00 00 00 00 00 00hûÿ¿", ' ' <repeats 12 times>, "T 00 00 00hûÿ¿", ' ' <repeats 140 times>, "22740@ 30üÿ¿r 00 00 00Ú 03 00 00ÆkfbØüÿ¿ÖFbba 00 00 00@üÿ¿ 00 00 00 00 00 00 00 008üÿ¿D±»D 00 00 00 00200üÿ¿220«<bD±»D 05 00 00 00 00 00 00 00@ 00 00 00200üÿ¿D"...
s = 0x83dbde8 "È£=b 234E@"
ac = 2
av = (char **) 0x83d6820
m = (Message *) 0x83dbde8
#8 0x08070168 in main (ac=1, av=0xbffffd94, envp=0xbffffda4) at main.c:600
t = 1153151300
last_update = 1153151205
last_expire = 1153151205
last_check = 1153151300
last_DefCon = 1153151205
i = 0
progname = 0xbffffe84 "services"
Unfortunately the orignal authors are inactive. So it would be nice, if anyone else can fix this.
Thanks in advance!
Andi
-
you got the link to the module? maybe I'll take a gander at it, since I've been studying the anope source for some time now.
EDIT: ok I found it, http://www.anope.org/modules/bs_moremodesperline.c
I'll take a look at this and see if there's anything I can do for it.
[Edited on 7/18/2006 by TRAiNER4]
-
Originally posted by TRAiNER4
http://www.anope.org/modules/bs_moremodesperline.c
I'll take a look at this and see if there's anything I can do for it.
yeah, that's it.
Thank you for your time dealing with this!
-
Unfortunately to say, this module does not build properly for unreal I'm afraid, sorry. I am unable to help you find the problem.
-
Hmmm,
we are using unreal too, but had no problems with compiling...
-
its works on Unreal..... just needs updating lol. seems like a quite outdated module tbh. i would suggest updating the code
-
Yes this module is very old. But I haven't the expierience neither in c (c is to old for me) nor in the anope coding style.
Maybe an active module coder has time to update the code.
-
i might find time, i'll see if i can be bothered to take a look when im finished with my code
-
I'd appreciate it Tom if you could help Andi out.
Thanks mate.
-
kk i did a quick update job on it, might be a problem or 2 with it but i really was short of time when i did it lol!
EDIT: ok there is one issue, will try to fix it asap
[Edited on 20-7-2006 by Tom65789]
-
Hi, as requested, tested, seems good to go.
-
lol, if there are any bugs just let me know :)
-
Thanks alot Tom65789 for updating that module that fast!
I also want to thank chaz for his engagement and for his testing!
Very good job you two.
Thanks again!
-
Andi, there is one combination that will kill your box, unload it asap, then wait til i have a fixed version. sorry about that
-
Which I found! And it caused 20000% loads on my box and almost killed it. Also caused 1.5GB ram usage on toms.
Unload it now!
-
oooooooooops, i became the notification email before i loaded the module, so nothing happened...
Do you know what's causing that trouble?
-
Yeah, I emailled you to make sure you got it unloaded.
It totalled my box ... and then Tom's.
I'm sure he'll fix it, and we now know what to do to upset it ;)
-
lol which means i know what t put where to debug it