develooper Front page | perl.perl5.porters | Postings from July 2001

[ID 20010723.012] unknown regstclass 222

Todd R. Eigenschink
July 23, 2001 19:16
[ID 20010723.012] unknown regstclass 222
Message ID:
This is a bug report for perl from,
generated with the help of perlbug 1.33 running under perl v5.7.2.


In a Sendmail::Milter script that works fine with 5.6.1, I get the
following error from 5.7.2:

ERROR: panic: unknown regstclass 222 at /usr/local/bin/spamfilter line 193.

This is the surrounding code.  I included from the top of the function
to provide context.  Line 193 is marked with ">>>".

sub connect_callback
    my $ctx = shift;
    my ($hostname, $sockaddr_in) = @_;

    if ($hostname eq 'localhost' or not defined($sockaddr_in))
        debug '', "Connect from localhost\n";
        $ctx->setpriv({trusted => 1, ipaddr => '(localhost)'});
        return SMFIS_ACCEPT;

    my ($remote_port, $iaddr) = sockaddr_in($sockaddr_in);
    my $remote_ip = inet_ntoa($iaddr);
    (my $netblock = $remote_ip) =~ s/\.\d+$//;
    my $remote_ip_rev;
        lock $Connect_Callback_Lock_1;
>>>     my @octets = $remote_ip =~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/;
        $remote_ip_rev = join('.', reverse(@octets));

    debug '', "Connect from $remote_ip:$remote_port ($hostname)\n";


[Please do not change anything below this line]
Site configuration information for perl v5.7.2:

Configured by eigenstr at Mon Jul 16 21:20:40 EST 2001.

Summary of my perl5 (revision 5.0 version 7 subversion 2) configuration:
    osname=linux, osvers=2.4.5, archname=i686-linux-thread-multi
    uname='linux sol 2.4.5 #1 smp sat may 26 09:57:51 est 2001 i686 unknown '
    config_args='-des -Dusethreads -Duseshrplib -Dusemymalloc -Dd_dosuid -Dusedevel'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    cc='cc', ccflags ='-D_REENTRANT -Wall -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    cppflags='-D_REENTRANT -Wall -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.3 20010315 (release)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, usemymalloc=y, prototype=define, bincompat5005=undef
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lposix -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lpthread -lc -lposix -lcrypt -lutil
    libc=/lib/, so=so, useshrplib=true,
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.7.2/i686-linux-thread-multi/CORE'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:

@INC for perl v5.7.2:

Environment for perl v5.7.2:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)
    SHELL=/bin/bash Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About