]> jfr.im git - irc.git/blame - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2004/004456.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2004 / 004456.html
CommitLineData
3bd189cb
JR
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2<HTML>
3 <HEAD>
4 <TITLE> [IRCServices] Segmentation Error at startup with database load
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Segmentation%20Error%20at%20startup%20with%20database%20load&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="004452.html">
11 <LINK REL="Next" HREF="004457.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] Segmentation Error at startup with database load</H1>
15 <B>Michael Felt</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Segmentation%20Error%20at%20startup%20with%20database%20load&In-Reply-To="
17 TITLE="[IRCServices] Segmentation Error at startup with database load">mamfelt at acm.org
18 </A><BR>
19 <I>Mon Jun 14 01:33:27 PDT 2004</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="004452.html">[IRCServices] Services 5.0.32 released
22</A></li>
23 <LI>Next message: <A HREF="004457.html">[IRCServices] Segmentation Error at startup with database load
24</A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#4456">[ date ]</a>
27 <a href="thread.html#4456">[ thread ]</a>
28 <a href="subject.html#4456">[ subject ]</a>
29 <a href="author.html#4456">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33<!--beginarticle-->
34<PRE>Note: if the database files are removed, ircservices startups and
35communicates with bahamut with no problems.
36The core dump occurs on a restart.
37
381. IRC Version
39[Jun 14 01:48:32 2004] IRC Services 5.0.32 starting up
40
41HARDWARE/OS: PowerIV, 64 bit, AIX 5.2
42Compiled with no special problems using gcc 3.3.2 downloaded from BULL
43 freeware.gcc.rte 3.3.2.0 C F gcc version 3.3.2
44
45p.s. I had alomst gotten it ported to AIX xlC compiler, but also ran into
46problems with __builtin* functions.
47Apparantly only GCC has those.
48
492. NA atm (bahamut 1.8)
50
513. Basic error: core dump, segmentation error
52Segmentation fault in load_one_serverstats at line 2316 in file
53&quot;modules/database/version4.c&quot;
54 2316 ss-&gt;t_join = tmp32;
55
564.
57(dbx) list 2305, 2320
58 2305 static ServerStats *load_one_serverstats(dbFILE *f)
59 2306 {
60 2307 ServerStats *ss;
61 2308 char *servername;
62 2309 int32 tmp32;
63 2310
64 2311 SAFE(read_string(&amp;servername, f));
65 2312 ss = new_serverstats(servername);
66 2313 free(servername);
67 2314 servername = NULL;
68 2315 SAFE(read_int32(&amp;tmp32, f));
69 2316 ss-&gt;t_join = tmp32;
70 2317 SAFE(read_int32(&amp;tmp32, f)); /* t_quit */
71 2318 /* Avoid join&gt;=quit staying true on load (which would indicate
72that the
73 2319 * server is online even before any server connections are
74processed) */
75 2320 ss-&gt;t_quit = time(NULL)-1;
76(dbx)
77===
78Basically, new_serverstats return value is not properly returned.
79===
80more detail
81(dbx) stop at 2312
82[2] stop at &quot;version4.c&quot;:2312
83(dbx) rerun
84[ /usr/local/sbin/ircservices ]
85[2] stopped in load_one_serverstats at line 2312 in file
86&quot;modules/database/version4.c&quot;
87 2312 ss = new_serverstats(servername);
88(dbx) where
89load_one_serverstats(f = 0x2008c668), line 2312 in &quot;version4.c&quot;
90open_statserv_db(dbname = &quot;stats.db&quot;), line 2377 in &quot;version4.c&quot;
91init_module_statserv_main(??), line 622 in &quot;main.c&quot;
92internal_init_module(??), line 388 in &quot;modules.c&quot;
93load_module(??), line 417 in &quot;modules.c&quot;
94unnamed block $b64, line 848 in &quot;init.c&quot;
95init.init(??, ??), line 848 in &quot;init.c&quot;
96main.main(ac = ??, av = 0x2ff22b04, envp = 0x2ff22b0c), line 225 in &quot;main.c&quot;
97(dbx) dump
98load_one_serverstats(f = 0x2008c668), line 2312 in &quot;version4.c&quot;
99servername = &quot;Ascendent.tdzk&quot;
100ss = (nil)
101tmp32 = 536944164
102(dbx) registers
103 $r0:0x1001d27c $stkp:0x2ff22788 $toc:0x2001508c $r3:0x00000000
104 $r4:0x00000fe9 $r5:0x201c56e7 $r6:0x6e64656e $r7:0x742e7464
105 $r8:0x7a6b0000 $r9:0x00000000 $r10:0xf01c5f34 $r11:0x00000000
106 $r12:0x1001f9c0 $r13:0xdeadbeef $r14:0x00000001 $r15:0x2ff22b04
107 $r16:0x2ff22b0c $r17:0x00000000 $r18:0xdeadbeef $r19:0xdeadbeef
108 $r20:0xdeadbeef $r21:0xdeadbeef $r22:0xdeadbeef $r23:0xdeadbeef
109 $r24:0xdeadbeef $r25:0x00000001 $r26:0x2ff22b04 $r27:0x00000001
110 $r28:0x2008c488 $r29:0x00000001 $r30:0x2008c668 $r31:0x00000000
111 $iar:0x1001d288 $msr:0x0002d0b2 $cr:0x28222244 $link:0x1001d27c
112 $ctr:0xd01f0278 $xer:0x0000000f $mq:0xdeadbeef
113 Condition status = 0:e 1:l 2:e 3:e 4:e 5:e 6:g 7:g
114 [unset $noflregs to view floating point registers]
115in load_one_serverstats at line 2312 in file &quot;modules/database/version4.c&quot;
1160x1001d288 (load_one_serverstats+0x30) 812206cc lwz r9,0x6cc(r2)
117(dbx) whatis ss
118register ServerStats *ss;
119(dbx)
120====
121(dbx) step
122[2]
123Interrupt in load_one_serverstats at line 2312 in file
124&quot;modules/database/version4.c&quot;
125 2312 ss = new_serverstats(servername);
126(dbx) step
127
128stopped in __dblocal_new_serverstats_stub at line 189 in file
129&quot;modules/database/extsyms.c&quot;
130 189 IMPORT_FUNC(&quot;statserv/main&quot;, module_statserv, new_serverstats);
131(dbx)
132, etc..
133====
134 2312 ss = new_serverstats(servername);
135(dbx) registers
136 $r0:0x1001d2ac $stkp:0x2ff22788 $toc:0x2001508c $r3:0x00008080
137 $r4:0x2008b0d4 $r5:0x2008b576 $r6:0x00000000 $r7:0x007a6b00
138 $r8:0x7a6b0000 $r9:0x00008080 $r10:0x7f7f7f7f $r11:0x00000004
139 $r12:0x00008080 $r13:0xdeadbeef $r14:0x00000001 $r15:0x2ff22b04
140 $r16:0x2ff22b0c $r17:0x00000000 $r18:0xdeadbeef $r19:0xdeadbeef
141 $r20:0xdeadbeef $r21:0xdeadbeef $r22:0xdeadbeef $r23:0xdeadbeef
142 $r24:0xdeadbeef $r25:0x00000001 $r26:0x2ff22b04 $r27:0x00000001
143 $r28:0x2008c488 $r29:0x00000001 $r30:0x2008c668 $r31:0x00000000
144 $iar:0x1001d2ac $msr:0x0000d0b2 $cr:0x24222224 $link:0x1001d2ac
145 $ctr:0x00000004 $xer:0x0000000f $mq:0xdeadbeef
146 Condition status = 0:e 1:g 2:e 3:e 4:e 5:e 6:e 7:g
147 [unset $noflregs to view floating point registers]
148in load_one_serverstats at line 2312 in file &quot;modules/database/version4.c&quot;
1490x1001d2ac (load_one_serverstats+0x54) 80410014 lwz r2,0x14(r1)
150
151(dbx) / ss
152 2316 ss-&gt;t_join = tmp32;
153(dbx) stepi
154stopped in load_one_serverstats at 0x1001d2b0
1550x1001d2b0 (load_one_serverstats+0x58) 7c7f1b78 mr r31,r3
156(dbx) stepi
157stopped in load_one_serverstats at 0x1001d2b4
1580x1001d2b4 (load_one_serverstats+0x5c) 80610038 lwz r3,0x38(r1)
159(dbx) print ss
1600x00008080
161
162ABOVE it seems that ss is finally getting it's value (in r31, was nil, now
1630x0008080 (from r3)
164(dbx) registers
165 $r0:0x1001d2ac $stkp:0x2ff22788 $toc:0x2001508c $r3:0x2008b0c8
166 $r4:0x2008b0d4 $r5:0x2008b576 $r6:0x00000000 $r7:0x007a6b00
167 $r8:0x7a6b0000 $r9:0x00008080 $r10:0x7f7f7f7f $r11:0x00000004
168 $r12:0xf01b401c $r13:0xdeadbeef $r14:0x00000001 $r15:0x2ff22b04
169 $r16:0x2ff22b0c $r17:0x00000000 $r18:0xdeadbeef $r19:0xdeadbeef
170 $r20:0xdeadbeef $r21:0xdeadbeef $r22:0xdeadbeef $r23:0xdeadbeef
171 $r24:0xdeadbeef $r25:0x00000001 $r26:0x2ff22b04 $r27:0x00000001
172 $r28:0x2008c488 $r29:0x00000001 $r30:0x2008c668 $r31:0x00008080
173 $iar:0x10004344 $msr:0x0002d0b2 $cr:0x24222224 $link:0x1001d2bc
174 $ctr:0x00000004 $xer:0x0000000f $mq:0xdeadbeef
175 Condition status = 0:e 1:g 2:e 3:e 4:e 5:e 6:e 7:g
176 [unset $noflregs to view floating point registers]
177====
178
179In smaller steps I come to this code:
180stopped in new_serverstats at line 377 in file &quot;modules/statserv/main.c&quot;
181 377 {
182(dbx) where
183new_serverstats(servername = &quot;Ascendent.tdzk&quot;), line 377 in &quot;main.c&quot;
184__dblocal_new_serverstats_stub(), line 189 in &quot;extsyms.c&quot;
185load_one_serverstats(f = 0x2008c668), line 2312 in &quot;version4.c&quot;
186open_statserv_db(dbname = &quot;stats.db&quot;), line 2377 in &quot;version4.c&quot;
187init_module_statserv_main(module_ = ??), line 622 in &quot;main.c&quot;
188internal_init_module(module = 0x2008c3a8), line 388 in &quot;modules.c&quot;
189load_module(modulename = &quot;statserv/main&quot;), line 417 in &quot;modules.c&quot;
190unnamed block $b64, line 848 in &quot;init.c&quot;
191init.init(??, ??), line 848 in &quot;init.c&quot;
192main.main(ac = ??, av = 0x2ff22b04, envp = 0x2ff22b0c), line 225 in &quot;main.c&quot;
193(dbx) list 370, 390
194 370
195 371 /* Create a new ServerStats structure for the given server name
196and return
197 372 * it. Always successful.
198 373 */
199 374
200 375 EXPORT_FUNC(new_serverstats)
201 376 ServerStats *new_serverstats(const char *servername)
202 377 {
203 378 ServerStats *ss;
204 379
205 380 ss = scalloc(sizeof(*ss), 1);
206 381 ss-&gt;name = sstrdup(servername);
207 382 return ss;
208 383 }
209 384
210 385
211/*************************************************************************/
212
213And then single stepping....
214(watch for mr r31,r3 (that incorrectly loads the r31 (ss) value.
215
216====
217(dbx) stop at 383
218[7] stop at &quot;modules/statserv/main.c&quot;:383
219(dbx) cont
220[7] stopped in new_serverstats at line 383 in file &quot;modules/statserv/main.c&quot;
221 383 }
222(dbx) dump
223new_serverstats(servername = &quot;Ascendent.tdzk&quot;), line 383 in &quot;main.c&quot;
224ss = 0x2008b658
225(dbx) registers
226 $r0:0x2008b568 $stkp:0x2ff22648 $toc:0x2001508c $r3:0x2008b568
227 $r4:0x2008b0d4 $r5:0x2008b576 $r6:0x00000000 $r7:0x007a6b00
228 $r8:0x7a6b0000 $r9:0x00008080 $r10:0x7f7f7f7f $r11:0x00000004
229 $r12:0x00008080 $r13:0xdeadbeef $r14:0x00000001 $r15:0x2ff22b04
230 $r16:0x2ff22b0c $r17:0x00000000 $r18:0xdeadbeef $r19:0xdeadbeef
231 $r20:0xdeadbeef $r21:0xdeadbeef $r22:0xdeadbeef $r23:0xdeadbeef
232 $r24:0xdeadbeef $r25:0x00000001 $r26:0x2ff22b04 $r27:0x00000001
233 $r28:0x2008b0c8 $r29:0x2008b658 $r30:0x2008c668 $r31:0x2ff22698
234 $iar:0x1007eb28 $msr:0x0002d0b2 $cr:0x24222224 $link:0x1007eb1c
235 $ctr:0x00000004 $xer:0x0000000f $mq:0xdeadbeef
236 Condition status = 0:e 1:g 2:e 3:e 4:e 5:e 6:e 7:g
237 [unset $noflregs to view floating point registers]
238in new_serverstats at line 383 in file &quot;modules/statserv/main.c&quot;
2390x1007eb28 (new_serverstats+0x40) 7fa3eb78 mr r3,r29
240(dbx) stepi
241stopped in unnamed block $b916 at 0x1007eb2c
2420x1007eb2c ($b916) 901d0010 stw r0,0x10(r29)
243(dbx) stepi
244stopped in unnamed block $b916 at 0x1007eb30
2450x1007eb30 ($b916+0x4) 80010008 lwz r0,0x8(r1)
246(dbx) stepi
247stopped in unnamed block $b916 at 0x1007eb34
2480x1007eb34 ($b916+0x8) 8381fff0 lwz r28,-16(r1)
249(dbx) stepi
250stopped in unnamed block $b916 at 0x1007eb38
2510x1007eb38 ($b916+0xc) 7c0803a6 mtlr r0
252(dbx) stepi
253stopped in unnamed block $b916 at 0x1007eb3c
2540x1007eb3c ($b916+0x10) 83a1fff4 lwz r29,-12(r1)
255(dbx) stepi
256stopped in unnamed block $b916 at 0x1007eb40
2570x1007eb40 ($b916+0x14) 4e800020 blr
258(dbx) stepi
259stopped in __dblocal_new_serverstats_stub at 0x10020fb8
2600x10020fb8 (__dblocal_new_serverstats_stub+0x11c)
26180410014 lwz r2,0x14(r1)
262(dbx) registers
263 $r0:0x10020fb8 $stkp:0x2ff22648 $toc:0x2001508c $r3:0x2008b658
264 $r4:0x2008b0d4 $r5:0x2008b576 $r6:0x00000000 $r7:0x007a6b00
265 $r8:0x7a6b0000 $r9:0x00008080 $r10:0x7f7f7f7f $r11:0x00000004
266 $r12:0x00008080 $r13:0xdeadbeef $r14:0x00000001 $r15:0x2ff22b04
267 $r16:0x2ff22b0c $r17:0x00000000 $r18:0xdeadbeef $r19:0xdeadbeef
268 $r20:0xdeadbeef $r21:0xdeadbeef $r22:0xdeadbeef $r23:0xdeadbeef
269 $r24:0xdeadbeef $r25:0x00000001 $r26:0x2ff22b04 $r27:0x00000001
270 $r28:0x20015008 $r29:0x20003e30 $r30:0x2008c668 $r31:0x2ff22698
271 $iar:0x10020fb8 $msr:0x0002d0b2 $cr:0x24222224 $link:0x10020fb8
272 $ctr:0x00000004 $xer:0x0000000f $mq:0xdeadbeef
273 Condition status = 0:e 1:g 2:e 3:e 4:e 5:e 6:e 7:g
274 [unset $noflregs to view floating point registers]
275in __dblocal_new_serverstats_stub at 0x10020fb8
2760x10020fb8 (__dblocal_new_serverstats_stub+0x11c)
27780410014 lwz r2,0x14(r1)
278(dbx) stepi
279stopped in __dblocal_new_serverstats_stub at 0x10020fbc
2800x10020fbc (__dblocal_new_serverstats_stub+0x120)
281907f00c8 stw r3,0xc8(r31)
282(dbx) registers
283 $r0:0x10020fb8 $stkp:0x2ff22648 $toc:0x2001508c $r3:0x2008b658
284 $r4:0x2008b0d4 $r5:0x2008b576 $r6:0x00000000 $r7:0x007a6b00
285 $r8:0x7a6b0000 $r9:0x00008080 $r10:0x7f7f7f7f $r11:0x00000004
286 $r12:0x00008080 $r13:0xdeadbeef $r14:0x00000001 $r15:0x2ff22b04
287 $r16:0x2ff22b0c $r17:0x00000000 $r18:0xdeadbeef $r19:0xdeadbeef
288 $r20:0xdeadbeef $r21:0xdeadbeef $r22:0xdeadbeef $r23:0xdeadbeef
289 $r24:0xdeadbeef $r25:0x00000001 $r26:0x2ff22b04 $r27:0x00000001
290 $r28:0x20015008 $r29:0x20003e30 $r30:0x2008c668 $r31:0x2ff22698
291 $iar:0x10020fbc $msr:0x0002d0b2 $cr:0x24222224 $link:0x10020fb8
292 $ctr:0x00000004 $xer:0x0000000f $mq:0xdeadbeef
293 Condition status = 0:e 1:g 2:e 3:e 4:e 5:e 6:e 7:g
294 [unset $noflregs to view floating point registers]
295in __dblocal_new_serverstats_stub at 0x10020fbc
2960x10020fbc (__dblocal_new_serverstats_stub+0x120)
297907f00c8 stw r3,0xc8(r31)
298(dbx) stepi
299stopped in __dblocal_new_serverstats_stub at 0x10020fc0
3000x10020fc0 (__dblocal_new_serverstats_stub+0x124)
301909f00cc stw r4,0xcc(r31)
302(dbx) registers
303 $r0:0x10020fb8 $stkp:0x2ff22648 $toc:0x2001508c $r3:0x2008b658
304 $r4:0x2008b0d4 $r5:0x2008b576 $r6:0x00000000 $r7:0x007a6b00
305 $r8:0x7a6b0000 $r9:0x00008080 $r10:0x7f7f7f7f $r11:0x00000004
306 $r12:0x00008080 $r13:0xdeadbeef $r14:0x00000001 $r15:0x2ff22b04
307 $r16:0x2ff22b0c $r17:0x00000000 $r18:0xdeadbeef $r19:0xdeadbeef
308 $r20:0xdeadbeef $r21:0xdeadbeef $r22:0xdeadbeef $r23:0xdeadbeef
309 $r24:0xdeadbeef $r25:0x00000001 $r26:0x2ff22b04 $r27:0x00000001
310 $r28:0x20015008 $r29:0x20003e30 $r30:0x2008c668 $r31:0x2ff22698
311 $iar:0x10020fc0 $msr:0x0002d0b2 $cr:0x24222224 $link:0x10020fb8
312 $ctr:0x00000004 $xer:0x0000000f $mq:0xdeadbeef
313 Condition status = 0:e 1:g 2:e 3:e 4:e 5:e 6:e 7:g
314 [unset $noflregs to view floating point registers]
315in __dblocal_new_serverstats_stub at 0x10020fc0
3160x10020fc0 (__dblocal_new_serverstats_stub+0x124)
317909f00cc stw r4,0xcc(r31)
318(dbx) stepi
319stopped in __dblocal_new_serverstats_stub at 0x10020fc4
3200x10020fc4 (__dblocal_new_serverstats_stub+0x128)
321d83f00d0 stfd fr1,0xd0(r31)
322(dbx) stepi
323stopped in __dblocal_new_serverstats_stub at 0x10020fc8
3240x10020fc8 (__dblocal_new_serverstats_stub+0x12c)
325803f00dc lwz r1,0xdc(r31)
326(dbx) stepi
327stopped in __dblocal_new_serverstats_stub at 0x10020fcc
3280x10020fcc (__dblocal_new_serverstats_stub+0x130)
329801f00d8 lwz r0,0xd8(r31)
330(dbx) stepi
331stopped in __dblocal_new_serverstats_stub at 0x10020fd0
3320x10020fd0 (__dblocal_new_serverstats_stub+0x134)
33390010000 stw r0,0x0(r1)
334(dbx) stepi
335stopped in __dblocal_new_serverstats_stub at 0x10020fd4
3360x10020fd4 (__dblocal_new_serverstats_stub+0x138)
33780210000 lwz r1,0x0(r1)
338(dbx) stepi
339stopped in __dblocal_new_serverstats_stub at 0x10020fd8
3400x10020fd8 (__dblocal_new_serverstats_stub+0x13c)
341807f00c8 lwz r3,0xc8(r31)
342(dbx) registers
343 $r0:0x2ff22788 $stkp:0x2ff22788 $toc:0x2001508c $r3:0x2008b658
344 $r4:0x2008b0d4 $r5:0x2008b576 $r6:0x00000000 $r7:0x007a6b00
345 $r8:0x7a6b0000 $r9:0x00008080 $r10:0x7f7f7f7f $r11:0x00000004
346 $r12:0x00008080 $r13:0xdeadbeef $r14:0x00000001 $r15:0x2ff22b04
347 $r16:0x2ff22b0c $r17:0x00000000 $r18:0xdeadbeef $r19:0xdeadbeef
348 $r20:0xdeadbeef $r21:0xdeadbeef $r22:0xdeadbeef $r23:0xdeadbeef
349 $r24:0xdeadbeef $r25:0x00000001 $r26:0x2ff22b04 $r27:0x00000001
350 $r28:0x20015008 $r29:0x20003e30 $r30:0x2008c668 $r31:0x2ff22698
351 $iar:0x10020fd8 $msr:0x0002d0b2 $cr:0x24222224 $link:0x10020fb8
352 $ctr:0x00000004 $xer:0x0000000f $mq:0xdeadbeef
353 Condition status = 0:e 1:g 2:e 3:e 4:e 5:e 6:e 7:g
354 [unset $noflregs to view floating point registers]
355in __dblocal_new_serverstats_stub at 0x10020fd8
3560x10020fd8 (__dblocal_new_serverstats_stub+0x13c)
357807f00c8 lwz r3,0xc8(r31)
358(dbx) stepi
359stopped in __dblocal_new_serverstats_stub at 0x10020fdc
3600x10020fdc (__dblocal_new_serverstats_stub+0x140)
361809f00cc lwz r4,0xcc(r31)
362(dbx) stepi
363stopped in __dblocal_new_serverstats_stub at 0x10020fe0
3640x10020fe0 (__dblocal_new_serverstats_stub+0x144) 7d234b78 mr r3,r9
365(dbx) registers
366 $r0:0x2ff22788 $stkp:0x2ff22788 $toc:0x2001508c $r3:0x2008b658
367 $r4:0x2008b0d4 $r5:0x2008b576 $r6:0x00000000 $r7:0x007a6b00
368 $r8:0x7a6b0000 $r9:0x00008080 $r10:0x7f7f7f7f $r11:0x00000004
369 $r12:0x00008080 $r13:0xdeadbeef $r14:0x00000001 $r15:0x2ff22b04
370 $r16:0x2ff22b0c $r17:0x00000000 $r18:0xdeadbeef $r19:0xdeadbeef
371 $r20:0xdeadbeef $r21:0xdeadbeef $r22:0xdeadbeef $r23:0xdeadbeef
372 $r24:0xdeadbeef $r25:0x00000001 $r26:0x2ff22b04 $r27:0x00000001
373 $r28:0x20015008 $r29:0x20003e30 $r30:0x2008c668 $r31:0x2ff22698
374 $iar:0x10020fe0 $msr:0x0002d0b2 $cr:0x24222224 $link:0x10020fb8
375 $ctr:0x00000004 $xer:0x0000000f $mq:0xdeadbeef
376 Condition status = 0:e 1:g 2:e 3:e 4:e 5:e 6:e 7:g
377 [unset $noflregs to view floating point registers]
378in __dblocal_new_serverstats_stub at 0x10020fe0
3790x10020fe0 (__dblocal_new_serverstats_stub+0x144) 7d234b78 mr r3,r9
380(dbx) stepi
381stopped in __dblocal_new_serverstats_stub at 0x10020fe4
3820x10020fe4 (__dblocal_new_serverstats_stub+0x148)
38380010008 lwz r0,0x8(r1)
384(dbx) registers
385 $r0:0x2ff22788 $stkp:0x2ff22788 $toc:0x2001508c $r3:0x00008080
386 $r4:0x2008b0d4 $r5:0x2008b576 $r6:0x00000000 $r7:0x007a6b00
387 $r8:0x7a6b0000 $r9:0x00008080 $r10:0x7f7f7f7f $r11:0x00000004
388 $r12:0x00008080 $r13:0xdeadbeef $r14:0x00000001 $r15:0x2ff22b04
389 $r16:0x2ff22b0c $r17:0x00000000 $r18:0xdeadbeef $r19:0xdeadbeef
390 $r20:0xdeadbeef $r21:0xdeadbeef $r22:0xdeadbeef $r23:0xdeadbeef
391 $r24:0xdeadbeef $r25:0x00000001 $r26:0x2ff22b04 $r27:0x00000001
392 $r28:0x20015008 $r29:0x20003e30 $r30:0x2008c668 $r31:0x2ff22698
393 $iar:0x10020fe4 $msr:0x0002d0b2 $cr:0x24222224 $link:0x10020fb8
394 $ctr:0x00000004 $xer:0x0000000f $mq:0xdeadbeef
395 Condition status = 0:e 1:g 2:e 3:e 4:e 5:e 6:e 7:g
396 [unset $noflregs to view floating point registers]
397in __dblocal_new_serverstats_stub at 0x10020fe4
3980x10020fe4 (__dblocal_new_serverstats_stub+0x148)
39980010008 lwz r0,0x8(r1)
400(dbx) stepi
401stopped in __dblocal_new_serverstats_stub at 0x10020fe8
4020x10020fe8 (__dblocal_new_serverstats_stub+0x14c)
403c83f00d0 lfd fr1,0xd0(r31)
404(dbx) stepi
405stopped in __dblocal_new_serverstats_stub at 0x10020fec
4060x10020fec (__dblocal_new_serverstats_stub+0x150) 7c0803a6 mtlr r0
407(dbx) stepi
408stopped in __dblocal_new_serverstats_stub at 0x10020ff0
4090x10020ff0 (__dblocal_new_serverstats_stub+0x154)
4108381fff0 lwz r28,-16(r1)
411(dbx) stepi
412stopped in __dblocal_new_serverstats_stub at 0x10020ff4
4130x10020ff4 (__dblocal_new_serverstats_stub+0x158)
41483a1fff4 lwz r29,-12(r1)
415(dbx) stepi
416stopped in __dblocal_new_serverstats_stub at 0x10020ff8
4170x10020ff8 (__dblocal_new_serverstats_stub+0x15c)
41883e1fffc lwz r31,-4(r1)
419(dbx) stepi
420stopped in __dblocal_new_serverstats_stub at 0x10020ffc
4210x10020ffc (__dblocal_new_serverstats_stub+0x160) 4e800020 blr
422(dbx) stepi
423stopped in load_one_serverstats at 0x1001d2ac
4240x1001d2ac (load_one_serverstats+0x54) 80410014 lwz r2,0x14(r1)
425(dbx) registers
426 $r0:0x1001d2ac $stkp:0x2ff22788 $toc:0x2001508c $r3:0x00008080
427 $r4:0x2008b0d4 $r5:0x2008b576 $r6:0x00000000 $r7:0x007a6b00
428 $r8:0x7a6b0000 $r9:0x00008080 $r10:0x7f7f7f7f $r11:0x00000004
429 $r12:0x00008080 $r13:0xdeadbeef $r14:0x00000001 $r15:0x2ff22b04
430 $r16:0x2ff22b0c $r17:0x00000000 $r18:0xdeadbeef $r19:0xdeadbeef
431 $r20:0xdeadbeef $r21:0xdeadbeef $r22:0xdeadbeef $r23:0xdeadbeef
432 $r24:0xdeadbeef $r25:0x00000001 $r26:0x2ff22b04 $r27:0x00000001
433 $r28:0x2008c488 $r29:0x00000001 $r30:0x2008c668 $r31:0x00000000
434 $iar:0x1001d2ac $msr:0x0002d0b2 $cr:0x24222224 $link:0x1001d2ac
435 $ctr:0x00000004 $xer:0x0000000f $mq:0xdeadbeef
436 Condition status = 0:e 1:g 2:e 3:e 4:e 5:e 6:e 7:g
437 [unset $noflregs to view floating point registers]
438in load_one_serverstats at 0x1001d2ac
4390x1001d2ac (load_one_serverstats+0x54) 80410014 lwz r2,0x14(r1)
440(dbx) stepi
441stopped in load_one_serverstats at 0x1001d2b0
4420x1001d2b0 (load_one_serverstats+0x58) 7c7f1b78 mr r31,r3
443(dbx) stepi
444stopped in load_one_serverstats at 0x1001d2b4
4450x1001d2b4 (load_one_serverstats+0x5c) 80610038 lwz r3,0x38(r1)
446(dbx) registers
447 $r0:0x1001d2ac $stkp:0x2ff22788 $toc:0x2001508c $r3:0x00008080
448 $r4:0x2008b0d4 $r5:0x2008b576 $r6:0x00000000 $r7:0x007a6b00
449 $r8:0x7a6b0000 $r9:0x00008080 $r10:0x7f7f7f7f $r11:0x00000004
450 $r12:0x00008080 $r13:0xdeadbeef $r14:0x00000001 $r15:0x2ff22b04
451 $r16:0x2ff22b0c $r17:0x00000000 $r18:0xdeadbeef $r19:0xdeadbeef
452 $r20:0xdeadbeef $r21:0xdeadbeef $r22:0xdeadbeef $r23:0xdeadbeef
453 $r24:0xdeadbeef $r25:0x00000001 $r26:0x2ff22b04 $r27:0x00000001
454 $r28:0x2008c488 $r29:0x00000001 $r30:0x2008c668 $r31:0x00008080
455 $iar:0x1001d2b4 $msr:0x0002d0b2 $cr:0x24222224 $link:0x1001d2ac
456 $ctr:0x00000004 $xer:0x0000000f $mq:0xdeadbeef
457 Condition status = 0:e 1:g 2:e 3:e 4:e 5:e 6:e 7:g
458 [unset $noflregs to view floating point registers]
459in load_one_serverstats at 0x1001d2b4
4600x1001d2b4 (load_one_serverstats+0x5c) 80610038 lwz r3,0x38(r1)
461(dbx) stepi
462stopped in load_one_serverstats at 0x1001d2b8
4630x1001d2b8 (load_one_serverstats+0x60) 4bfe7089 bl 0x10004340
464(free)
465(dbx)
466====
467
468I am wondering what the constant 64 means in:
469extsyms.c:
470
471static void *__dblocal_##func##_stub(void) { \
472 __dblocal_##func##_stub0(); \
473 __builtin_return(__builtin_apply((void *)__dblocal_##func, \
474 __builtin_apply_args(), 64)); \
475} \
476
477
478
479</PRE>
480
481<!--endarticle-->
482 <HR>
483 <P><UL>
484 <!--threads-->
485 <LI>Previous message: <A HREF="004452.html">[IRCServices] Services 5.0.32 released
486</A></li>
487 <LI>Next message: <A HREF="004457.html">[IRCServices] Segmentation Error at startup with database load
488</A></li>
489 <LI> <B>Messages sorted by:</B>
490 <a href="date.html#4456">[ date ]</a>
491 <a href="thread.html#4456">[ thread ]</a>
492 <a href="subject.html#4456">[ subject ]</a>
493 <a href="author.html#4456">[ author ]</a>
494 </LI>
495 </UL>
496
497</body></html>