1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] Services
5.0a22 Segfault on unlink
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">
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
19 <I>Sat Feb
23 08:
30:
50 PST
2002</I>
21 <LI>Previous message:
<A HREF=
"000310.html">[IRCServices Coding] Services
5.0a22 Segfault on unlink
23 <LI>Next message:
<A HREF=
"000312.html">[IRCServices Coding] Services
5.0a22 Segfault on unlink
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>
34 <PRE>><i> I guess it could be as simple as
"unlink self
" causing the crash.
35 </I>><i> Hopefully, that will be sufficient information to begin
36 </I>><i> tracking down the
37 </I>><i> bug, I will try to get a fully reproducible case later.
39 [
16:
19:
26] -
> *nickserv* unlink Russ
40 [
16:
19:
26] -NickServ- Nick Russ has been unlinked from your nick.
41 [
16:
20:
57] -
> *nickserv* status Russ
42 [
16:
20:
57] -NickServ- STATUS Russ
0
44 Here it seems unlinking yourself appears to deregister the nick.
46 BUT... I reregister my nick:
48 [
16:
22:
43] -NickServ- Authorization succeeded; your nickname
49 registration is now complete.
50 [
16:
23:
02] -
> *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
55 And bang! we have a segfault. The services log is quite cryptic in
58 [Feb
23 16:
23:
02 2002] nickserv/link:
62 And here's a backtrace:
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 "0", args=
0xbffff5f8) at
70 #
4 0x8051727 in _module_log (modname=
0x81220c0 "nickserv/link
",
71 fmt=
0x4015d900 "0") at log.c:
189
72 #
5 0x4015d3dd in do_unlink (u=
0x812ece0) at link.c:
101
73 #
6 0x804df7a in run_cmd (service=
0x8120df0 "NickServ
", u=
0x812ece0,
74 id=
0x811d1c8, cmd=
0xbffff72e "unlink
") 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
80 #
9 0x80521c5 in m_privmsg (source=
0xbffff95c "Russ
", 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)
85 #
12 0x80557bf in check_sockets () at sockets.c:
375
86 #
13 0x8051c8d in main (ac=
1, av=
0xbffffb54, envp=
0xbffffb5c) at
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)
94 Russ Garrett (
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">russ at garrett.co.uk
</A>)
103 <LI>Previous message:
<A HREF=
"000310.html">[IRCServices Coding] Services
5.0a22 Segfault on unlink
105 <LI>Next message:
<A HREF=
"000312.html">[IRCServices Coding] Services
5.0a22 Segfault on unlink
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>