--- Jonathan Worthington <[EMAIL PROTECTED]> wrote:
> OK, that's in the dynops loading code. I'm be interesting to see
> what:
>
> prove t/dynoplibs
>
> Gives you. (This is in Parrot root, not Rakudo.) And also, your
> platform
> etc. (in fact, the contents of the myconfig file, generated by
> Configure.pl, will likely cover it.) I'm currently suspecting this
> may
> be a Parrot level issue with dynamic ops on your platform, rather
> than
> something specific to Rakudo's usage of them (which is still an
> important problem to solve, but it's good to know exactly where the
> problem lies).
No problem.
$ prove -v t/dynoplibs/
t/dynoplibs/dan........
1..6
not ok 1 - mul_i_ic_nc
# Failed test 'mul_i_ic_nc'
# at t/dynoplibs/dan.t line 26.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# 25
#
not ok 2 - mul_i_i_nc
# Failed test 'mul_i_i_nc'
# at t/dynoplibs/dan.t line 37.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# 42
#
not ok 3 - mul_i_ic_n
# Failed test 'mul_i_ic_n'
# at t/dynoplibs/dan.t line 49.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# 42
#
not ok 4 - mul_i_i_n
# Failed test 'mul_i_i_n'
# at t/dynoplibs/dan.t line 61.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# 42
#
not ok 5 - mul pir syntax
# Failed test 'mul pir syntax'
# at t/dynoplibs/dan.t line 74.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# 42
#
not ok 6 - mul pasm syntax
# Failed test 'mul pasm syntax'
# at t/dynoplibs/dan.t line 87.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# 11
#
# Looks like you failed 6 tests of 6.
Dubious, test returned 6 (wstat 1536, 0x600)
Failed 6/6 subtests
t/dynoplibs/myops......
1..10
not ok 1 - fortytwo
# Failed test 'fortytwo'
# at t/dynoplibs/myops.t line 31.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# 42
#
not ok 2 - what_do_you_get_if_you_multiply_six_by_nine
# Failed test 'what_do_you_get_if_you_multiply_six_by_nine'
# at t/dynoplibs/myops.t line 42.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# fortytwo
#
not ok 3 - hcf
# Failed test 'hcf'
# at t/dynoplibs/myops.t line 53.
# 'src/interpreter.c:1030: failed assertion
'interp->op_count == core->op_count'
# '
# doesn't match '/neither here
# (?!nor there)/
# '
# './parrot "/Users/ovid/code/parrot/t/dynoplibs/myops_3.pir"' failed
with exit code [SIGNAL 6]
not ok 4 - a short cheating quine
# Failed test 'a short cheating quine'
# at t/dynoplibs/myops.t line 76.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# .loadlib "myops_ops"
# q
#
not ok 5 - one alarm
# Failed test 'one alarm'
# at t/dynoplibs/myops.t line 84.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# 1
# alarm
# 2
# 3
# done.
#
not ok 6 - three alarm
# Failed test 'three alarm'
# at t/dynoplibs/myops.t line 122.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# /7/
#
not ok 7 - repeating alarm
# Failed test 'repeating alarm'
# at t/dynoplibs/myops.t line 174.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# /alarm
# alarm
# alarm/
#
not ok 8 - bxand - A AND B, but not BOTH
# Failed test 'bxand - A AND B, but not BOTH'
# at t/dynoplibs/myops.t line 200.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# F
# F
# F
# F
#
not ok 9 - conv_u2_i
# Failed test 'conv_u2_i'
# at t/dynoplibs/myops.t line 228.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# 32767
# 32768
# 65535
# 0
# 65535
#
not ok 10 - conv_i2_i
# Failed test 'conv_i2_i'
# at t/dynoplibs/myops.t line 261.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed assertion 'interp->op_count ==
core->op_count'
#
# Expected:
# 32767
# -32768
# -1
# 0
# -1
#
# Looks like you failed 10 tests of 10.
Dubious, test returned 10 (wstat 2560, 0xa00)
Failed 10/10 subtests
Test Summary Report
-------------------
t/dynoplibs/dan.t (Wstat: 1536 Tests: 6 Failed: 6)
Failed tests: 1-6
Non-zero exit status: 6
t/dynoplibs/myops.t (Wstat: 2560 Tests: 10 Failed: 10)
Failed tests: 1-10
Non-zero exit status: 10
Files=2, Tests=16, 2 wallclock secs ( 0.02 usr 0.01 sys + 1.09 cusr
0.40 csys = 1.52 CPU)
Result: FAIL
$ cat myconfig
Summary of my parrot 0.6.3 (r28566) configuration:
configdate='Thu Jun 19 22:14:56 2008 GMT'
Platform:
osname=darwin, archname=darwin-thread-multi-2level
jitcapable=0, jitarchname=nojit,
jitosname=darwin, jitcpuarch=i386
execcapable=0
perl=perl
Compiler:
cc='cc', ccflags='-g -pipe -fno-common -no-cpp-precomp
-I/usr/local/include -pipe -fno-common -Wno-long-double
-DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_MALLOC
-DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN -DHASATTRIBUTE_PURE
-DHASATTRIBUTE_UNUSED -DHASATTRIBUTE_WARN_UNUSED_RESULT
-falign-functions=16 -fvisibility=hidden -maccumulate-outgoing-args -W
-Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts
-Wcomment -Wdisabled-optimization -Wendif-labels -Wextra -Wformat
-Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k
-Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch -Wmissing-braces
-Wmissing-field-initializers -Wno-missing-format-attribute
-Wmissing-include-dirs -Wpacked -Wparentheses -Wpointer-arith
-Wreturn-type -Wsequence-point -Wno-shadow -Wsign-compare
-Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-default
-Wtrigraphs -Wundef -Wunknown-pragmas -Wno-unused -Wvariadic-macros
-Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement
-Wimplicit-function-declaration -Wimplicit-int -Wmain
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnonnull
-I/opt/local/include -DHAS_GETTEXT',
Linker and Libraries:
ld='c++', ldflags='-L/usr/local/lib
-L/Users/ovid/code/parrot/blib/lib -L/opt/local/lib',
cc_ldflags='',
libs='-lm -lgmp -lreadline -framework OpenGL -framework GLUT
-lcrypto -lintl'
Dynamic Linking:
share_ext='.dylib', ld_share_flags='-dynamiclib -undefined
dynamic_lookup',
load_ext='.bundle', ld_load_flags='-bundle -undefined
dynamic_lookup'
Types:
iv=long, intvalsize=4, intsize=4, opcode_t=long, opcode_t_size=4,
ptrsize=4, ptr_alignment=1 byteorder=1234,
nv=double, numvalsize=8, doublesize=8
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/