Skip Menu |
 

This queue is for tickets about the Linux-Smaps CPAN distribution.

Report information
The Basics
Id: 63212
Status: resolved
Priority: 0/
Queue: Linux-Smaps

People
Owner: Nobody in particular
Requestors: aver [...] pvk.org.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.06
Fixed in: (no value)



Subject: Integer overflow in hexadecimal number
Download (untitled) / with headers
text/plain 1.1k
Tried to install module on Ubuntu Lucid 10.4 with perl 5.10.1. uname -a === Linux vps5 2.6.18-128.2.1.el5.028stab064.8 #1 SMP Fri Nov 6 12:26:59 MSK 2009 i686 GNU/Linux === Tests are failed with message: === PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/Linux-Smaps.t .. 1/35 Integer overflow in hexadecimal number at /home/abstract/.cpan/build/Linux-Smaps-0.06-KU43bZ/blib/lib/Linux/Smaps.pm line 83, <$f> line 369. # Looks like you planned 35 tests but ran 12. # Looks like your test exited with 9 just after 12. t/Linux-Smaps.t .. Dubious, test returned 9 (wstat 2304, 0x900) Failed 23/35 subtests === When i add 'use bignum qw/hex/;' it fails again with message: === PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/Linux-Smaps.t .. 34/35 # Failed test 'integer overflow' # at t/Linux-Smaps.t line 121. # Looks like you failed 1 test of 35. t/Linux-Smaps.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/35 subtests (less 4 skipped subtests: 30 okay) === but module seems to work.
Download (untitled) / with headers
text/plain 758b
Do you use selinux? What puzzles me is the exit code 9. That means the process has been killed by a SIGKILL. The test suite itself uses a SIGKILL to terminate a subprocess. But that comes much later. Also, here the main process is killed by SIGKILL. I know selinux does such things. In t/Linux-Smaps.t you find these lines of code: 33 SKIP: { 34 skip "Your kernel lacks /proc/PID/smaps support", 8 35 unless( -r '/proc/self/smaps' ); 36 37 $s=Linux::Smaps->new; 38 39 $old=Linux::Smaps->new; I suspect it gets killed in line 37 by selinux. If that is not the case please provide the output of "perl -V", the output of "cat /proc/self/smaps" and rerun the tests in verbose mode: make test TEST_VERBOSE=1
From: aver [...] pvk.org.ru
Download (untitled) / with headers
text/plain 2.4k
On Mon Nov 22 07:04:15 2010, OPI wrote: Show quoted text
> Do you use selinux? What puzzles me is the exit code 9. That means the > process has been killed by a SIGKILL. The test suite itself uses a > SIGKILL to terminate a subprocess. But that comes much later. Also, here > the main process is killed by SIGKILL. I know selinux does such things.
Actually I don't know. It's vps with Ubuntu 10.4 in OpenVZ environment. But I'll ask vps-provider. Show quoted text
> In t/Linux-Smaps.t you find these lines of code: > > 33 SKIP: { > 34 skip "Your kernel lacks /proc/PID/smaps support", 8 > 35 unless( -r '/proc/self/smaps' ); > 36 > 37 $s=Linux::Smaps->new; > 38 > 39 $old=Linux::Smaps->new; > > I suspect it gets killed in line 37 by selinux.
You are right. I checked it with some debug print and yes - it gets killed in line 37. Show quoted text
> If that is not the case please provide the output of "perl -V", the > output of "cat /proc/self/smaps" and rerun the tests in verbose mode:
And as I said before with 'use bignum qw/hex/;' it seems that module works correctly. Output of 'perl -V' and 'cat /proc/self/smaps' attached. Show quoted text
> make test TEST_VERBOSE=1
=== vps5:/tmp/Linux-Smaps-0.06$ make test TEST_VERBOSE=1 PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/Linux-Smaps.t .. 1..35 ok 1 - use Linux::Smaps; ok 2 - VMA method "size" unknown before first smaps file read ok 3 - Smaps method "shared_dirty" unknown before first smaps file read ok 4 - VMA method "size" known after first smaps file read ok 5 - Smaps method "shared_dirty" known after first smaps file read ok 6 - summary size ok 7 - summary rss ok 8 - summary shared_clean ok 9 - summary shared_dirty ok 10 - summary private_clean ok 11 - summary private_dirty ok 12 - summary referenced Integer overflow in hexadecimal number at /tmp/Linux-Smaps- 0.06/blib/lib/Linux/Smaps.pm line 83, <$f> line 369. # Looks like you planned 35 tests but ran 12. # Looks like your test exited with 9 just after 12. Dubious, test returned 9 (wstat 2304, 0x900) Failed 23/35 subtests Test Summary Report ------------------- t/Linux-Smaps.t (Wstat: 2304 Tests: 12 Failed: 0) Non-zero exit status: 9 Parse errors: Bad plan. You planned 35 tests but ran 12. Files=1, Tests=12, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.06 cusr 0.00 csys = 0.09 CPU) Result: FAIL Failed 1/1 test programs. 0/12 subtests failed. make: *** [test_dynamic] Error 9 ===
Subject: vps5-proc-slef-smaps.txt
08048000-08054000 r-xp 00000000 09:02 76049012 /bin/cat Size: 48 kB Rss: 24 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 24 kB Private_Dirty: 0 kB Swap: 0 kB 08054000-08055000 r--p 0000b000 09:02 76049012 /bin/cat Size: 4 kB Rss: 4 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 4 kB Swap: 0 kB 08055000-08056000 rw-p 0000c000 09:02 76049012 /bin/cat Size: 4 kB Rss: 4 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 4 kB Swap: 0 kB 08eba000-08edb000 rw-p 08eba000 00:00 0 [heap] Size: 132 kB Rss: 32 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 32 kB Swap: 0 kB b7c40000-b7c7f000 r--p 00000000 09:02 86893262 /usr/lib/locale/ru_RU.utf8/LC_CTYPE Size: 252 kB Rss: 16 kB Shared_Clean: 16 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7c7f000-b7c80000 r--p 00000000 09:02 86893263 /usr/lib/locale/ru_RU.utf8/LC_NUMERIC Size: 4 kB Rss: 4 kB Shared_Clean: 4 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7c80000-b7c81000 r--p 00000000 09:02 86893264 /usr/lib/locale/ru_RU.utf8/LC_TIME Size: 4 kB Rss: 4 kB Shared_Clean: 4 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7c81000-b7d9f000 r--p 00000000 09:02 86893265 /usr/lib/locale/ru_RU.utf8/LC_COLLATE Size: 1144 kB Rss: 12 kB Shared_Clean: 12 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7d9f000-b7da0000 r--p 00000000 09:02 86893266 /usr/lib/locale/ru_RU.utf8/LC_MONETARY Size: 4 kB Rss: 4 kB Shared_Clean: 4 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7da0000-b7da1000 r--p 00000000 09:02 86893268 /usr/lib/locale/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES Size: 4 kB Rss: 4 kB Shared_Clean: 4 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7da1000-b7da8000 r--s 00000000 09:02 86664602 /usr/lib/gconv/gconv-modules.cache Size: 28 kB Rss: 12 kB Shared_Clean: 12 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7da8000-b7da9000 rw-p b7da8000 00:00 0 Size: 4 kB Rss: 4 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 4 kB Swap: 0 kB b7da9000-b7eeb000 r-xp 00000000 09:02 70437465 /lib/libc-2.11.1.so Size: 1288 kB Rss: 324 kB Shared_Clean: 324 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7eeb000-b7eec000 ---p 00142000 09:02 70437465 /lib/libc-2.11.1.so Size: 4 kB Rss: 0 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7eec000-b7eee000 r--p 00142000 09:02 70437465 /lib/libc-2.11.1.so Size: 8 kB Rss: 8 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 8 kB Swap: 0 kB b7eee000-b7eef000 rw-p 00144000 09:02 70437465 /lib/libc-2.11.1.so Size: 4 kB Rss: 4 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 4 kB Swap: 0 kB b7eef000-b7ef2000 rw-p b7eef000 00:00 0 Size: 12 kB Rss: 8 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 8 kB Swap: 0 kB b7ef2000-b7ef3000 r--p 00000000 09:02 86893269 /usr/lib/locale/ru_RU.utf8/LC_PAPER Size: 4 kB Rss: 4 kB Shared_Clean: 4 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7ef3000-b7ef4000 r--p 00000000 09:02 86893270 /usr/lib/locale/ru_RU.utf8/LC_NAME Size: 4 kB Rss: 4 kB Shared_Clean: 4 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7ef4000-b7ef5000 r--p 00000000 09:02 86893271 /usr/lib/locale/ru_RU.utf8/LC_ADDRESS Size: 4 kB Rss: 4 kB Shared_Clean: 4 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7ef5000-b7ef6000 r--p 00000000 09:02 86893272 /usr/lib/locale/ru_RU.utf8/LC_TELEPHONE Size: 4 kB Rss: 4 kB Shared_Clean: 4 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7ef6000-b7ef7000 r--p 00000000 09:02 86893273 /usr/lib/locale/ru_RU.utf8/LC_MEASUREMENT Size: 4 kB Rss: 4 kB Shared_Clean: 4 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7ef7000-b7ef8000 r--p 00000000 09:02 86893274 /usr/lib/locale/ru_RU.utf8/LC_IDENTIFICATION Size: 4 kB Rss: 4 kB Shared_Clean: 4 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7ef8000-b7efa000 rw-p b7ef8000 00:00 0 Size: 8 kB Rss: 8 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 8 kB Swap: 0 kB b7efa000-b7f15000 r-xp 00000000 09:02 70437516 /lib/ld-2.11.1.so Size: 108 kB Rss: 92 kB Shared_Clean: 92 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Swap: 0 kB b7f15000-b7f16000 r--p 0001a000 09:02 70437516 /lib/ld-2.11.1.so Size: 4 kB Rss: 4 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 4 kB Swap: 0 kB b7f16000-b7f17000 rw-p 0001b000 09:02 70437516 /lib/ld-2.11.1.so Size: 4 kB Rss: 4 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 4 kB Swap: 0 kB bfcd4000-bfce9000 rw-p 7ffffffea000 00:00 0 [stack] Size: 84 kB Rss: 12 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 12 kB Swap: 0 kB
Subject: vps5-perl-v.txt
Download vps5-perl-v.txt
text/plain 2.8k
Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Platform: osname=linux, osvers=2.6.24-27-server, archname=i486-linux-gnu-thread-multi uname='linux vernadsky 2.6.24-27-server #1 smp fri mar 12 01:45:06 utc 2010 i686 gnulinux ' config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.10 -Darchlib=/usr/lib/perl/5.10 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.10.1 -Dsitearch=/usr/local/lib/perl/5.10.1 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -DDEBUGGING=-g -Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.10.1 -Dd_dosuid -des' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -g', cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.4.3', 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, prototype=define Linker and Libraries: ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /usr/lib64 libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt perllibs=-ldl -lm -lpthread -lc -lcrypt libc=/lib/libc-2.11.1.so, so=so, useshrplib=true, libperl=libperl.so.5.10.1 gnulibc_version='2.11.1' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Apr 23 2010 07:36:53 @INC: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .
From: aver [...] pvk.org.ru
Download (untitled) / with headers
text/plain 590b
Show quoted text
> > Do you use selinux? What puzzles me is the exit code 9. That means the > > process has been killed by a SIGKILL. The test suite itself uses a > > SIGKILL to terminate a subprocess. But that comes much later. Also, here > > the main process is killed by SIGKILL. I know selinux does such things.
> > Actually I don't know. It's vps with Ubuntu 10.4 in OpenVZ > environment. But I'll ask > vps-provider.
I asked the service provider. And no, selinux is not used. The point is something else. BTW. I have another openvz vps with the same provider but it's x86_64, and there all right.
fixed long ago


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.