[IRCServices Coding] xml-import
Vitaliy Ovsyannikov
V.Ovsyannikov at kr.ru
Mon Jan 16 21:22:21 PST 2006
Hello, IRC.
> You need to to add the -import parameter with the XML file name when
> starting Services.
I've got troubles! With database/standard:
All data is imported well, but services exited on segm. fault.
Here is backtrace from core file:
(gdb) bt
#0 0x281c061e in write_string (s=0xc <Address 0xc out of bounds>, f=0x82e2000) at modules/database/fileutil.c:398
#1 0x281bf951 in standard_save_table (table=0x282220bc) at modules/database/standard.c:734
#2 0x08050295 in save_all_dbtables () at databases.c:128
#3 0x080525f5 in init (ac=3, av=0xbfbfec00) at init.c:952
#4 0x08054d8d in main (ac=3, av=0xbfbfec00, envp=0xbfbfec10) at main.c:216
All .sdb files look good except whis one:
chan-access.sdb.new
I've deleted this file and run ircservices anyway and got segmentation
fault again. Backtrace:
#0 0x281f7cfd in new_nickgroupinfo (seed=0x10 <Address 0x10 out of bounds>) at modules/nickserv/util.c:102
102 modules/nickserv/util.c: No such file or directory.
in modules/nickserv/util.c
(gdb) bt
#0 0x281f7cfd in new_nickgroupinfo (seed=0x10 <Address 0x10 out of bounds>) at modules/nickserv/util.c:102
#1 0x281beeb8 in standard_load_table (table=0x281fca48) at modules/database/standard.c:411
#2 0x0805019c in register_dbtable (table=0x281fca48) at databases.c:78
#3 0x281f5d76 in init_module () at modules/nickserv/main.c:2725
#4 0x0805813b in load_module (modulename=0x808e120 "nickserv/main") at modules.c:424
#5 0x080525a9 in init (ac=2, av=0xbfbfec28) at init.c:937
#6 0x08054d8d in main (ac=2, av=0xbfbfec28, envp=0xbfbfec34) at main.c:216
With database/version4:
services just imported the data and exited with message in
ircservices.log: Terminating, reason unknown
Starting it up says: (database/version4) Invalid format in chan.db
And services continue to work with no registered channels at all.
Nicknames are okay.
Please give me some ideas why channels importing doesn't work.
Thanks.
--
Sincerely,
Vitaliy Ovsyannikov
JSC Skala, Krasnoyarsk, Russia