]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2003/002799.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2003 / 002799.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] CORE DUMPED! BUG!
5 </TITLE>
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">
12 </HEAD>
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
18 </A><BR>
19 <I>Tue Nov 4 16:43:45 PST 2003</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="002798.html">[IRCServices Coding] test
22 </A></li>
23 <LI>Next message: <A HREF="002800.html">[IRCServices Coding] about.. CORE DUMPED! BUG!
24 </A></li>
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>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
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
36 18:41:36 BRT 2003)
37 yes, 5.0.23 is the last.. but nothing has changed about the bug...
38
39 here is the debugging:
40
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
45 #Euevc
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
53 +stmipl 1
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)
65
66
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 &quot;balsanelli&quot;,
70 len=10) at actions.c:568
71 568 md-&gt;params[md-&gt;nopmodes][len] = 0;
72 (gdb) bt'
73 #0 0x0804d830 in add_mode_with_params (md=0x806aa00, mode=111 'o',
74 is_add=1, params=1, parambuf=0xbfffe280 &quot;balsanelli&quot;,
75 len=10) at actions.c:568
76 s = 0x806aa3e &quot;&quot;
77 #1 0x0804d342 in set_cmode (sender=0x81db058 &quot;ChanServ&quot;, channel=0xa905d00)
78 at actions.c:446
79 parambuf =
80 &quot;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??&lt;\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&quot;...
88 len = 10
89 flag = 1
90 params = 1
91 is_chanuser = 1
92 args = 0xbfffe6d0 &quot;RDcoCOREcorei??i??i??i??o&quot;
93 modes = 0xbfffeae2 &quot;&quot;
94 modes_orig = 0xbfffeae0 &quot;+o&quot;
95 md = (struct modedata *) 0x806aa00
96 which = 0
97 add = 1
98 i = 1
99 c = 111 'o'
100 #2 0x400895ff in local_set_cumodes (c=0xa905d00, plusminus=43 '+', modes=1,
101 nick=0xab7f2e8 &quot;balsanelli&quot;) at check.c:432
102 buf = &quot;+o&quot;
103 modestr = &quot;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)..&quot;...
107 s = 0xbfffe6e1 &quot;&quot;
108 #3 0x40088d74 in check_chan_user_modes (source=0xbfffeed0 &quot;|-Frango-|&quot;,
109 u=0xab34ff0, c=0xa905d00, oldmodes=1)
110 at check.c:214
111 user = (User *) 0xab7f2d8
112 ci = (ChannelInfo *) 0xa571940
113 modes = 0
114 is_servermode = 0
115 res = 1
116 #4 0x400820ed in do_channel_umode_change (source=0xbfffeed0 &quot;|-Frango-|&quot;,
117 c=0xa905d00, u=0xab34ff0, oldmodes=1)
118 at main.c:354
119 No locals.
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
124 res = 0
125 i = 0
126 #6 0x0804edc8 in do_cumode (source=0xbfffeed0 &quot;|-Frango-|&quot;, chan=0xa905d00,
127 flag=1, add=0, nick=0xbfffecc9 &quot;balsanelli&quot;)
128 ---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
129 at channels.c:409
130 u = (struct c_userlist *) 0xab34ff0
131 user = (User *) 0xab7f2d8
132 oldmode = 1
133 #7 0x0804e97e in do_cmode (source=0xbfffeed0 &quot;|-Frango-|&quot;, ac=0,
134 av=0xa853130) at channels.c:302
135 modechar = 111 'o'
136 flag = 1
137 params = -1073746288
138 chan = (Channel *) 0xa905d00
139 s = 0xbfffeca5 &quot;&quot;
140 add = 0
141 modestr = 0xbfffec9e &quot;-oooooo&quot;
142 #8 0x080557ff in m_mode (source=0xbfffeed0 &quot;|-Frango-|&quot;, ac=8,
143 av=0xa853110) at messages.c:101
144 No locals.
145 #9 0x0805920e in process () at process.c:133
146 m = (Message *) 0x8067dd8
147 source =
148 &quot;|-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
150 5\b&quot;
151 cmd =
152 &quot;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&quot;
155 buf =
156 &quot;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&quot;, '\0' &lt;repeats 11 times&gt;...
162 s = 0xbfffec95 &quot;#EMOCORE&quot;
163 ac = 8
164 av = (char **) 0xa853110
165 #10 0x0805507d in readline_callback (s=0xa851ae0, param_unused=0x50) at
166 main.c:177
167 No locals.
168 #11 0x0805b617 in check_sockets () at sockets.c:491
169 newline = 0xa851b58 &quot;\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.&quot;...
173 left = 80
174 newleft = 80
175 rfds = {fds_bits = {16, 0 &lt;repeats 31 times&gt;}}
176 wfds = {fds_bits = {0 &lt;repeats 32 times&gt;}}
177 tv = {tv_sec = 2, tv_usec = 980000}
178 i = 4
179 res = 260
180 s = (Socket *) 0xa851ae0
181 s2 = (Socket *) 0x0
182 #12 0x0805538a in main (ac=3, av=0xbffff164, envp=0xbffff174) at main.c:266
183 ---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
184 now = 1066500331
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.
190 (gdb) info registers
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
200 eflags 0x10282 66178
201 cs 0x23 35
202 ss 0x2b 43
203 ds 0x2b 43
204 es 0x2b 43
205 fs 0x0 0
206 gs 0x33 51
207 (gdb)
208
209
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 =&gt; /lib/libdl.so.2 (0x4001e000)
214 libc.so.6 =&gt; /lib/tls/libc.so.6 (0x42000000)
215 /lib/ld-linux.so.2 =&gt; /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
218 i686 i386 GNU/Linux
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
222 ...
223 model name : Pentium III (Coppermine)
224 stepping : 10
225 cpu MHz : 999.752
226 cache size : 256 KB
227 ...
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
231
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 &quot;solve&quot; 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*
241
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
253
254
255 If it helps, here is the debugging of the last two cores, on gdb:
256 ----------------
257 FIRST:
258 #0 0x0804e8bf in do_cmode (source=0x806aa08 &quot;ChanServ&quot;, ac=-1,
259 av=0xbfffdc38)
260 at channels.c:278
261 278 while (*s) {
262 (gdb) bt'
263 #0 0x0804e8bf in do_cmode (source=0x806aa08 &quot;ChanServ&quot;, ac=-1,
264 av=0xbfffdc38)
265 at channels.c:278
266 chan = (Channel *) 0xa87d1e0
267 s = 0x1f73746f &lt;Address 0x1f73746f out of bounds&gt;
268 add = 1
269 modestr = 0x1f73746f &lt;Address 0x1f73746f out of bounds&gt;
270 #1 0x0804dc8e in flush_cmode (md=0x806aa00, clear=1) at actions.c:680
271 buf = &quot;-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&lt;\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
278 \006\b&quot;...
279 s = 0xbfffdc60 &quot;-imsl&quot;
280 argv = {0xa87d1e8 &quot;#soad&quot;,
281 0x1f73746f &lt;Address 0x1f73746f out of bounds&gt;,
282 0x5303200f &lt;Address 0x5303200f out of bounds&gt;,
283 0x6c6c6568 &lt;Address 0x6c6c6568 out of bounds&gt;,
284 0x4323203a &lt;Address 0x4323203a out of bounds&gt;,
285 0x65746e65 &lt;Address 0x65746e65 out of bounds&gt;,
286 0x65685372 &lt;Address 0x65685372 out of bounds&gt;,
287 0x52426c6c &lt;Address 0x52426c6c out of bounds&gt;}
288 len = 5
289 ---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
290 i = 0
291 lastc = 45 '-'
292 #2 0x0804cebd in set_cmode (sender=0x0, channel=0x0) at actions.c:321
293 args = 0x0
294 modes = 0x0
295 modes_orig = 0x0
296 md = (struct modedata *) 0x0
297 which = -1
298 add = 0
299 i = 0
300 c = 0 '\0'
301 #3 0x080553a3 in main (ac=1, av=0xbfffe574, envp=0xbfffe57c) at main.c:269
302 now = 1067891066
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.
308 -----------
309
310 SECOND:
311 #0 0x0804e8bf in do_cmode (source=0x806aa08 &quot;ChanServ&quot;, ac=-1,
312 av=0xbffff2b8)
313 at channels.c:278
314 278 while (*s) {
315 (gdb) bt'
316 #0 0x0804e8bf in do_cmode (source=0x806aa08 &quot;ChanServ&quot;, ac=-1,
317 av=0xbffff2b8)
318 at channels.c:278
319 chan = (Channel *) 0xa9be840
320 s = 0xbf000000 &lt;Address 0xbf000000 out of bounds&gt;
321 add = 1
322 modestr = 0xbf000000 &lt;Address 0xbf000000 out of bounds&gt;
323 #1 0x0804dc8e in flush_cmode (md=0x806aa00, clear=1) at actions.c:680
324 buf = &quot;-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&lt;\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&#168;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&quot;...
332 s = 0xbffff2e0 &quot;-imsl&quot;
333 argv = {0xa9be848 &quot;#zoera&quot;,
334 0xbf000000 &lt;Address 0xbf000000 out of bounds&gt;, 0x0,
335 0x806f240 &quot;ircservices.log&quot;, 0x806f240 &quot;ircservices.log&quot;,
336 0x5a54 &lt;Address 0x5a54 out of bounds&gt;, 0x0,
337 0xffffffff &lt;Address 0xffffffff out of bounds&gt;}
338 len = 5
339 i = 0
340 lastc = 45 '-'
341 #2 0x0804cebd in set_cmode (sender=0x0, channel=0x0) at actions.c:321
342 ---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
343 args = 0x0
344 modes = 0x0
345 modes_orig = 0x0
346 md = (struct modedata *) 0x0
347 which = -1
348 add = 0
349 i = 0
350 c = 0 '\0'
351 #3 0x080553a3 in main (ac=1, av=0xbffffbf4, envp=0xbffffbfc) at main.c:269
352 now = 1067706795
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.
358 (gdb)
359 -------
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
362 this bug...
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
366 anything....
367
368 Thanks for all development, this is really a bealtifull software...
369 (and sorry for my bad english)
370
371 Diego B. Contezini aka destruct_ #irc.redesul.net
372
373
374
375 </PRE>
376
377 <!--endarticle-->
378 <HR>
379 <P><UL>
380 <!--threads-->
381 <LI>Previous message: <A HREF="002798.html">[IRCServices Coding] test
382 </A></li>
383 <LI>Next message: <A HREF="002800.html">[IRCServices Coding] about.. CORE DUMPED! BUG!
384 </A></li>
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>
390 </LI>
391 </UL>
392
393 </body></html>