1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] Re: [IRCServices] IRC Services
5.0a24 segfault on startup
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Re%3A%20%5BIRCServices%5D%20IRC%20Services%205.0a24%20segfault%20on%20startup&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=
"000389.html">
11 <LINK REL=
"Next" HREF=
"000391.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] Re: [IRCServices] IRC Services
5.0a24 segfault on startup
</H1>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Re%3A%20%5BIRCServices%5D%20IRC%20Services%205.0a24%20segfault%20on%20startup&In-Reply-To="
17 TITLE=
"[IRCServices Coding] Re: [IRCServices] IRC Services 5.0a24 segfault on startup">achurch at achurch.org
19 <I>Wed Mar
13 14:
39:
49 PST
2002</I>
21 <LI>Previous message:
<A HREF=
"000389.html">[IRCServices Coding] Re: [IRCServices] IRC Services
5.0a24 segfault on startup
23 <LI>Next message:
<A HREF=
"000391.html">[IRCServices Coding] Services
5.0a24 /ns unlink nick force text error
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#390">[ date ]
</a>
27 <a href=
"thread.html#390">[ thread ]
</a>
28 <a href=
"subject.html#390">[ subject ]
</a>
29 <a href=
"author.html#390">[ author ]
</a>
34 <PRE>>>><i> If you can track this down it would be appreciated.
36 </I>>><i>The crash was much easier to find that I thought. The function
37 </I>>><i>add_nickgroupinfo raises the SEGFAULT
"on purpose
"
39 </I>><i> Yes, I know that because I added it. :P I was hoping for a backtrace
40 </I>><i>or some other hint of why the nickgroup was being added in the first place.
42 </I>><i> --Andrew Church
43 </I>><i> <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">achurch at achurch.org
</A>
44 </I>><i> <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
46 Okay, I think I've found it--try the following patch:
48 --- modules/database/version4.c
1 Mar
2002 01:
49:
24 -
0000 2.81
49 +++ modules/database/version4.c
13 Mar
2002 05:
25:
18 -
0000 2.82
51 ngi-
>language = LANG_DEFAULT;
52 ngi-
>timezone = TIMEZONE_DEFAULT;
53 ni-
>nickgroup = ngi-
>id;
54 - add_nickgroupinfo(ngi);
55 + if (ngi-
>id !=
0) {
56 + add_nickgroupinfo(ngi);
58 + free_nickgroupinfo(ngi);
59 + if (!(ni-
>status
& NS_VERBOTEN)) {
60 + module_log(
"warning: nick %s has no nick group but is not
"
61 +
" forbidden (corrupt database or BUG?)
", ni-
>nick);
69 <A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">achurch at achurch.org
</A>
70 <A HREF=
"http://achurch.org/">http://achurch.org/
</A>
78 <LI>Previous message:
<A HREF=
"000389.html">[IRCServices Coding] Re: [IRCServices] IRC Services
5.0a24 segfault on startup
80 <LI>Next message:
<A HREF=
"000391.html">[IRCServices Coding] Services
5.0a24 /ns unlink nick force text error
82 <LI> <B>Messages sorted by:
</B>
83 <a href=
"date.html#390">[ date ]
</a>
84 <a href=
"thread.html#390">[ thread ]
</a>
85 <a href=
"subject.html#390">[ subject ]
</a>
86 <a href=
"author.html#390">[ author ]
</a>