Closed Bug 283025 Opened 20 years ago Closed 20 years ago

Crash on channel join in Net::IRC::Event; message: Can't use string ("topic") as an ARRAY ref while "strict refs" in use

Categories

(Webtools Graveyard :: Mozbot, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allane, Assigned: ian)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041231
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041231

Downloaded latest version of mozbot.  At initial startup (after configuration
questions) and each startup after that, the program dies with an unhandled
exception just after it successfully joins the specified channel.



Reproducible: Always

Steps to Reproduce:
1. Start mozbot [./mozbot.pl]


Actual Results:  
The string "CYBAEA" below is the topic of the channel (or: the topic truncated
to a fixed number of characters for long topics).

$ ./mozbot.pl
[...]
2005-02-21 16:03:04 UTC (26516) initialisation took 37 seconds.
2005-02-21 16:03:04 UTC (26516) SpottedJoin: #cybaea <cybot>
Can't use string ("CYBAEA") as an ARRAY ref while "strict refs" in use at
        /usr/lib/perl5/site_perl/5.8.5/Net/IRC/Event.pm line 73 (#2)
    (F) Only hard references are allowed by "strict refs".  Symbolic
    references are disallowed.  See perlref.

Uncaught exception from user code:
        Can't use string ("CYBAEA") as an ARRAY ref while "strict refs" in use
at /usr/lib/perl5/site_perl/5.8.5/Net/IRC/Event.pm line 73.
 at /usr/lib/perl5/site_perl/5.8.5/Net/IRC/Event.pm line 73
        Net::IRC::Event::args('Net::IRC::Event=HASH(0x873c434)', 'CYBAEA')
called at ./mozbot.pl line 655
        main::on_topic('Net::IRC::Connection=HASH(0x86b2e8c)',
'Net::IRC::Event=HASH(0x873c434)') called at
/usr/lib/perl5/site_perl/5.8.5/Net/IRC/Connection.pm line 492
        Net::IRC::Connection::handler() called at
/usr/lib/perl5/site_perl/5.8.5/Net/IRC/Connection.pm line 1051
        Net::IRC::Connection::parse('Net::IRC::Connection=HASH(0x86b2e8c)',
'IO::Socket::INET=GLOB(0x87302a8)') called at
/usr/lib/perl5/site_perl/5.8.5/Net/IRC.pm line 178
        Net::IRC::do_one_loop('Net::IRC=HASH(0x86b22ec)') called at
/usr/lib/perl5/site_perl/5.8.5/Net/IRC.pm line 259
        Net::IRC::start('Net::IRC=HASH(0x86b22ec)') called at ./mozbot.pl line 2718
2005-02-21 16:03:04 UTC (26516) perl is shutting down...
2005-02-21 16:03:04 UTC (26516) Module General: garbage collected
2005-02-21 16:03:04 UTC (26516) Module Admin: garbage collected
2005-02-21 16:03:04 UTC (26516) Connection: garbage collected



Expected Results:  
Not crashed?

VERSION INFORMATION:


mozbot: Latest -rMozbot_Stable 
$ cvs status mozbot.pl
===================================================================
File: mozbot.pl         Status: Up-to-date

   Working revision:    2.14
   Repository revision: 2.14    /cvsroot/mozilla/webtools/mozbot/mozbot.pl,v


perl: This is perl, v5.8.5 built for i386-linux-thread-multi

Net::IRC: $VERSION = "0.75";
    CPAN_FILE: J/JM/JMUHLICH/Net-IRC-0.75.tar.gz
Net::IRC::Event: undef
    CPAN_FILE: J/JM/JMUHLICH/Net-IRC-0.75.tar.gz

OS: FC3
    $ uname -srvmpio
    Linux 2.6.10-1.760_FC3smp #1 SMP Wed Feb 2 00:29:03 EST 2005 i686 i686 i386
GNU/Linux
Try updating to CVS tip (cvs update -A -dP).
(In reply to comment #1)
> Try updating to CVS tip (cvs update -A -dP).

OK: Fixed in tip.  Thanks.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Glad i could help! I really need to release another mozbot version.
QA Contact: kerz → mozbot
Target Milestone: --- → 2.6
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.