странное поведение perl

Ответить
chocopie_dono
Сообщения: 1
Зарегистрирован: Вс фев 13, 2011 8:08 am

странное поведение perl

Сообщение chocopie_dono »

Недавно начались сыпаться странные ошибки на /var/mail/root при выполнению в кроне /usr/local/abills/libexec/billd -all.

Код: Выделить всё

Use of uninitialized value in addition (+) at /usr/local/abills/libexec/billd line 258.
Use of uninitialized value in addition (+) at /usr/local/abills/libexec/billd line 258.
Use of uninitialized value in addition (+) at /usr/local/abills/libexec/billd line 258.
Так, около 1500 строк.
Затем

Код: Выделить всё

Can't find user account
Can't find user account
Can't find user account
Can't find user account
Can't find user account
штук 250, при реальном количестве учетных записей пользователей около 100.
Если выполнять скрипт в интерпретаторе perl из командной строки, ошибки не группируются, т.е. получается что-то вроде следующего.

Код: Выделить всё

Use of uninitialized value in addition (+) at /usr/local/abills/libexec/billd line 258.
Use of uninitialized value in addition (+) at /usr/local/abills/libexec/billd line 258.
Use of uninitialized value in addition (+) at /usr/local/abills/libexec/billd line 258.
Can't find user account
Use of uninitialized value in addition (+) at /usr/local/abills/libexec/billd line 258.
Use of uninitialized value in addition (+) at /usr/local/abills/libexec/billd line 258.
Понятно, что первый тип ошибок исходит от perl. Странно что это возникло само по себе (хотя мы-то знаем что такого не бывает, поэтому и хотелось бы получить подсказку о том, в чем может быть причина). Второй тип - видимо от самого абилса в ходе выполнения.
Все бы ничего, да только вот при его выполнении часть пользователей отваливается, сессия завершается, что в принципе не должно происходить, т.к. у всех пользователей стоит галка "постоплата" и функции снятия денег вообще не настроены. Рядом стоит другой сервер, таких проблем не наблюдается. Другие скрипты выполняются нормально.

Список портов:
abills-0.51 Billing system for dialup, VPN and VoIP management
apache-2.2.17_1 Version 2.2.x of Apache web server with prefork MPM.
apr-devrandom-gdbm-db42-mysql55-1.4.2.1.3.10 Apache Portability Library
autoconf-2.68 Automatically configure source code on many Un*x platforms
autoconf-wrapper-20101119 Wrapper script for GNU autoconf
automake-1.11.1 GNU Standards-compliant Makefile generator (1.11)
automake-wrapper-20101119 Wrapper script for GNU automake
bind96-9.6.3.ESV.3 The BIND DNS suite with updated DNSSEC and threads
bsdpan-Data-Dumper-2.128 Data::Dumper - stringified perl data structures, suitable f
bsdpan-Digest-MD5-2.51 Digest::MD5 - Perl interface to the MD5 Algorithm
bsdpan-Time-HiRes-1.9721 Time::HiRes - High resolution alarm, sleep, gettimeofday, i
bsdpan-YAML-0.72 YAML - YAML Ain't Markup Language (tm)
bwm-ng-0.6 A small and simple bandwidth monitor
cmake-2.8.3_1 A cross-platform Makefile generator
cvsup-without-gui-16.1h_4 File distribution system optimized for CVS (non-GUI version
db42-4.2.52_5 The Berkeley DB package, revision 4.2
dlmalloc-2.8.4 Small, fast malloc library by Doug Lea
expat-2.0.1_1 XML 1.0 parser written in C
ezm3-1.2_1 Easier, more portable Modula-3 distribution for building CV
freeradius-1.1.8_2 A free RADIUS server implementation
gawk-3.1.8 The GNU version of Awk
gdbm-1.8.3_3 The GNU database manager
gettext-0.18.1.1 GNU gettext package
gmake-3.81_4 GNU version of 'make' utility
help2man-1.38.4 Automatically generating simple manual pages from program o
isc-dhcp41-server-4.1.2_1,1 The ISC Dynamic Host Configuration Protocol server
libiconv-1.13.1_1 A character set conversion library
libltdl-2.2.10 System independent dlopen wrapper
libnet10-1.0.2a_5,1 A C library for creating IP packets
libpdel-0.5.3_4 Packet Design multi-purpose C library for embedded applicat
libstatgrab-0.17 Provides a useful interface to system statistics
libtool-2.2.10 Generic shared library support script
libxml2-2.7.8_1 XML parser library for GNOME
logrotate-3.7.9 Daemon to rotate, compress, remove and mail system log file
m4-1.4.15,1 GNU m4
mbmon-205_5 A tty motherboard monitor for LM78/79, W8378x, AS99127F, VT
mpd-5.5 Multi-link PPP daemon based on netgraph(4)
mysql-client-5.5.8_2 Multithreaded SQL database (client)
mysql-server-5.5.8_3 Multithreaded SQL database (server)
p5-Crypt-CBC-2.30 Perl5 interface to Cipher Block Chaining with DES and IDEA
p5-Crypt-DES-2.05 Perl5 interface to DES block cipher
p5-DBD-mysql55-4.017 MySQL 5.5 driver for the Perl5 Database Interface (DBI)
p5-DBI-1.615 The perl5 Database Interface. Required for DBD::* modules
p5-Digest-MD4-1.5 Perl5 interface to the MD4 message digest algorithm
p5-Digest-SHA1-2.13 Perl interface to the SHA-1 Algorithm
p5-Net-Telnet-3.03 Perl5 module to access and use telnet protocol
p5-Storable-2.25 Persistency for perl data structures
p5-gettext-1.05_3 Message handling functions
pcre-8.12 Perl Compatible Regular Expressions library
perl-5.10.1_3 Practical Extraction and Report Language
pkg-config-0.25_1 A utility to retrieve information about installed libraries
popt-1.16 A getopt(3) like library with a number of enhancements, fro
portupgrade-2.4.8_1,2 FreeBSD ports/packages administration and management tool s
python26-2.6.6 An interpreted object-oriented programming language
quagga-0.99.17_5 Free RIPv1, RIPv2, OSPFv2, BGP4, IS-IS route software
ruby-1.8.7.302,1 An object-oriented interpreted scripting language
ruby18-bdb-0.6.5_1 Ruby interface to Sleepycat's Berkeley DB revision 2 or lat
scdp-1.0.b_3 Tool that sends CDP (CISCO Discovery Protocol) Packets
screen-4.0.3_10 A multi-screen window manager
squid-3.0.25_3 HTTP Caching Proxy
squidview-0.73 Monitor squid statistics in realtime
wget-1.12_2 Retrieve files from the Net via HTTP(S) and FTP
wol-0.7.1_2 Tool to wake up Wake-On-LAN compliant computers


Окажите помощь, пожалуйста. Неприятная ситуация, ума не приложу в чем может крыться проблема. Файловая система с журналированием на GPT, думаю файлового сбоя быть не могло.

~AsmodeuS~
Site Admin
Сообщения: 5749
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Re: странное поведение perl

Сообщение ~AsmodeuS~ »

какая то переменная не инициализирована
обновите систему

Ответить