Ticket #939 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

t/dynpmc/foo.t FAILs testr with Segmentation fault

Reported by: mikehh Owned by:
Priority: normal Milestone:
Component: none Version: trunk
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

parrot r40685 on Ubuntu 9.04 amd64

t/dynpmc/foo.t - Failed tests: 6-7 in testr as part of fulltest

#   Failed test 'inherited add'
#   at t/dynpmc/foo.t line 132.
# Exited with error code: 139
# Received:
# ok
# Segmentation fault
# 
# Expected:
# ok
# 134217769
# BigInt
# 

#   Failed test 'Foo subclass isa Integer'
#   at t/dynpmc/foo.t line 157.
# Exited with error code: 139
# Received:
# Segmentation fault
# 
# Expected:
# 144
# 


Test Summary Report
-------------------
t/dynpmc/foo.t                     (Wstat: 512 Tests: 9 Failed: 2)
  Failed tests:  6-7
  Non-zero exit status: 2
Files=211, Tests=5634, 79 wallclock secs ( 2.92 usr  0.76 sys + 67.54 cusr 46.18 csys = 117.40 CPU)
Result: FAIL
make[1]: *** [testr] Error 1

All other tests PASS (pre/post-config, smoke, nqp_test and the rest of fulltest)

smolder ->  http://smolder.plusthree.com/app/public_projects/report_details/26403

The test PASSed at r40676

All tests PASS (pre/post-config, smoke, nqp_test, fulltest) at r40676 - Ubuntu 9.04 amd64 (gcc)

Change History

Changed 5 years ago by chromatic

On Thursday 20 August 2009 20:50:49 Parrot wrote:

>  t/dynpmc/foo.t - Failed tests:  6-7 in testr as part of fulltest

I can't verify this on 32-bit x86 Linux.  Does it go away with a 'make clean' 
or a 'touch src/dynpmc/*.pmc; make'?

-- c

Changed 5 years ago by mikehh

My usual test procedure starts with make realclean, svn update, perl Configure.pl --test (+ other options), make world, make html, make smoke, make nqp_test, make fulltest.

I have built and tested with gcc and g++ (in separate directories - parrot and g.parrot) and the test has failed at r40685 (gcc), r40686(g++), r40688(gcc) and r40690(g++).

All the tests were on Ubuntu 9.04 amd64.

I will test later today on Ubuntu 9.04 i386 (needs a reboot)

Changed 5 years ago by mikehh

I got the following results from r40691 - Ubuntu 9.04 amd64 (g++)
(tidied up a little - it was jagged)

mhh@mhh-desktop:~/g.parrot$ ./parrot -t t/dynpmc/foo_6.pbc
     0 loadlib P1, "foo_group"                      P1=PMCNULL
     3 print "ok\n"
ok
     5 new P3, "Foo"              P3=PMCNULL
     8 set P3, 42                 P3=Foo=PMC(0x20c2800)
    11 new P0, "BigInt"           P0=PMCNULL
    14 set P0, 134217727          P0=BigInt=PMC(0x20c2140: 0)
    17 new P2, "Undef"            P2=PMCNULL
    20 add P2, P3, P0             P2=Undef=PMC(0x20c1ab0) P3=Foo=PMC(0x20c2800) P0=BigInt=PMC(0x20c2140: 134217727)
Segmentation fault
mhh@mhh-desktop:~/g.parrot$ ./parrot -t t/dynpmc/foo_7.pbc
     0 loadlib P2, "foo_group"    P2=PMCNULL
     3 new P3, "Foo"              P3=PMCNULL
     6 set P3, 1                  P3=Foo=PMC(0x8f5800)
     9 new P1, "Integer"          P1=PMCNULL
    12 new P0, "Integer"          P0=PMCNULL
    15 set P0, 2                  P0=Integer=PMC(0x8f57a0: 0)
    18 sub P1, P3, P0             P1=Integer=PMC(0x8f57d0: 0) P3=Foo=PMC(0x8f5800) P0=Integer=PMC(0x8f57a0: 2)
Segmentation fault

Changed 5 years ago by mikehh

  • version changed from 1.5.0 to trunk

I just tested on Ubuntu 9.04 i386 and the test PASSed.

All tests PASS (pre/post-config, smoke, nqp_test, fulltest) at r40716 - Ubuntu 9.04 i386 (g++)

The test still fails on Ubuntu 9.04 amd64 at the same revision (r40716)

Changed 5 years ago by mikehh

bisecting: the test passes in r40679 but fails in r40680

furthermore with an optimized build both test 6 and test7 FAIL without the optimize only test 6 FAILs

I initially tried to build with g++ but the build failed (fixed in r40686)

I then did:

make realclean
perl Configure.pl
make
make test TEST_JOBS=5 -> PASS
make testr TEST_JOBS=5
...
#   Failed test 'inherited add'
#   at t/dynpmc/foo.t line 132.                 
# Exited with error code: 139  
# Received:
# ok                                        
# Segmentation fault
#
# Expected:
# ok
# 134217769
# BigInt
#
...
Test Summary Report
-------------------
t/dynpmc/foo.t                     (Wstat: 256 Tests: 9 Failed: 1)
  Failed test:  6
  Non-zero exit status: 1
Files=211, Tests=5634, 82 wallclock secs ( 2.85 usr  0.72 sys + 86.97 cusr 46.65 csys = 137.19 CPU)
Result: FAIL
make: *** [testr] Error 1

repeating with:

make realclean
perl6 Configure.pl --optimize
make testr TEST_JOBS=5

it then also failed test 7 - Failed tests: 6-7

NB. the .pbc files generated by make testr in t/dynpmc were not removed by make realclean (fixed in r40719)

Changed 5 years ago by whiteknight

  • status changed from new to closed
  • resolution set to fixed

I think this should be resolved as of r40736.

Note: See TracTickets for help on using tickets.