--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [IRCServices Coding] Services 5.0a22 Segfault on unlink
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <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">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="000310.html">
+ <LINK REL="Next" HREF="000312.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[IRCServices Coding] Services 5.0a22 Segfault on unlink</H1>
+ <B>Russell Garrett</B>
+ <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"
+ TITLE="[IRCServices Coding] Services 5.0a22 Segfault on unlink">rg at tcslon.com
+ </A><BR>
+ <I>Sat Feb 23 08:30:50 PST 2002</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000310.html">[IRCServices Coding] Services 5.0a22 Segfault on unlink
+</A></li>
+ <LI>Next message: <A HREF="000312.html">[IRCServices Coding] Services 5.0a22 Segfault on unlink
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#311">[ date ]</a>
+ <a href="thread.html#311">[ thread ]</a>
+ <a href="subject.html#311">[ subject ]</a>
+ <a href="author.html#311">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>><i> I guess it could be as simple as "unlink self" causing the crash.
+</I>><i> Hopefully, that will be sufficient information to begin
+</I>><i> tracking down the
+</I>><i> bug, I will try to get a fully reproducible case later.
+</I>
+[16:19:26] -> *nickserv* unlink Russ
+[16:19:26] -NickServ- Nick Russ has been unlinked from your nick.
+[16:20:57] -> *nickserv* status Russ
+[16:20:57] -NickServ- STATUS Russ 0
+
+Here it seems unlinking yourself appears to deregister the nick.
+
+BUT... I reregister my nick:
+
+[16:22:43] -NickServ- Authorization succeeded; your nickname
+registration is now complete.
+[16:23:02] -> *nickserv* unlink Russ
+[16:23:02] -NickServ- Nick Russ has been unlinked from your nick.
+*** Routing -- from apollo.final-conflict.net: Server
+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
+
+And bang! we have a segfault. The services log is quite cryptic in
+saying:
+
+[Feb 23 16:23:02 2002] nickserv/link:
+
+(that's it)
+
+And here's a backtrace:
+
+(gdb) bt
+#0 0x40063431 in tmpfile () from /lib/libc.so.6
+#1 0x40066724 in freopen64 () from /lib/libc.so.6
+#2 0x40061966 in _IO_vfscanf () from /lib/libc.so.6
+#3 0x8051430 in vlogprintf (fmt=0x4015d900 "0", args=0xbffff5f8) at
+log.c:34
+#4 0x8051727 in _module_log (modname=0x81220c0 "nickserv/link",
+fmt=0x4015d900 "0") at log.c:189
+#5 0x4015d3dd in do_unlink (u=0x812ece0) at link.c:101
+#6 0x804df7a in run_cmd (service=0x8120df0 "NickServ", u=0x812ece0,
+id=0x811d1c8, cmd=0xbffff72e "unlink") at commands.c:175
+#7 0x4014f377 in _init () from
+/home/ircservices/modules/nickserv/main.so
+#8 0x8053f1d in call_callback_5 (module=0x0, id=26, arg1=0xbffff95c,
+arg2=0xbffff724, arg3=0xbffff72e, arg4=0x0, arg5=0x0) at
+modules.c:623
+#9 0x80521c5 in m_privmsg (source=0xbffff95c "Russ", ac=2,
+av=0x812e838) at messages.c:170
+#10 0x805447c in process () at process.c:131
+#11 0x8051a31 in readline_callback (s=0x812bb70, param_unused=0x24)
+at main.c:158
+#12 0x80557bf in check_sockets () at sockets.c:375
+#13 0x8051c8d in main (ac=1, av=0xbffffb54, envp=0xbffffb5c) at
+main.c:255
+
+(this backtrace may be invalid, as I don't have gdb on my services
+machine, so I had to copy the files to another box with a slightly
+earlier version of services on - it looks ok though)
+
+
+Russ Garrett (<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">russ at garrett.co.uk</A>)
+
+
+</PRE>
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000310.html">[IRCServices Coding] Services 5.0a22 Segfault on unlink
+</A></li>
+ <LI>Next message: <A HREF="000312.html">[IRCServices Coding] Services 5.0a22 Segfault on unlink
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#311">[ date ]</a>
+ <a href="thread.html#311">[ thread ]</a>
+ <a href="subject.html#311">[ subject ]</a>
+ <a href="author.html#311">[ author ]</a>
+ </LI>
+ </UL>
+
+</body></html>