[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

[perl #59456] Perl 5.8.8 Build Failures for SunOS 4.1.3



# New Ticket Created by  "Peterson, Bob D (MN14)" 
# Please include the string:  [perl #59456]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=59456 >


We need a relatively new version of perl running on "SunOS cxh 4.1.3_U1
3 sun4m". We can't upgrade the OS because of frozen vendor software. I
tried Googling for a binary distribution with no success. If anyone
knows of a solid binary distribution for this OS, please let me know
where I can find it.

I'm not experienced with large scale builds like this, but I thought I
would try it anyways. The compiler used was "gcc".

The build itself went okay (quite a few "implicit function declaration"
warnings) but some of the tests are failing. To the inexperienced eye,
it looks like the most troublesome problem is the "lib/sort" test. I
expect that we'll be using sort extensively.

I'm not sure what's up with the "make" failures at the end ("_test_tty",
etc.). Is that a consequence of the test failures?

I wasn't able to use "perlbug" because the workstation is behind a
firewall and can't send and receive e-mail messages.

Thanks in advance for any help you can provide.


Bob Peterson
Principal Test Engineer
Honeywell Aerospace Plymouth
12001 State Highway 55
M/S MN14-2C22,C246
Plymouth, MN 55441
(763)954-2043
bob.peterson@honeywell.com




========================================================================
=====
pertinent output from the "make test" run.
========================================================================
=====
(lot's of 'ok's and some 'skipping')
...
ext/List/Util/t/shuffle...................FAILED--expected 6 tests, saw
3
...
ext/POSIX/t/sigaction.....................FAILED at test 6
...
ext/Socket/t/socketpair...................EOF on right took over 3
seconds at ../ext/Socket/t/socketpair.t line 119.
Something unexpectedly hung during testing at
../ext/Socket/t/socketpair.t line 39.
FAILED--expected 45 tests, saw 10
...
ext/Time/HiRes/t/HiRes....................Time::HiRes::clock():
unimplemented in this platform at ../ext/Time/HiRes/t/HiRes.tline 570.
FAILED--expected 33 tests, saw 32
...
lib/Memoize/t/speed.......................FAILED at test 2
...
lib/sort..................................FAILED--expected 119 tests,
saw 47
...
lib/Tie/File/t/09_gen_rs..................Out of memory during "large"
request for 33558528 bytes, total sbrk() is 85567896 btes at
../lib/Tie/File.pm line 895, <$fh> line 4195326.
FAILED--expected 59 tests, saw 50
...
t/pod/special_seqs........................ok
t/x2p/s2p.................................ok
Failed 7 test scripts out of 925, 99.24% okay.
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
###   ./perl harness
### in the 't' directory since most (>=80%) of the tests succeeded.
u=91.43  s=22.02  cu=6364.30  cs=818.68  scripts=925  tests=115554
*** Error code 1
make: Fatal error: Command failed for target `_test_tty'
Current working directory /home3/eng/perl_install/perl-5.8.8
*** Error code 1
make: Fatal error: Command failed for target `_test'
Current working directory /home3/eng/perl_install/perl-5.8.8
*** Error code 1
make: Fatal error: Command failed for target `test'



========================================================================
=====
Results of running the failing tests individually
========================================================================
=====
============================================
> ./perl ext/List/Util/t/shuffle.t
1..6
ok 1 - no args
ok 2 - 1 in 1 out
ok 3 - one arg
Segmentation fault

============================================
> ./perl ext/POSIX/t/sigaction.t
1..25
ok 1
ok 2
ok 3
ok 4
ok 5
not ok 6
ok 7
ok 8
...
ok 24
ok 25

I edited the test script to report the value of $oldaction->{FLAGS},
and it reported the value 2. This appears to correspond to SA_INTERRUPT,
which is described as "do not restart system on signal return".

============================================
> ./perl ext/Socket/t/socketpair.t
1..45
ok 1 - socketpair (LEFT, RIGHT, AF_UNIX, SOCK_STREAM, PF_UNSPEC)
ok 2 - syswrite to left
ok 3 - syswrite to left
ok 4 - syswrite to right
ok 5 - syswrite to right
ok 6 - read on left
ok 7 - content what we expected?
ok 8 - read on right
ok 9 - content what we expected?
ok 10 - shutdown left for writing
EOF on right took over 3 seconds at ext/Socket/t/socketpair.t line 119.
Something unexpectedly hung during testing at ext/Socket/t/socketpair.t
line 39.

============================================
> ./perl ext/Time/HiRes/t/HiRes.t
1..33
ok 1
# have_gettimeofday    = 1
# have_usleep          = 1
# have_nanosleep       = 0
# have_ualarm          = 1
# have_clock_gettime   = 0
# have_clock_getres    = 0
# have_clock_nanosleep = 0
# have_clock           = 1
# I am the main process 3790, starting the timer process...
# I am the timer process 3791, sleeping for 60 seconds...
# The timer process 3791 launched, continuing testing...
ok 2
ok 3
...
ok 12
# tick = 1, one = 1222710406, two = 1222710406, three = 1222710406
ok 13
# tick = 3, one = 1222710406, two = 1222710406, three = 1222710406
ok 14
# s = 93.4906132221222, n = 100, s/n = 0.934906132221222
# time...1222710406.94332
ok 15
# sleep...0.505896
ok 16
# Select returned! 5 2.998778
# 0.000407333333333315
ok 17 # Skip: your select() may get restarted by your SIGALRM (or just
retry test)
# setitimer: 0 0
ok 18
# getitimer: 0.5 0.4
# Tick! 2 0.497566
# Tick! 1 0.947633
# Tick! 0 1.447596
# Tick! 0 2.207608
# getitimer: 0 0
ok 19
ok 20 # 1.51133108139038 went by while sleeping 1.5, ratio 1.007438.
ok 21 # 1.51824283599854 went by while sleeping 1.5, ratio
1.01202733333333.
ok 22 # skipped
ok 23 # skipped
ok 24
ok 25
ok 26
ok 27
ok 28 # skipped
# N = 1024, t1 = 1222710415.73435, t0 = 1222710415.72829, dt =
0.0060579776763916
# N = 2048, t1 = 1222710415.74756, t0 = 1222710415.73561, dt =
0.0119450092315674
ok 29
# No clock_gettime
ok 30 # skipped
# No clock_getres
ok 31 # skipped
# No clock_nanosleep
ok 32 # skipped
Time::HiRes::clock(): unimplemented in this platform at
ext/Time/HiRes/t/HiRes.t line 570.
# I am the main process 3790, terminating the timer process 3791
# before it terminates me in 48 seconds (testing took 11 seconds).
# All done.

============================================
> ./perl lib/Memoize/t/speed.t
1..6
# fib(20) took 2 seconds.
# OK, N=24 ought to do it.
# OK, fib(24) was slow enough; it took 11 seconds.
# Total calls: 150049.
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6

Interesting. This time it didn't fail.

============================================
> ./perl lib/sort.t
1..119
ok 1 - order ok for size 0
ok 2 - contents ok for size 0
ok 3 - order ok for size 1
ok 4 - contents ok for size 1
ok 5 - order ok for size 2
ok 6 - contents ok for size 2
...
ok 27 - order ok for size 6463
ok 28 - contents ok for size 6463
ok 29 - sort::current for _qsort
ok 30 - order ok for size 0
ok 31 - contents ok for size 0
ok 32 - order ok for size 1
ok 33 - contents ok for size 1
...
ok 46 - order ok for size 139
ok 47 - contents ok for size 139
Segmentation fault

I tried to use the debugger to locate the point where it crashes. The
debugger seemed to lose its mind the second time 'main' was called, at
line 147. It couldn't list lines, breaks were ineffective, etc. This
second call is when the crash occurs, and appears to invoke the
"quicksort" algorithm.

Instead of using the debugger, I put in diagnostic messages and it
appears that the 'sort' at line 111 is where it crashes. It's this
statement:
	@sorted = sort { substr($a, 0, $RootWidth)
				    cmp
	                 substr($b, 0, $RootWidth) } @$unsorted;
It occurs when the array size is 300.

============================================
>./perl lib/Tie/File/t/09_gen_rs.t
1..59
ok 1
ok 2
...
ok 49
ok 50
(more than a 1 hour delay here)
Out of memory during "large" request for 33558528 bytes, total sbrk() is
85576088 bytes at /usr/local/lib/perl5/site_perl/5.8.8/Tie/File.pm line
895, <$fh> line 4195326.



========================================================================
=====
pertinent output from the "./perl harness" run in the 't' directory.
========================================================================
=====
.
.
.
../ext/List/Util/t/readonly.................ok
../ext/List/Util/t/reduce...................ok
        2/23 skipped: Poor man's MULTICALL can't cope
../ext/List/Util/t/refaddr..................ok  
../ext/List/Util/t/reftype..................ok
../ext/List/Util/t/shuffle..................dubious
        Test returned status 0 (wstat 11, 0xb)
DIED. FAILED tests 4-6
        Failed 3/6 tests, 50.00% okay
../ext/List/Util/t/sum......................ok
../ext/List/Util/t/tainted..................ok
.
.
.
../ext/POSIX/t/is...........................ok
../ext/POSIX/t/posix........................ok
../ext/POSIX/t/sigaction....................FAILED test 6
        Failed 1/25 tests, 96.00% okay
../ext/POSIX/t/taint........................ok
../ext/POSIX/t/waitpid......................ok
../ext/re/t/re..............................ok
../ext/Safe/t/safe1.........................ok
../ext/Safe/t/safe2.........................ok
../ext/Safe/t/safe3.........................ok
../ext/SDBM_File/t/sdbm.....................ok
../ext/Socket/t/socketpair..................ok 1/45EOF on right took
over 3 seconds at ../ext/Socket/t/socketpair.t line 119.
Something unexpectedly hung during testing at
../ext/Socket/t/socketpair.t line 39.
../ext/Socket/t/socketpair..................dubious
        Test returned status 0 (wstat 2, 0x2)
DIED. FAILED tests 11-45
        Failed 35/45 tests, 22.22% okay
../ext/Socket/t/Socket......................ok
../ext/Storable/t/attach_errors.............ok
.
.
.
../ext/threads/t/stress_string..............skipped
        all skipped: no useithreads
../ext/threads/t/thread.....................skipped
        all skipped: no useithreads
../ext/Time/HiRes/t/HiRes...................ok
21/33Time::HiRes::clock(): unimplemented in this platform at
../ext/Time/HiRes/t/iRes.t line 570.
../ext/Time/HiRes/t/HiRes...................dubious
        Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED test 33
        Failed 1/33 tests, 96.97% okay
../ext/Unicode/Normalize/t/fcdc.............ok
../ext/Unicode/Normalize/t/form.............ok
.
.
.
../lib/Shell................................ok
../lib/sigtrap..............................ok
../lib/sort.................................dubious
        Test returned status 0 (wstat 11, 0xb)
DIED. FAILED tests 48-119
        Failed 72/119 tests, 39.50% okay
../lib/strict...............................ok
../lib/subs.................................ok
.
.
.
../lib/Test/Harness/t/strap-analyze.........ok
../lib/Test/Harness/t/strap.................ok
../lib/Test/Harness/t/test-harness..........NOK 26
#   Failed test 'combined - totals'
#   in ../lib/Test/Harness/t/test-harness.t at line 532.
#     Structures begin differing at:
#          $got->{max} = '0'
#     $expected->{max} = '10'
../lib/Test/Harness/t/test-harness..........NOK 27
#   Failed test 'combined - failed'
#   in ../lib/Test/Harness/t/test-harness.t at line 536.
#     Structures begin differing at:
#          $got->{canon} = undef
#     $expected->{canon} = '3 9'
../lib/Test/Harness/t/test-harness..........NOK 28
#   Failed test 'combined - No warnings'
#   in ../lib/Test/Harness/t/test-harness.t at line 555.
#          got: 'Use of uninitialized value in warn at
../lib/Test/Harness.pm line 356.
# 
# '
#     expected: ''
../lib/Test/Harness/t/test-harness..........NOK 31
#   Failed test 'descriptive - all ok'
#   in ../lib/Test/Harness/t/test-harness.t at line 529.
#          got: '0'
#     expected: '1'
../lib/Test/Harness/t/test-harness..........NOK 33
#   Failed test 'descriptive - totals'
#   in ../lib/Test/Harness/t/test-harness.t at line 532.
#     Structures begin differing at:
#          $got->{max} = '0'
#     $expected->{max} = '5'
.
.
.
# Looks like you failed 71 tests of 189.
../lib/Test/Harness/t/test-harness..........dubious

        Test returned status 71 (wstat 18176, 0x4700)
DIED. FAILED tests 26-28, 31, 33, 35, 40-42, 47-49, 54-56, 61-63, 66,
68, 70, 75-77, 82-84, 89, 91, 94, 96, 98, 101, 103, 105, 10-112, 115,
117, 119, 122, 124, 126, 129, 131, 133, 136, 138, 140, 143, 145, 147,
150, 152, 154, 157, 159, 161, 164, 166, 168, 171, 173, 175, 180-182,
185, 187, 189
        Failed 71/189 tests, 62.43% okay (less 31 skipped tests: 87
okay, 46.03%)
../lib/Test/Harness/t/version...............ok
../lib/Test/Simple/t/00test_harness_check...ok
.
.
.
../lib/Tie/File/t/07_rv_splice..............ok
../lib/Tie/File/t/08_ro.....................ok
../lib/Tie/File/t/09_gen_rs.................Out of memory during request
for 4088 bytes, total sbrk() is 74736024 bytes!
../lib/Tie/File/t/09_gen_rs.................dubious
        Test returned status 1 (wstat 256, 0x100)
DIED. FAILED tests 51-59
        Failed 9/59 tests, 84.75% okay
../lib/Tie/File/t/10_splice_rs..............ok
../lib/Tie/File/t/11_rv_splice_rs...........ok
.
.
.
Failed Test                       Stat Wstat Total Fail  Failed  List of
Failed
------------------------------------------------------------------------
-------
../ext/List/Util/t/shuffle.t         0    11     6    6 100.00%  4-6
../ext/POSIX/t/sigaction.t                      25    1   4.00%  6
../ext/Socket/t/socketpair.t         0     2    45   70 155.56%  11-45
../ext/Time/HiRes/t/HiRes.t          4  1024    33    2   6.06%  33
../lib/Test/Harness/t/test-harnes   71 18176   189   71  37.57%  26-28
31 33 35
                                                                 40-42
47-49
                                                                 54-56
61-63 66
                                                                 68 70
75-77
                                                                 82-84
89 91 94
                                                                 96 98
101 103
                                                                 105
110-112
                                                                 115 117
119
                                                                 122 124
126
                                                                 129 131
133
                                                                 136 138
140
                                                                 143 145
147
                                                                 150 152
154
                                                                 157 159
161
                                                                 164 166
168
                                                                 171 173
175
                                                                 180-182
185
                                                                 187 189
../lib/Tie/File/t/09_gen_rs.t        1   256    59   18  30.51%  51-59
../lib/sort.t                        0    11   119  144 121.01%  48-119
60 tests and 239 subtests skipped.
Failed 7/988 test scripts, 99.29% okay. 192/115567 subtests failed,
99.83% okay.




[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]