[IRCServices Coding] Odd problems with Services 5.0a33

Brendan Bowden brtb at unirc.net
Tue May 21 12:20:09 PDT 2002


Aha... caught one. Services crashed while updating the nick.db; file 
size after crash is 8192 bytes, nick.db.save is 43429.

----------------------------------------------------------------

last few lines from services.log:

[May 21 10:32:41 2002] nickserv/main: brtb_!brtb at 10.0.0.10 identified 
for nick brtb_
[May 21 10:33:10 2002] nickserv/main: Expiring nickname ^MrMike^
[May 21 10:33:10 2002] nickserv/main: Expiring nickname DanielKurland
[May 21 10:33:10 2002] nickserv/main: Expiring nickname LS1
[May 21 10:33:10 2002] nickserv/main: Expiring nickname Mark
[May 21 10:33:10 2002] nickserv/main: Expiring nickname Zell
[May 21 10:33:47 2002] database/version4: Opening database file nick.db 
for write: Backup file nick.db.save exists, aborting
[May 21 10:34:29 2002] httpd/main: Accepted connection from 
65.35.21.113:64812
[May 21 11:32:13 2002] chanserv/main: Channel #MCPA registered by 
andor!~andor at h02206f0389e7.ne.client2.attbi.com
[May 21 12:10:12 2002] nickserv/main: Pikachu!dustin at lion.escaped.net 
identified for nick Pikachu
[May 21 12:42:53 2002] nickserv/main: 
Shiloh!shiloh at 216-53-218-159.ppp.mpinet.net identified for nick Shiloh
[May 21 13:05:05 2002] nickserv/main: 
Android_37!kylejava at AC9389F8.ipt.aol.com identified for nick Android_37
[May 21 13:11:25 2002] nickserv/main: 
Shiloh!shiloh at 216-53-218-050.ppp.mpinet.net identified for nick Shiloh
[May 21 13:11:26 2002] nickserv/main: 
Shiloh!shiloh at 216-53-218-050.ppp.mpinet.net identified for nick Shiloh
[May 21 13:47:48 2002] nickserv/main: 
Jordan!~javalite at 45.102.73.24.cfl.rr.com identified for nick Jordan
[May 21 14:27:24 2002] nickserv/main: 
Meson!Meson at ny-lasalle1b-77.buf.adelphia.net identified for nick Meson

----------------------------------------------------------------


the gdb trace:
----------------------------------------------------------------

GNU gdb 5.0

[gpl stuff]

This GDB was configured as "i386-slackware-linux"...
Core was generated by `./ircservices'.
Program terminated with signal 11, Segmentation fault.

[lots of "Loading symbols" lines]

#0  0x40157dba in check_expire_nick (ni=0x8136510) at util.c:149
(gdb) bt
#0  0x40157dba in check_expire_nick (ni=0x8136510) at util.c:149
#1  0x4011cf7d in next_nickinfo () at version4.c:113
#2  0x4011e655 in default_tzdir.129 () at version4.c:646
#3  0x40152bb0 in do_save_data () at main.c:210
#4  0x805496c in call_callback_5 (module=0x0, id=2, arg1=0x0, arg2=0x0, 
arg3=0x0, arg4=0x0,
    arg5=0x0) at modules.c:632
#5  0x8052526 in main (ac=1, av=0xbffffc04, envp=0xbffffc0c) at main.c:222
#6  0x400359cb in key () from /lib/libc.so.6
(gdb) quit

----------------------------------------------------------------