From: SourceForge.net <no...@so...> - 2007-10-18 07:54:40
|
Bugs item #518934, was opened at 2002-02-17 21:15 Message generated for change (Settings changed) made by djmcgrath You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102241&aid=518934&group_id=2241 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Extra modules cause crash of bot. Initial Comment: Look this: Irc client side: (@Kbyte) Kbyte-BOT: Dns www.fasturl.it (Kbyte-BOT) www.fasturl.it is 12.105.169.157 (@Kbyte) Kbyte-BOT: hey (@Kbyte) Kbyte-BOT: llll Console side: [ 86] Kbyte is addressing me [ 87] DNS Lookup: www.fasturl.it [ 88] [ 88] DNS query by name: www.fasturl.it [ 89] <Kbyte/#kbyte> Kbyte-BOT: Dns www.fasturl.it </#kbyte> www.fasturl.it is 12.105.169.157 Segmentation fault The Bot doesn't respond anymore and the connection after some time il dropped by irc server. And this if I try to use any extra module (exchange, traceroute, ecc ecc) I look that are two [ 88], but less row number when the bot send the message on channel. I use the lastest CVS revision... updater today (17/02/02) ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-02-19 09:15 Message: Logged In: NO Another test I removed this if on process(): if (withDBMlock 'ignore', Fcntl::LOCK_SH, sub { But, at second question (before traslate for example) the bot die with segment fault... BD locked problem? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-02-19 08:45 Message: Logged In: NO I found where the problem is, but I'm not capable to fix it! Look that append: After some extras is execute, the database is o locked or have problem... The bot can't access to $rdb->[F_HASH] on this funcion (and in others) sub getDBMKeys { my ($dbname) = @_; my $rdb = $DBMS{$dbname}; &status(%{ $rdb->[F_HASH] }); return with_lock $rdb, LOCK_SH, sub { return keys %{ $rdb->[F_HASH] }; }; } getDBMKeys is called by process() for ignore scope. I've added &status(%{ $rdb->[F_HASH] }); for debug, and this is the log of actions: IRC: (@Kbyte) CiOtIaBoT: x to it hello (CiOtIaBoT) Kbyte: ciao (@Kbyte) CiOtIaBoT: hellp (@Kbyte) CiOtIaBoT: hellp QuiT CiOtIaBoT si collegato/a da irc (Connection reset by peer) STATUS OF BOT: [ 78] test1 [ 79] *!*@200.38.211.*80*cthulhu!hastur@*unspeakable.net15*!*@*nan*direct.ca15 [ 80] test2 [ 81] test2 [ 82] test2 [ 83] test3 [ 84] Kbyte is addressing me [ 85] <Kbyte/#kbyte> CiOtIaBoT: x to it hello [ 85] babel: en_it translation of 'hello' [ 86] </#kbyte> Kbyte: :( [ 86] test1 N.B. testx is debug scope for find where in process is the problem. Please! Fix DB code! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-02-19 08:41 Message: Logged In: NO I found where the problem is, but I'm not capable to fix it! Look that append: After some extras is execute, the database is o locked or have problem... The bot can't access to $rdb->[F_HASH] on this funcion (and in others) sub getDBMKeys { my ($dbname) = @_; my $rdb = $DBMS{$dbname}; &status(%{ $rdb->[F_HASH] }); return with_lock $rdb, LOCK_SH, sub { return keys %{ $rdb->[F_HASH] }; }; } getDBMKeys is called by process() for ignore scope. I've added &status(%{ $rdb->[F_HASH] }); for debug, and this is the log of actions: IRC: (@Kbyte) CiOtIaBoT: x to it hello (CiOtIaBoT) Kbyte: ciao (@Kbyte) CiOtIaBoT: hellp (@Kbyte) CiOtIaBoT: hellp QuiT CiOtIaBoT si collegato/a da irc (Connection reset by peer) STATUS OF BOT: [ 78] test1 [ 79] *!*@200.38.211.*80*cthulhu!hastur@*unspeakable.net15*!*@*nan*direct.ca15 [ 80] test2 [ 81] test2 [ 82] test2 [ 83] test3 [ 84] Kbyte is addressing me [ 85] <Kbyte/#kbyte> CiOtIaBoT: x to it hello [ 85] babel: en_it translation of 'hello' [ 86] </#kbyte> Kbyte: :( [ 86] test1 N.B. testx is debug scope for find where in process is the problem. Please! Fix DB code! ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-02-19 08:41 Message: Logged In: NO I found where the problem is, but I'm not capable to fix it! Look that append: After some extras is execute, the database is o locked or have problem... The bot can't access to $rdb->[F_HASH] on this funcion (and in others) sub getDBMKeys { my ($dbname) = @_; my $rdb = $DBMS{$dbname}; &status(%{ $rdb->[F_HASH] }); return with_lock $rdb, LOCK_SH, sub { return keys %{ $rdb->[F_HASH] }; }; } getDBMKeys is called by process() for ignore scope. I've added &status(%{ $rdb->[F_HASH] }); for debug, and this is the log of actions: IRC: (@Kbyte) CiOtIaBoT: x to it hello (CiOtIaBoT) Kbyte: ciao (@Kbyte) CiOtIaBoT: hellp (@Kbyte) CiOtIaBoT: hellp QuiT CiOtIaBoT si collegato/a da irc (Connection reset by peer) STATUS OF BOT: [ 78] test1 [ 79] *!*@200.38.211.*80*cthulhu!hastur@*unspeakable.net15*!*@*nan*direct.ca15 [ 80] test2 [ 81] test2 [ 82] test2 [ 83] test3 [ 84] Kbyte is addressing me [ 85] <Kbyte/#kbyte> CiOtIaBoT: x to it hello [ 85] babel: en_it translation of 'hello' [ 86] </#kbyte> Kbyte: :( [ 86] test1 N.B. testx is debug scope for find where in process is the problem. Please! Fix DB code! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102241&aid=518934&group_id=2241 |