]> jfr.im git - irc.git/blob - software/RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2002/000311.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2002 / 000311.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] Services 5.0a22 Segfault on unlink
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Services%205.0a22%20Segfault%20on%20unlink&In-Reply-To=1275.193.237.130.98.1014480946.squirrel%40secure.uksolutions.co.uk">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="000310.html">
11 <LINK REL="Next" HREF="000312.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices Coding] Services 5.0a22 Segfault on unlink</H1>
15 <B>Russell Garrett</B>
16 <A HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Services%205.0a22%20Segfault%20on%20unlink&In-Reply-To=1275.193.237.130.98.1014480946.squirrel%40secure.uksolutions.co.uk"
17 TITLE="[IRCServices Coding] Services 5.0a22 Segfault on unlink">rg at tcslon.com
18 </A><BR>
19 <I>Sat Feb 23 08:30:50 PST 2002</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000310.html">[IRCServices Coding] Services 5.0a22 Segfault on unlink
22 </A></li>
23 <LI>Next message: <A HREF="000312.html">[IRCServices Coding] Services 5.0a22 Segfault on unlink
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#311">[ date ]</a>
27 <a href="thread.html#311">[ thread ]</a>
28 <a href="subject.html#311">[ subject ]</a>
29 <a href="author.html#311">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>&gt;<i> I guess it could be as simple as &quot;unlink self&quot; causing the crash.
35 </I>&gt;<i> Hopefully, that will be sufficient information to begin
36 </I>&gt;<i> tracking down the
37 </I>&gt;<i> bug, I will try to get a fully reproducible case later.
38 </I>
39 [16:19:26] -&gt; *nickserv* unlink Russ
40 [16:19:26] -NickServ- Nick Russ has been unlinked from your nick.
41 [16:20:57] -&gt; *nickserv* status Russ
42 [16:20:57] -NickServ- STATUS Russ 0
43
44 Here it seems unlinking yourself appears to deregister the nick.
45
46 BUT... I reregister my nick:
47
48 [16:22:43] -NickServ- Authorization succeeded; your nickname
49 registration is now complete.
50 [16:23:02] -&gt; *nickserv* unlink Russ
51 [16:23:02] -NickServ- Nick Russ has been unlinked from your nick.
52 *** Routing -- from apollo.final-conflict.net: Server
53 services.final-conflict.net[<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">unknown at 0.0.0.0</A>] closed the connection
54
55 And bang! we have a segfault. The services log is quite cryptic in
56 saying:
57
58 [Feb 23 16:23:02 2002] nickserv/link:
59
60 (that's it)
61
62 And here's a backtrace:
63
64 (gdb) bt
65 #0 0x40063431 in tmpfile () from /lib/libc.so.6
66 #1 0x40066724 in freopen64 () from /lib/libc.so.6
67 #2 0x40061966 in _IO_vfscanf () from /lib/libc.so.6
68 #3 0x8051430 in vlogprintf (fmt=0x4015d900 &quot;0&quot;, args=0xbffff5f8) at
69 log.c:34
70 #4 0x8051727 in _module_log (modname=0x81220c0 &quot;nickserv/link&quot;,
71 fmt=0x4015d900 &quot;0&quot;) at log.c:189
72 #5 0x4015d3dd in do_unlink (u=0x812ece0) at link.c:101
73 #6 0x804df7a in run_cmd (service=0x8120df0 &quot;NickServ&quot;, u=0x812ece0,
74 id=0x811d1c8, cmd=0xbffff72e &quot;unlink&quot;) at commands.c:175
75 #7 0x4014f377 in _init () from
76 /home/ircservices/modules/nickserv/main.so
77 #8 0x8053f1d in call_callback_5 (module=0x0, id=26, arg1=0xbffff95c,
78 arg2=0xbffff724, arg3=0xbffff72e, arg4=0x0, arg5=0x0) at
79 modules.c:623
80 #9 0x80521c5 in m_privmsg (source=0xbffff95c &quot;Russ&quot;, ac=2,
81 av=0x812e838) at messages.c:170
82 #10 0x805447c in process () at process.c:131
83 #11 0x8051a31 in readline_callback (s=0x812bb70, param_unused=0x24)
84 at main.c:158
85 #12 0x80557bf in check_sockets () at sockets.c:375
86 #13 0x8051c8d in main (ac=1, av=0xbffffb54, envp=0xbffffb5c) at
87 main.c:255
88
89 (this backtrace may be invalid, as I don't have gdb on my services
90 machine, so I had to copy the files to another box with a slightly
91 earlier version of services on - it looks ok though)
92
93
94 Russ Garrett (<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">russ at garrett.co.uk</A>)
95
96
97 </PRE>
98
99 <!--endarticle-->
100 <HR>
101 <P><UL>
102 <!--threads-->
103 <LI>Previous message: <A HREF="000310.html">[IRCServices Coding] Services 5.0a22 Segfault on unlink
104 </A></li>
105 <LI>Next message: <A HREF="000312.html">[IRCServices Coding] Services 5.0a22 Segfault on unlink
106 </A></li>
107 <LI> <B>Messages sorted by:</B>
108 <a href="date.html#311">[ date ]</a>
109 <a href="thread.html#311">[ thread ]</a>
110 <a href="subject.html#311">[ subject ]</a>
111 <a href="author.html#311">[ author ]</a>
112 </LI>
113 </UL>
114
115 </body></html>