1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] CORE DUMPED! BUG!
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20CORE%20DUMPED%21%20BUG%21&In-Reply-To=">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"002798.html">
11 <LINK REL=
"Next" HREF=
"002800.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] CORE DUMPED! BUG!
</H1>
15 <B>Diego B. Contezini
</B>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20CORE%20DUMPED%21%20BUG%21&In-Reply-To="
17 TITLE=
"[IRCServices Coding] CORE DUMPED! BUG!">diego at redesul.net
19 <I>Tue Nov
4 16:
43:
45 PST
2003</I>
21 <LI>Previous message:
<A HREF=
"002798.html">[IRCServices Coding] test
23 <LI>Next message:
<A HREF=
"002800.html">[IRCServices Coding] about.. CORE DUMPED! BUG!
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#2799">[ date ]
</a>
27 <a href=
"thread.html#2799">[ thread ]
</a>
28 <a href=
"subject.html#2799">[ subject ]
</a>
29 <a href=
"author.html#2799">[ author ]
</a>
34 <PRE>I found a bug (occuring on the old-last vesion of ircservices -
35 ircservices-
5.0.22 services.redesul.net build #
2, compiled Thu Sep
18
37 yes,
5.0.23 is the last.. but nothing has changed about the bug...
39 here is the debugging:
41 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">ChanServ at services.redesul.net
</A> :op #manaus paulinhu-dissi-q-mi-ama
42 [Oct
18 16:
05:
31.152195 2003] debug: Sent: :ChanServ NOTICE
43 paulinhu-dissi-q-mi-ama :Permission denied.
44 [Oct
18 16:
05:
31.152274 2003] debug: Received: :pRiCkLy SJOIN
1066501295
46 [Oct
18 16:
05:
31.152353 2003] protocol/bahamut: debug: pRiCkLy SJOINs #Euevc
47 [Oct
18 16:
05:
31.152490 2003] debug: Sent: :ChanServ MODE #EUeVC +o pRiCkLy
48 [Oct
18 16:
05:
31.269153 2003] debug: Received: :Hellskitty PRIVMSG
49 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">ChanServ at services.redesul.net
</A> :unban #EMOCORE
50 [Oct
18 16:
05:
31.269425 2003] debug: Sent: :ChanServ NOTICE Hellskitty
51 :
<i>Permission denied.
52 </I>[Oct
18 16:
05:
31.288596 2003] debug: Received: :|-Frango-| MODE #EMOCORE
54 [Oct
18 16:
05:
31.288768 2003] debug: Received: :|-Frango-| TOPIC #EMOCORE
55 |
<i>-Frango-|
1066460927 :TakeOver by
14,
1 -
15=
0[
14He15l0lR15ai14ser
0]
15=
14-
56 </I>S15c0ri15p14t
15v3.8
57 [Oct
18 16:
05:
31.288944 2003] debug: Sent: :ChanServ TOPIC #EMOCORE reffer
58 1066055037 :
1i?? Festival HARDcoCOREcore dia
25 de outubro em blumenau no
59 rio bravo bar (proximo a resima agua verde), com as bandas: Zero Ltda
60 (curitiba), Swallow the Waffle (bc), chymia(bnu), crazy frogs (lages),
61 surpise set e slipper (bnu)..
.3 pila entrada inicio as
15:
00 horas'
62 [Oct
18 16:
05:
31.289032 2003] debug: Received: :|-Frango-| MODE
63 #EMOCORE -oooooo CHoPP CbRS-oFF caroll BRYAN brunaH balsanelli
64 Segmentation fault (core dumped)
67 Debugging my core... i can found:
68 #
0 0x0804d830 in add_mode_with_params (md=
0x806aa00, mode=
111 'o',
69 is_add=
1, params=
1, parambuf=
0xbfffe280 "balsanelli
",
70 len=
10) at actions.c:
568
71 568 md-
>params[md-
>nopmodes][len] =
0;
73 #
0 0x0804d830 in add_mode_with_params (md=
0x806aa00, mode=
111 'o',
74 is_add=
1, params=
1, parambuf=
0xbfffe280 "balsanelli
",
75 len=
10) at actions.c:
568
76 s =
0x806aa3e ""
77 #
1 0x0804d342 in set_cmode (sender=
0x81db058 "ChanServ
", channel=
0xa905d00)
80 "balsanelli\
000\b\
025\
225\
002BWi??\
022B\
024\
032\
023Bi??i??i??i??\
000\
000\
000
81 \
000\
034 \
006\bi??i??i??i??hi??i??i??i??i??i??i??\
025\
224\
004B\
034
82 \
006\b\
000\
000\
000\
000i??m\tBdi??\
022Bi??q\a\b\
000\
000\
000\
000eR :\
0037[
83 \
0034#\
003di??\
022B\
000\
000\
000\
000i??\
037\
006\bi??\
037\
006\bi??i??i??i??$i?
84 ?\
006Bi??i??i??i??\bi??i??i??\
000\
000\
000\
000Hi??i??i??\
025\
224\
004B@\
002\a\
85 b8i??i??i??
6\
020\aBpi??i??i??@i??\
006\b@\
002\a\b\
000\
000\
000\
000i??
<\
023BLi?
86 ?i??i??=S\
004B\
024\
032\
023B\
001\
020\
000\
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">000 at i
</A>??\
006\bhi??i??i??\
204i??\
006Bp
87 i??i??i??i??\
037\
006\b
"...
92 args =
0xbfffe6d0 "RDcoCOREcorei??i??i??i??o
"
93 modes =
0xbfffeae2 ""
94 modes_orig =
0xbfffeae0 "+o
"
95 md = (struct modedata *)
0x806aa00
100 #
2 0x400895ff in local_set_cumodes (c=
0xa905d00, plusminus=
43 '+', modes=
1,
101 nick=
0xab7f2e8 "balsanelli
") at check.c:
432
103 modestr =
"o\
000\
000 de outubro em blumenau no rio bravo bar
104 (proximo a resima agua verde), com as bandas: Zero
105 L\v\
000\
000\
000(curitiba), \
000\
000\
000\
000low the Waff\
000\
000\
000\
000bc),
106 chymia(bnu), crazy frogs (lages), surpise set e slipper (bnu)..
"...
107 s =
0xbfffe6e1 ""
108 #
3 0x40088d74 in check_chan_user_modes (source=
0xbfffeed0 "|-Frango-|
",
109 u=
0xab34ff0, c=
0xa905d00, oldmodes=
1)
111 user = (User *)
0xab7f2d8
112 ci = (ChannelInfo *)
0xa571940
116 #
4 0x400820ed in do_channel_umode_change (source=
0xbfffeed0 "|-Frango-|
",
117 c=
0xa905d00, u=
0xab34ff0, oldmodes=
1)
120 #
5 0x0805890d in call_callback_5 (module=
0x806a5c0, id=
23, arg1=
0xbfffeed0,
121 arg2=
0xa905d00, arg3=
0xab34ff0, arg4=
0x1,
122 arg5=
0x0) at modules.c:
666
123 cl = (CallbackList *)
0x8077cb8
126 #
6 0x0804edc8 in do_cumode (source=
0xbfffeed0 "|-Frango-|
", chan=
0xa905d00,
127 flag=
1, add=
0, nick=
0xbfffecc9 "balsanelli
")
128 ---Type
<return
> to continue, or q
<return
> to quit---
130 u = (struct c_userlist *)
0xab34ff0
131 user = (User *)
0xab7f2d8
133 #
7 0x0804e97e in do_cmode (source=
0xbfffeed0 "|-Frango-|
", ac=
0,
134 av=
0xa853130) at channels.c:
302
138 chan = (Channel *)
0xa905d00
139 s =
0xbfffeca5 ""
141 modestr =
0xbfffec9e "-oooooo
"
142 #
8 0x080557ff in m_mode (source=
0xbfffeed0 "|-Frango-|
", ac=
8,
143 av=
0xa853110) at messages.c:
101
145 #
9 0x0805920e in process () at process.c:
133
146 m = (Message *)
0x8067dd8
148 "|-Frango-|\
000\
000G\
000\
000\
000Y\e\
205\n\t+\
205\n\bi??i??i??i??i??\
005\
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">b at j
</A>\
149 a\b\
000\
004\
000\
000i??\
032\
205\n\t\
000\
000\
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">000 at j
</A>\a\b\
216j\a\b(i??i??i??qP\
00
152 "MODE\
000\
000\
000i??
8i??i??i??i??\
005\b\
000\
000\
000\
000i??i??i??i??\
000\
000\
153 000\
000\
000\
000\
000\
000\
001H\
000\
000Pi??i??i??\
000Y\a\bVi??\
005\b\
207j\a\bP\
154 e\
205\n\t\
000\
000\
000i??i??\
005\b
"
156 "MODE\
000#EMOCORE\
000-oooooo\
000CHoPP\
000CbRS-oFF\
000caroll\
000BRYAN\
000brun
157 aH\
000balsanelli\
000 balsanelli\
000\
000ai\
00314ser \
0030]\
00315=\
00314-
158 S\
00315c\
0030ri\
00315p\
00314t \
00315\
037v\
0373.8 \
003\
000\
00315\
037v\
0373.8
159 \
003\
000\
000\
0003)\
000\
0006\
037\
002Pi??Ti??\
00313\
037\
002]\
037\
002\
0036i??i?
160 ? \
000i??Ti??\
00313\
037\
002]\
037\
002\
0036i??i?? \
000\
000\
003\
000\
000r
161 \
003", '\
0'
<repeats
11 times
>...
162 s =
0xbfffec95 "#EMOCORE
"
164 av = (char **)
0xa853110
165 #
10 0x0805507d in readline_callback (s=
0xa851ae0, param_unused=
0x50) at
168 #
11 0x0805b617 in check_sockets () at sockets.c:
491
169 newline =
0xa851b58 "\nrct-sc.br irc.creativenet.com.br
0 3364349034
170 :
<i>aNiNhHa[du]DoNaTeLo\n:Toh_Pensanu PART #ilheus\n:_LoKo_SuL_ SJOIN
171 </I>1063565447 #elias\n:_MoRgAnA_ PRIVMSG
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">NickServ at services.redesul.net
</A> :set
172 nomemo off\n:irc.
"...
175 rfds = {fds_bits = {
16,
0 <repeats
31 times
>}}
176 wfds = {fds_bits = {
0 <repeats
32 times
>}}
177 tv = {tv_sec =
2, tv_usec =
980000}
180 s = (Socket *)
0xa851ae0
182 #
12 0x0805538a in main (ac=
3, av=
0xbffff164, envp=
0xbffff174) at main.c:
266
183 ---Type
<return
> to continue, or q
<return
> to quit---
185 now_msec =
1348441861
186 last_update =
1066500208
187 last_check =
1348441182
188 #
13 0x420156a4 in __libc_start_main () from /lib/tls/libc.so
.6
189 No symbol table info available.
191 eax
0xd6b2bf8a -
692928630
192 ecx
0x806aa00 134654464
193 edx
0x656e6173 1701732723
194 ebx
0x42131a14 1108548116
195 esp
0xbfffd910 0xbfffd910
196 ebp
0xbfffe238 0xbfffe238
197 esi
0x8075900 134699264
198 edi
0xbffff050 -
1073745840
199 eip
0x804d830 0x804d830
210 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">root at irc
</A>(/home/ircadmin/services/lib)# ls -la core
.12631
211 -rw-------
1 ircadmin ircadmin
47374336 Oct
18 16:
05 core
.12631
212 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">root at irc
</A>(/home/ircadmin/services)# ldd ircservices
213 libdl.so
.2 =
> /lib/libdl.so
.2 (
0x4001e000)
214 libc.so
.6 =
> /lib/tls/libc.so
.6 (
0x42000000)
215 /lib/ld-linux.so
.2 =
> /lib/ld-linux.so
.2 (
0x40000000)
216 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">root at irc
</A>(/home/ircadmin/services)# uname -a
217 Linux XXXXXX.xyz
.0xdeadbeef
2.4.20-
8 #
1 Thu Mar
13 17:
54:
28 EST
2003 i686
219 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">root at irc
</A>(/home/ircadmin/services)# cat /etc/redhat-release
220 Red Hat Linux release
9 (Shrike)
221 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">root at irc
</A>(/home/ircadmin/services)# cat /proc/cpuinfo
223 model name : Pentium III (Coppermine)
228 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">root at irc
</A>(/home/ircadmin/services)# free
229 total used free shared buffers cached
230 Mem:
513792 482248 31544 0 69492 274980
232 I changed version of linux, runned it on
3 different machines, on
233 slackware/redhat, pentiumIII, K5, P200.
234 This bug is as older as i run services... dont know if its the same of the
235 4.X (that i changed to
5.X to
"solve
" this bug), but from
5.12 to now, it
236 continue happening... aways...
237 Dont have a exactly time to happen, its insane... i think that its a
238 coincidence of some commands that on the memory ends fucking some variable.
239 if you want look the incidence, here its:
240 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">root at irc
</A>(/home/ircadmin/services/lib)# ls -la core*
242 -rw-------
1 ircadmin ircadmin
49025024 Oct
5 19:
32 core
.27214
243 -rw-------
1 ircadmin ircadmin
45932544 Oct
5 21:
01 core
.14414
244 -rw-------
1 ircadmin ircadmin
46948352 Oct
6 14:
00 core
.18016
245 -rw-------
1 ircadmin ircadmin
45936640 Oct
11 04:
30 core
.1347
246 -rw-------
1 ircadmin ircadmin
50479104 Oct
14 01:
29 core
.16481
247 -rw-------
1 ircadmin ircadmin
44982272 Oct
15 13:
54 core
.22332
248 -rw-------
1 ircadmin ircadmin
47374336 Oct
18 16:
05 core
.12631
249 -rw-------
1 ircadmin ircadmin
48099328 Oct
19 14:
16 core
.5362
250 -rw-------
1 ircadmin ircadmin
44863488 Oct
19 14:
22 core
.32708
251 -rw-------
1 ircadmin ircadmin
45355008 Nov
1 15:
13 core
.28309
252 -rw-------
1 ircadmin ircadmin
50360320 Nov
3 18:
24 core
.5160
255 If it helps, here is the debugging of the last two cores, on gdb:
258 #
0 0x0804e8bf in do_cmode (source=
0x806aa08 "ChanServ
", ac=-
1,
263 #
0 0x0804e8bf in do_cmode (source=
0x806aa08 "ChanServ
", ac=-
1,
266 chan = (Channel *)
0xa87d1e0
267 s =
0x1f73746f <Address
0x1f73746f out of bounds
>
269 modestr =
0x1f73746f <Address
0x1f73746f out of bounds
>
270 #
1 0x0804dc8e in flush_cmode (md=
0x806aa00, clear=
1) at actions.c:
680
271 buf =
"-imsl\
000HA___\
000\
000\
000\
000\
000W
272 \
022B\
000\
000\
000L\
000\
000\
000\
000\
000y\
000nossaTZ\
000\
000\
000\
000\
000\
000yy
273 yyA
<\
023B\
001\
000\
000\
000\bYy?Om\tBd
274 \
022BDq\a\bOUy?NO\
006B\
210o\a\b3\
035\rB\
024\
032\
023BAa\
006B\
003\
000\
000\
000a
275 Yy?\
027\
000\
000\
000\
024\
032\
023B\
024\
032\
023BTZ\
000\
000\
004\
000\
000\
000\
005\
276 000\
000\
000\
210o\a\baYy?\
030Yy?NO\
006B\
210o\a\baYy?\
027\
000\
000\
000$u\
006B\
2
277 10o\a\bIo\a\b\vO\
006B\
024\
032\
023B\
024\
032\
023B@\
002\a\bHYy?$u\
006B\
200Yy?@o
279 s =
0xbfffdc60 "-imsl
"
280 argv = {
0xa87d1e8 "#soad
",
281 0x1f73746f <Address
0x1f73746f out of bounds
>,
282 0x5303200f <Address
0x5303200f out of bounds
>,
283 0x6c6c6568 <Address
0x6c6c6568 out of bounds
>,
284 0x4323203a <Address
0x4323203a out of bounds
>,
285 0x65746e65 <Address
0x65746e65 out of bounds
>,
286 0x65685372 <Address
0x65685372 out of bounds
>,
287 0x52426c6c <Address
0x52426c6c out of bounds
>}
289 ---Type
<return
> to continue, or q
<return
> to quit---
292 #
2 0x0804cebd in set_cmode (sender=
0x0, channel=
0x0) at actions.c:
321
296 md = (struct modedata *)
0x0
301 #
3 0x080553a3 in main (ac=
1, av=
0xbfffe574, envp=
0xbfffe57c) at main.c:
269
303 now_msec = -
1555790286
304 last_update =
1067890538
305 last_check =
2739174210
306 #
4 0x420156a4 in __libc_start_main () from /lib/tls/libc.so
.6
307 No symbol table info available.
311 #
0 0x0804e8bf in do_cmode (source=
0x806aa08 "ChanServ
", ac=-
1,
316 #
0 0x0804e8bf in do_cmode (source=
0x806aa08 "ChanServ
", ac=-
1,
319 chan = (Channel *)
0xa9be840
320 s =
0xbf000000 <Address
0xbf000000 out of bounds
>
322 modestr =
0xbf000000 <Address
0xbf000000 out of bounds
>
323 #
1 0x0804dc8e in flush_cmode (md=
0x806aa00, clear=
1) at actions.c:
680
324 buf =
"-imsl\
000\a\b\
000len\
000\
000\
000\
000W
325 \
022B3\
035\rB\
024\
032\
023BAa\
006B\
003\
000\
000\
000
326 oy?\
027\
000\
000\
000yyyyA
<\
023BTZ\
000\
000\
004\
000\
000\
000\
005\
000\
000\
000\
210
327 o\a\b oy?Xoy?NO\
006B\
210o\a\b
328 oy?\
027\
000\
000\
000$u\
006B\
210o\a\bIo\a\b\vO\
006B\
024\
032\
023B\
024\
032\
023B@
329 \
002\a\b\
210oy?$u\
006BAoy?@o\
006\b@\
002\a\b\
000\
000\
000\
000\
024\
032\
023B@\
00
330 2\a\b
¨oy?
6\
020\aBaoy?@o\
006\b@\
002\a\b\
000\
000\
000\
000Aoy?I\
037\
006\b=S\
004B
331 \
024\
032\
023B\
001\
020\
000\
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">000 at o
</A>\
006\b
"...
332 s =
0xbffff2e0 "-imsl
"
333 argv = {
0xa9be848 "#zoera
",
334 0xbf000000 <Address
0xbf000000 out of bounds
>,
0x0,
335 0x806f240 "ircservices.log
",
0x806f240 "ircservices.log
",
336 0x5a54 <Address
0x5a54 out of bounds
>,
0x0,
337 0xffffffff <Address
0xffffffff out of bounds
>}
341 #
2 0x0804cebd in set_cmode (sender=
0x0, channel=
0x0) at actions.c:
321
342 ---Type
<return
> to continue, or q
<return
> to quit---
346 md = (struct modedata *)
0x0
351 #
3 0x080553a3 in main (ac=
1, av=
0xbffffbf4, envp=
0xbffffbfc) at main.c:
269
353 now_msec = -
1740061222
354 last_update =
1067706282
355 last_check =
2554904000
356 #
4 0x420156a4 in __libc_start_main () from /lib/tls/libc.so
.6
357 No symbol table info available.
360 Im running it more a time on Screen to can get exactly where occur the bug
361 (with -nofork -debug), to look for more examples of commands that causes
363 if have something (more) that i can to add/do to helps on debugging, please,
364 tell me.. i have the core (i cant send it, for secure reasons... have all my
365 db on the core... ), but im open to helps anytime anywhere... with
368 Thanks for all development, this is really a bealtifull software...
369 (and sorry for my bad english)
371 Diego B. Contezini aka destruct_ #irc.redesul.net
381 <LI>Previous message:
<A HREF=
"002798.html">[IRCServices Coding] test
383 <LI>Next message:
<A HREF=
"002800.html">[IRCServices Coding] about.. CORE DUMPED! BUG!
385 <LI> <B>Messages sorted by:
</B>
386 <a href=
"date.html#2799">[ date ]
</a>
387 <a href=
"thread.html#2799">[ thread ]
</a>
388 <a href=
"subject.html#2799">[ subject ]
</a>
389 <a href=
"author.html#2799">[ author ]
</a>