[IRCServices] Ircservices crash on db update after adding AOP or
SOP to chanserv
Andrew Church
achurch at achurch.org
Tue Oct 30 00:06:15 PDT 2007
With the way these bug reports keep coming in right after I make a new
release, I think I must have done something to upset the Fates...
In any case, this report has helped me track down the source of the bug,
and I'll be making a release shortly. Thanks for the report!
--Andrew Church
achurch at achurch.org
http://achurch.org/
>Hi guys,
> I'm very new to this so sorry if im missing something obvious. I'=
>m currently running hybrid 7.2.3 with ircservices 5.1.4 on a test server. A=
>ll seams fine the nickserv is behaving properly and seams stable, I then re=
>gistered a channel and all that worked fine. I then added an AOP to that ch=
>annel and while everything seamed fine soon after the ircservices crashed.=
>=20
>=20
>When I brought the services back up it seams the AOP wasn't saved (pointing=
> me to it being a problem with the database's updating). I then added user =
>as an SOP this time and again it crashed. The ircservices.log showed nothin=
>g wrong. So I deleted the entire Ircservices install and recompiled (with t=
>he core dump options) and configured again.
>=20
>Tried it once again and again had the same problem, so I did the gdb backtr=
>ace (included below). If anyone could help point out where im going wrong I=
> would greatly appreciate it as I am out of idea's.
>=20
>Thanks for reading
>Aaron
>=20
>GNU gdb 6.4.90-debianCopyright (C) 2006 Free Software Foundation, Inc.GDB i=
>s free software, covered by the GNU General Public License, and you arewelc=
>ome to change it and/or distribute copies of it under certain conditions.Ty=
>pe "show copying" to see the conditions.There is absolutely no warranty for=
> GDB. Type "show warranty" for details.This GDB was configured as "i486-li=
>nux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
>warning: Can't read pathname for load map: Input/output error.Reading symbo=
>ls from /lib/libm.so.6...done.Loaded symbols for /lib/libm.so.6Reading symb=
>ols from /lib/libcrypt.so.1...done.Loaded symbols for /lib/libcrypt.so.1Rea=
>ding symbols from /lib/libdl.so.2...done.Loaded symbols for /lib/libdl.so.2=
>Reading symbols from /lib/libc.so.6...done.Loaded symbols for /lib/libc.so.=
>6Reading symbols from /lib/ld-linux.so.2...done.Loaded symbols for /lib/ld-=
>linux.so.2Reading symbols from /home/aaron/irc_d/services/lib/ircservices/m=
>odules/protocol/hybrid.so...done.Loaded symbols for /home/aaron/irc_d/servi=
>ces/lib/ircservices/modules/protocol/hybrid.soReading symbols from /home/aa=
>ron/irc_d/services/lib/ircservices/modules/encryption/md5.so...done.Loaded =
>symbols for /home/aaron/irc_d/services/lib/ircservices/modules/encryption/m=
>d5.soReading symbols from /home/aaron/irc_d/services/lib/ircservices/module=
>s/encryption/unix-crypt.so...done.Loaded symbols for /home/aaron/irc_d/serv=
>ices/lib/ircservices/modules/encryption/unix-crypt.soReading symbols from /=
>home/aaron/irc_d/services/lib/ircservices/modules/database/standard.so...do=
>ne.Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/modules/da=
>tabase/standard.soReading symbols from /home/aaron/irc_d/services/lib/ircse=
>rvices/modules/mail/main.so...done.Loaded symbols for /home/aaron/irc_d/ser=
>vices/lib/ircservices/modules/mail/main.soReading symbols from /home/aaron/=
>irc_d/services/lib/ircservices/modules/mail/smtp.so...done.Loaded symbols f=
>or /home/aaron/irc_d/services/lib/ircservices/modules/mail/smtp.soReading s=
>ymbols from /home/aaron/irc_d/services/lib/ircservices/modules/operserv/mai=
>n.so...done.Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/m=
>odules/operserv/main.soReading symbols from /home/aaron/irc_d/services/lib/=
>ircservices/modules/operserv/akill.so...done.Loaded symbols for /home/aaron=
>/irc_d/services/lib/ircservices/modules/operserv/akill.soReading symbols fr=
>om /home/aaron/irc_d/services/lib/ircservices/modules/operserv/news.so...do=
>ne.Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/modules/op=
>erserv/news.soReading symbols from /home/aaron/irc_d/services/lib/ircservic=
>es/modules/operserv/sessions.so...done.Loaded symbols for /home/aaron/irc_d=
>/services/lib/ircservices/modules/operserv/sessions.soReading symbols from =
>/home/aaron/irc_d/services/lib/ircservices/modules/operserv/sline.so...done=
>.Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/modules/oper=
>serv/sline.soReading symbols from /home/aaron/irc_d/services/lib/ircservice=
>s/modules/nickserv/main.so...done.Loaded symbols for /home/aaron/irc_d/serv=
>ices/lib/ircservices/modules/nickserv/main.soReading symbols from /home/aar=
>on/irc_d/services/lib/ircservices/modules/nickserv/access.so...done.Loaded =
>symbols for /home/aaron/irc_d/services/lib/ircservices/modules/nickserv/acc=
>ess.soReading symbols from /home/aaron/irc_d/services/lib/ircservices/modul=
>es/nickserv/link.so...done.Loaded symbols for /home/aaron/irc_d/services/li=
>b/ircservices/modules/nickserv/link.soReading symbols from /home/aaron/irc_=
>d/services/lib/ircservices/modules/nickserv/mail-auth.so...done.Loaded symb=
>ols for /home/aaron/irc_d/services/lib/ircservices/modules/nickserv/mail-au=
>th.soReading symbols from /home/aaron/irc_d/services/lib/ircservices/module=
>s/chanserv/main.so...done.Loaded symbols for /home/aaron/irc_d/services/lib=
>/ircservices/modules/chanserv/main.soReading symbols from /home/aaron/irc_d=
>/services/lib/ircservices/modules/chanserv/access-levels.so...done.Loaded s=
>ymbols for /home/aaron/irc_d/services/lib/ircservices/modules/chanserv/acce=
>ss-levels.soReading symbols from /home/aaron/irc_d/services/lib/ircservices=
>/modules/chanserv/access-xop.so...done.Loaded symbols for /home/aaron/irc_d=
>/services/lib/ircservices/modules/chanserv/access-xop.soReading symbols fro=
>m /home/aaron/irc_d/services/lib/ircservices/modules/memoserv/main.so...don=
>e.Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/modules/mem=
>oserv/main.soReading symbols from /home/aaron/irc_d/services/lib/ircservice=
>s/modules/memoserv/forward.so...done.Loaded symbols for /home/aaron/irc_d/s=
>ervices/lib/ircservices/modules/memoserv/forward.soReading symbols from /ho=
>me/aaron/irc_d/services/lib/ircservices/modules/memoserv/ignore.so...done.L=
>oaded symbols for /home/aaron/irc_d/services/lib/ircservices/modules/memose=
>rv/ignore.soReading symbols from /home/aaron/irc_d/services/lib/ircservices=
>/modules/statserv/main.so...done.Loaded symbols for /home/aaron/irc_d/servi=
>ces/lib/ircservices/modules/statserv/main.soReading symbols from /home/aaro=
>n/irc_d/services/lib/ircservices/modules/misc/helpserv.so...done.Loaded sym=
>bols for /home/aaron/irc_d/services/lib/ircservices/modules/misc/helpserv.s=
>oReading symbols from /home/aaron/irc_d/services/lib/ircservices/modules/mi=
>sc/xml-export.so...done.Loaded symbols for /home/aaron/irc_d/services/lib/i=
>rcservices/modules/misc/xml-export.soReading symbols from /home/aaron/irc_d=
>/services/lib/ircservices/modules/misc/xml-import.so...done.Loaded symbols =
>for /home/aaron/irc_d/services/lib/ircservices/modules/misc/xml-import.soCo=
>re was generated by `./ircservices'.Program terminated with signal 11, Segm=
>entation fault.#0 0xb7e1afb5 in write_string (s=3D0xc <Address 0xc out of =
>bounds>, f=3D0x8257d58) at modules/database/fileutil.c:400400 len =
>=3D strlen(s);
>=20
>(gdb) bt#0 0xb7e1afb5 in write_string (s=3D0xc <Address 0xc out of bounds>=
>, f=3D0x8257d58) at modules/database/fileutil.c:400#1 0xb7e1a00b in write_=
>records (ti=3D0x8257d10, f=3D0x8257d58, recsize=3D10) at modules/database/s=
>tandard.c:723#2 0xb7e19953 in standard_save_table (table=3D0xb7ce71d0) at =
>modules/database/standard.c:561#3 0x080525da in save_all_dbtables () at da=
>tabases.c:174#4 0x080593e5 in save_data_now () at main.c:271#5 0x080595e8=
> in main (ac=3D1, av=3D0xbfab0224, envp=3D0xbfab022c) at main.c:322
>=20
>=20
>_________________________________________________________________
>Get free emoticon packs and customisation from Windows Live.=20
>http://www.pimpmylive.co.uk=
>
>--_e7143182-1e25-4ef3-8e29-119d0def1757_
>Content-Type: text/html; charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
><html>
><head>
><style>
>.hmmessage P
>{
>margin:0px;
>padding:0px
>}
>body.hmmessage
>{
>FONT-SIZE: 10pt;
>FONT-FAMILY:Tahoma
>}
></style>
></head>
><body class=3D'hmmessage'>Hi guys,<BR>
> I'm very new to this=
> so sorry if im missing something obvious. I'm currently running hybrid 7.2=
>.3 with ircservices 5.1.4 on a test server. All seams fine the nickser=
>v is behaving properly and seams stable, I then registered a channel and al=
>l that worked fine. I then added an AOP to that channel and while everythin=
>g seamed fine soon after the ircservices crashed. <BR>
> <BR>
>When I brought the services back up it seams the AOP wasn't saved (pointing=
> me to it being a problem with the database's updating). I then added user =
>as an SOP this time and again it crashed. The ircservices.log showed nothin=
>g wrong. So I deleted the entire Ircservices install and recompiled (with t=
>he core dump options) and configured again.<BR>
> <BR>
>Tried it once again and again had the same problem, so I did the gdb b=
>acktrace (included below). If anyone could help point out where im going wr=
>ong I would greatly appreciate it as I am out of idea's.<BR>
> <BR>
>Thanks for reading<BR>
>Aaron<BR>
> <BR>
>GNU gdb 6.4.90-debian<BR>Copyright (C) 2006 Free Software Foundation, Inc.<=
>BR>GDB is free software, covered by the GNU General Public License, and you=
> are<BR>welcome to change it and/or distribute copies of it under certain c=
>onditions.<BR>Type "show copying" to see the conditions.<BR>There is absolu=
>tely no warranty for GDB. Type "show warranty" for details.<BR>This G=
>DB was configured as "i486-linux-gnu"...Using host libthread_db library "/l=
>ib/libthread_db.so.1".<BR>
><BR>warning: Can't read pathname for load map: Input/output error.<BR>Readi=
>ng symbols from /lib/libm.so.6...done.<BR>Loaded symbols for /lib/libm.so.6=
><BR>Reading symbols from /lib/libcrypt.so.1...done.<BR>Loaded symbols for /=
>lib/libcrypt.so.1<BR>Reading symbols from /lib/libdl.so.2...done.<BR>Loaded=
> symbols for /lib/libdl.so.2<BR>Reading symbols from /lib/libc.so.6...done.=
><BR>Loaded symbols for /lib/libc.so.6<BR>Reading symbols from /lib/ld-linux=
>.so.2...done.<BR>Loaded symbols for /lib/ld-linux.so.2<BR>Reading symbols f=
>rom /home/aaron/irc_d/services/lib/ircservices/modules/protocol/hybrid.so..=
>.done.<BR>Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/mod=
>ules/protocol/hybrid.so<BR>Reading symbols from /home/aaron/irc_d/services/=
>lib/ircservices/modules/encryption/md5.so...done.<BR>Loaded symbols for /ho=
>me/aaron/irc_d/services/lib/ircservices/modules/encryption/md5.so<BR>Readin=
>g symbols from /home/aaron/irc_d/services/lib/ircservices/modules/encryptio=
>n/unix-crypt.so...done.<BR>Loaded symbols for /home/aaron/irc_d/services/li=
>b/ircservices/modules/encryption/unix-crypt.so<BR>Reading symbols from /hom=
>e/aaron/irc_d/services/lib/ircservices/modules/database/standard.so...done.=
><BR>Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/modules/d=
>atabase/standard.so<BR>Reading symbols from /home/aaron/irc_d/services/lib/=
>ircservices/modules/mail/main.so...done.<BR>Loaded symbols for /home/aaron/=
>irc_d/services/lib/ircservices/modules/mail/main.so<BR>Reading symbols from=
> /home/aaron/irc_d/services/lib/ircservices/modules/mail/smtp.so...done.<BR=
>>Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/modules/mail=
>/smtp.so<BR>Reading symbols from /home/aaron/irc_d/services/lib/ircservices=
>/modules/operserv/main.so...done.<BR>Loaded symbols for /home/aaron/irc_d/s=
>ervices/lib/ircservices/modules/operserv/main.so<BR>Reading symbols from /h=
>ome/aaron/irc_d/services/lib/ircservices/modules/operserv/akill.so...done.<=
>BR>Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/modules/op=
>erserv/akill.so<BR>Reading symbols from /home/aaron/irc_d/services/lib/ircs=
>ervices/modules/operserv/news.so...done.<BR>Loaded symbols for /home/aaron/=
>irc_d/services/lib/ircservices/modules/operserv/news.so<BR>Reading symbols =
>from /home/aaron/irc_d/services/lib/ircservices/modules/operserv/sessions.s=
>o...done.<BR>Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/=
>modules/operserv/sessions.so<BR>Reading symbols from /home/aaron/irc_d/serv=
>ices/lib/ircservices/modules/operserv/sline.so...done.<BR>Loaded symbols fo=
>r /home/aaron/irc_d/services/lib/ircservices/modules/operserv/sline.so<BR>R=
>eading symbols from /home/aaron/irc_d/services/lib/ircservices/modules/nick=
>serv/main.so...done.<BR>Loaded symbols for /home/aaron/irc_d/services/lib/i=
>rcservices/modules/nickserv/main.so<BR>Reading symbols from /home/aaron/irc=
>_d/services/lib/ircservices/modules/nickserv/access.so...done.<BR>Loaded sy=
>mbols for /home/aaron/irc_d/services/lib/ircservices/modules/nickserv/acces=
>s.so<BR>Reading symbols from /home/aaron/irc_d/services/lib/ircservices/mod=
>ules/nickserv/link.so...done.<BR>Loaded symbols for /home/aaron/irc_d/servi=
>ces/lib/ircservices/modules/nickserv/link.so<BR>Reading symbols from /home/=
>aaron/irc_d/services/lib/ircservices/modules/nickserv/mail-auth.so...done.<=
>BR>Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/modules/ni=
>ckserv/mail-auth.so<BR>Reading symbols from /home/aaron/irc_d/services/lib/=
>ircservices/modules/chanserv/main.so...done.<BR>Loaded symbols for /home/aa=
>ron/irc_d/services/lib/ircservices/modules/chanserv/main.so<BR>Reading symb=
>ols from /home/aaron/irc_d/services/lib/ircservices/modules/chanserv/access=
>-levels.so...done.<BR>Loaded symbols for /home/aaron/irc_d/services/lib/irc=
>services/modules/chanserv/access-levels.so<BR>Reading symbols from /home/aa=
>ron/irc_d/services/lib/ircservices/modules/chanserv/access-xop.so...done.<B=
>R>Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/modules/cha=
>nserv/access-xop.so<BR>Reading symbols from /home/aaron/irc_d/services/lib/=
>ircservices/modules/memoserv/main.so...done.<BR>Loaded symbols for /home/aa=
>ron/irc_d/services/lib/ircservices/modules/memoserv/main.so<BR>Reading symb=
>ols from /home/aaron/irc_d/services/lib/ircservices/modules/memoserv/forwar=
>d.so...done.<BR>Loaded symbols for /home/aaron/irc_d/services/lib/ircservic=
>es/modules/memoserv/forward.so<BR>Reading symbols from /home/aaron/irc_d/se=
>rvices/lib/ircservices/modules/memoserv/ignore.so...done.<BR>Loaded symbols=
> for /home/aaron/irc_d/services/lib/ircservices/modules/memoserv/ignore.so<=
>BR>Reading symbols from /home/aaron/irc_d/services/lib/ircservices/modules/=
>statserv/main.so...done.<BR>Loaded symbols for /home/aaron/irc_d/services/l=
>ib/ircservices/modules/statserv/main.so<BR>Reading symbols from /home/aaron=
>/irc_d/services/lib/ircservices/modules/misc/helpserv.so...done.<BR>Loaded =
>symbols for /home/aaron/irc_d/services/lib/ircservices/modules/misc/helpser=
>v.so<BR>Reading symbols from /home/aaron/irc_d/services/lib/ircservices/mod=
>ules/misc/xml-export.so...done.<BR>Loaded symbols for /home/aaron/irc_d/ser=
>vices/lib/ircservices/modules/misc/xml-export.so<BR>Reading symbols from /h=
>ome/aaron/irc_d/services/lib/ircservices/modules/misc/xml-import.so...done.=
><BR>Loaded symbols for /home/aaron/irc_d/services/lib/ircservices/modules/m=
>isc/xml-import.so<BR>Core was generated by `./ircservices'.<BR>Program term=
>inated with signal 11, Segmentation fault.<BR>#0 0xb7e1afb5 in write_=
>string (s=3D0xc <Address 0xc out of bounds>, f=3D0x8257d58) at module=
>s/database/fileutil.c:400<BR>400 &=
>nbsp; len =3D strlen(s);<BR>
> <BR>
>(gdb) bt<BR>#0 0xb7e1afb5 in write_string (s=3D0xc <Address 0xc ou=
>t of bounds>, f=3D0x8257d58) at modules/database/fileutil.c:400<BR>#1&nb=
>sp; 0xb7e1a00b in write_records (ti=3D0x8257d10, f=3D0x8257d58, recsize=3D1=
>0) at modules/database/standard.c:723<BR>#2 0xb7e19953 in standard_sa=
>ve_table (table=3D0xb7ce71d0) at modules/database/standard.c:561<BR>#3 =
>; 0x080525da in save_all_dbtables () at databases.c:174<BR>#4 0x08059=
>3e5 in save_data_now () at main.c:271<BR>#5 0x080595e8 in main (ac=3D=
>1, av=3D0xbfab0224, envp=3D0xbfab022c) at main.c:322<BR>
> <BR>
> <BR><br /><hr />Are you the Quizmaster? <a href=3D'http://specials.u=
>k.msn.com/brainbattle' target=3D'_new'>Play BrainBattle with a friend now! =
></a></body>
></html>=
>
>--_e7143182-1e25-4ef3-8e29-119d0def1757_--
>
>--===============1587714104==
>Content-Type: text/plain; charset="us-ascii"
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline
>
>------------------------------------------------------------------
>To unsubscribe or change your subscription options, visit:
>http://lists.ircservices.za.net/mailman/listinfo/ircservices
>--===============1587714104==--