[m-dev.] Broken debug/dice test case.

Paul Bone pbone at csse.unimelb.edu.au
Sun Sep 21 21:28:45 AEST 2008


Hi Guys.

I've made a change to the bytecode representation used by the declartive
debugger again, and I've broken the tests/debug/dice test case, or maybe
it was already broken?  The change I've made to the bytecode
representation will be posted to mercury-reviews shortly.

I've attached the tests/debug/dice.log file generated by running
./tools/bootcheck -G asm_fast.gc.decldebug.  I don't understand if the
difference in the output of dice.m compared to what was expected is a
problem, presumably a value is now sorting or hashing differently and
that's all.

Could someone farmiliar with the dice feature of the debugger let me
know if this is a problem or not.

Thanks.

-------------- next part --------------
RUNNING TEST debugger/dice in grade asm_fast.gc.decldebug
make[5]: Entering directory `/home/taura/workspaces/pbone/fix_decl_debug/tests/debugger'
/home/taura/workspaces/pbone/fix_decl_debug/stage2/scripts/mmc --generate-dependencies --grade asm_fast.gc.decldebug      --mercury-linkage static --flags ../TESTS_FLAGS --flags ../WS_FLAGS --trace decl     dice
make[5]: Leaving directory `/home/taura/workspaces/pbone/fix_decl_debug/tests/debugger'
make[5]: Entering directory `/home/taura/workspaces/pbone/fix_decl_debug/tests/debugger'
/home/taura/workspaces/pbone/fix_decl_debug/stage2/scripts/mmc --compile-to-c --grade asm_fast.gc.decldebug      --mercury-linkage static --flags ../TESTS_FLAGS --flags ../WS_FLAGS --trace decl     dice > dice.err 2>&1
/home/taura/workspaces/pbone/fix_decl_debug/stage2/scripts/mgnuc --grade asm_fast.gc.decldebug        --      -c dice.c -o dice.o
/home/taura/workspaces/pbone/fix_decl_debug/stage2/scripts/mgnuc --grade asm_fast.gc.decldebug        --      -c dice_init.c -o dice_init.o
/home/taura/workspaces/pbone/fix_decl_debug/stage2/scripts/ml --grade asm_fast.gc.decldebug      --no-mercury-stdlib-dir --trace  --trace-init-file /home/taura/workspaces/pbone/fix_decl_debug/stage2/browser/mer_browser.init --trace-init-file /home/taura/workspaces/pbone/fix_decl_debug/stage2/mdbcomp/mer_mdbcomp.init --ssdb-init-file /home/taura/workspaces/pbone/fix_decl_debug/stage2/ssdb/mer_ssdb.init        --    -o dice dice_init.o \
		dice.o \
		 /home/taura/workspaces/pbone/fix_decl_debug/stage2/trace/libmer_trace.a /home/taura/workspaces/pbone/fix_decl_debug/stage2/trace/libmer_eventspec.a /home/taura/workspaces/pbone/fix_decl_debug/stage2/ssdb/libmer_ssdb.a /home/taura/workspaces/pbone/fix_decl_debug/stage2/browser/libmer_browser.a /home/taura/workspaces/pbone/fix_decl_debug/stage2/mdbcomp/libmer_mdbcomp.a /home/taura/workspaces/pbone/fix_decl_debug/stage2/library/libmer_std.a /home/taura/workspaces/pbone/fix_decl_debug/stage2/runtime/libmer_rt.a /home/taura/workspaces/pbone/fix_decl_debug/stage2/boehm_gc/libgc.a      
/bin/rm -f .mercury_trace_counts.*dice.*
MERCURY_OPTIONS=--trace-count ./dice 1 2 3 4 && \
	mv .mercury_trace_counts.*dice.* dice.pass1
[1, 2, 3, 4]
/bin/rm -f .mercury_trace_counts.*dice.*
MERCURY_OPTIONS=--trace-count ./dice 5 6 7 8 && \
	mv .mercury_trace_counts.*dice.* dice.pass2
[5, 6, 7, 8]
/bin/rm -f .mercury_trace_counts.*dice.*
MERCURY_OPTIONS=--trace-count ./dice 10 11 100 && \
	mv .mercury_trace_counts.*dice.* dice.pass3
[10, 11, 100]
MERCURY_OPTIONS= \
	/home/taura/workspaces/pbone/fix_decl_debug/slice/mtc_union -o dice.passes dice.pass1 dice.pass2 dice.pass3
/bin/rm -f .mercury_trace_counts.*dice.*
MERCURY_OPTIONS=--trace-count ./dice 4 1 2 3 && \
	mv .mercury_trace_counts.*dice.* dice.fail
[1, 1, 2, 3]
MERCURY_OPTIONS="$MERCURY_OPTIONS -de" HOME=/nonexistent MERCURY_SUPPRESS_MDB_BANNER=yes MERCURY_DEBUGGER_INIT=../mdbrc mdb ./dice 4 1 2 3 < dice.inp > dice.out 2>&1
Comparing dice.out with dice.exp*,
	results in dice.res
** dice.out did not match the expected output
** (closest match was dice.res2)
*** dice.exp2	2008-06-04 13:37:40.000000000 +1000
--- dice.out	2008-09-21 00:25:57.000000000 +1000
***************
*** 11,19 ****
  pred dice.merge/3-0      CALL                 dice.m:64   18 (3)    7      0.28
  pred dice.merge/3-0      EXIT                 dice.m:64   18 (3)    7      0.28
  pred dice.merge/3-0      <s1-2;>              dice.m:64    8 (3)    3      0.27
- pred dice.merge/3-0      <s1-2;s2-2;>         dice.m:66    8 (3)    3      0.27
  pred dice.merge/3-0      <s2-2;>              dice.m:64   10 (3)    4      0.29
  pred dice.merge/3-0      <s2-2;c2;s2-2;>      dice.m:67   10 (3)    4      0.29
  pred dice.merge/3-0      <s2-2;c2;s2-2;c4;?;> dice.m:69   10 (3)    4      0.29
  pred dice.merge/3-0      <s2-2;c2;s2-2;c4;t;> dice.m:71   10 (3)    3      0.23
  pred dice.merge/3-0      <s2-2;c2;s2-2;c4;e;> dice.m:74    0 (0)    1      1.00
--- 11,19 ----
  pred dice.merge/3-0      CALL                 dice.m:64   18 (3)    7      0.28
  pred dice.merge/3-0      EXIT                 dice.m:64   18 (3)    7      0.28
  pred dice.merge/3-0      <s1-2;>              dice.m:64    8 (3)    3      0.27
  pred dice.merge/3-0      <s2-2;>              dice.m:64   10 (3)    4      0.29
  pred dice.merge/3-0      <s2-2;c2;s2-2;>      dice.m:67   10 (3)    4      0.29
+ pred dice.merge/3-0      <s1-2;s2-2;>         dice.m:66    8 (3)    3      0.27
  pred dice.merge/3-0      <s2-2;c2;s2-2;c4;?;> dice.m:69   10 (3)    4      0.29
  pred dice.merge/3-0      <s2-2;c2;s2-2;c4;t;> dice.m:71   10 (3)    3      0.23
  pred dice.merge/3-0      <s2-2;c2;s2-2;c4;e;> dice.m:74    0 (0)    1      1.00
***************
*** 21,31 ****
  pred dice.merge_sort/2-0 EXIT                 dice.m:31    3 (3)    1      0.25
  pred dice.msort_n/4-0    CALL                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    EXIT                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    <?;>                 dice.m:39   19 (3)    7      0.27
- pred dice.msort_n/4-0    <e;>                 dice.m:54   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;?;>               dice.m:44   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;t;>               dice.m:50   11 (3)    4      0.27
! pred dice.msort_n/4-0    <e;t;s2-2;>          dice.m:47   11 (3)    4      0.27
  pred dice.msort_n/4-0    <e;e;>               dice.m:55    8 (3)    3      0.27
  mdb> fail_trace_counts dice.fail
  mdb> pass_trace_counts dice.passes
--- 21,31 ----
  pred dice.merge_sort/2-0 EXIT                 dice.m:31    3 (3)    1      0.25
  pred dice.msort_n/4-0    CALL                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    EXIT                 dice.m:37   19 (3)    7      0.27
+ pred dice.msort_n/4-0    <e;t;s2-2;>          dice.m:47   11 (3)    4      0.27
  pred dice.msort_n/4-0    <?;>                 dice.m:39   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;?;>               dice.m:44   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;t;>               dice.m:50   11 (3)    4      0.27
! pred dice.msort_n/4-0    <e;>                 dice.m:54   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;e;>               dice.m:55    8 (3)    3      0.27
  mdb> fail_trace_counts dice.fail
  mdb> pass_trace_counts dice.passes
***************
*** 43,52 ****
  pred dice.msort_n/4-0    CALL                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    EXIT                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    <?;>                 dice.m:39   19 (3)    7      0.27
- pred dice.msort_n/4-0    <e;>                 dice.m:54   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;?;>               dice.m:44   19 (3)    7      0.27
! pred dice.msort_n/4-0    <e;t;>               dice.m:50   11 (3)    4      0.27
  pred dice.msort_n/4-0    <e;t;s2-2;>          dice.m:47   11 (3)    4      0.27
  pred dice.main/2-0       CALL                 dice.m:17    3 (3)    1      0.25
  pred dice.main/2-0       EXIT                 dice.m:17    3 (3)    1      0.25
  pred dice.main/2-0       <c2;?;>              dice.m:20    3 (3)    1      0.25
--- 43,52 ----
  pred dice.msort_n/4-0    CALL                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    EXIT                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    <?;>                 dice.m:39   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;?;>               dice.m:44   19 (3)    7      0.27
! pred dice.msort_n/4-0    <e;>                 dice.m:54   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;t;s2-2;>          dice.m:47   11 (3)    4      0.27
+ pred dice.msort_n/4-0    <e;t;>               dice.m:50   11 (3)    4      0.27
  pred dice.main/2-0       CALL                 dice.m:17    3 (3)    1      0.25
  pred dice.main/2-0       EXIT                 dice.m:17    3 (3)    1      0.25
  pred dice.main/2-0       <c2;?;>              dice.m:20    3 (3)    1      0.25
***************
*** 68,77 ****
  pred dice.msort_n/4-0    CALL                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    EXIT                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    <?;>                 dice.m:39   19 (3)    7      0.27
- pred dice.msort_n/4-0    <e;>                 dice.m:54   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;?;>               dice.m:44   19 (3)    7      0.27
! pred dice.msort_n/4-0    <e;t;>               dice.m:50   11 (3)    4      0.27
  pred dice.msort_n/4-0    <e;t;s2-2;>          dice.m:47   11 (3)    4      0.27
  pred dice.main/2-0       CALL                 dice.m:17    3 (3)    1      0.25
  pred dice.main/2-0       EXIT                 dice.m:17    3 (3)    1      0.25
  pred dice.main/2-0       <c2;?;>              dice.m:20    3 (3)    1      0.25
--- 68,77 ----
  pred dice.msort_n/4-0    CALL                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    EXIT                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    <?;>                 dice.m:39   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;?;>               dice.m:44   19 (3)    7      0.27
! pred dice.msort_n/4-0    <e;>                 dice.m:54   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;t;s2-2;>          dice.m:47   11 (3)    4      0.27
+ pred dice.msort_n/4-0    <e;t;>               dice.m:50   11 (3)    4      0.27
  pred dice.main/2-0       CALL                 dice.m:17    3 (3)    1      0.25
  pred dice.main/2-0       EXIT                 dice.m:17    3 (3)    1      0.25
  pred dice.main/2-0       <c2;?;>              dice.m:20    3 (3)    1      0.25
***************
*** 91,103 ****
  pred dice.msort_n/4-0    CALL                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    EXIT                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    <?;>                 dice.m:39   19 (3)    7      0.27
- pred dice.msort_n/4-0    <e;>                 dice.m:54   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;?;>               dice.m:44   19 (3)    7      0.27
  pred dice.merge/3-0      <s2-2;>              dice.m:64   10 (3)    4      0.29
  pred dice.merge/3-0      <s2-2;c2;s2-2;>      dice.m:67   10 (3)    4      0.29
  pred dice.merge/3-0      <s2-2;c2;s2-2;c4;?;> dice.m:69   10 (3)    4      0.29
- pred dice.msort_n/4-0    <e;t;>               dice.m:50   11 (3)    4      0.27
  pred dice.msort_n/4-0    <e;t;s2-2;>          dice.m:47   11 (3)    4      0.27
  pred dice.merge/3-0      <s1-2;>              dice.m:64    8 (3)    3      0.27
  pred dice.merge/3-0      <s1-2;s2-2;>         dice.m:66    8 (3)    3      0.27
  pred dice.msort_n/4-0    <e;e;>               dice.m:55    8 (3)    3      0.27
--- 91,103 ----
  pred dice.msort_n/4-0    CALL                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    EXIT                 dice.m:37   19 (3)    7      0.27
  pred dice.msort_n/4-0    <?;>                 dice.m:39   19 (3)    7      0.27
  pred dice.msort_n/4-0    <e;?;>               dice.m:44   19 (3)    7      0.27
+ pred dice.msort_n/4-0    <e;>                 dice.m:54   19 (3)    7      0.27
  pred dice.merge/3-0      <s2-2;>              dice.m:64   10 (3)    4      0.29
  pred dice.merge/3-0      <s2-2;c2;s2-2;>      dice.m:67   10 (3)    4      0.29
  pred dice.merge/3-0      <s2-2;c2;s2-2;c4;?;> dice.m:69   10 (3)    4      0.29
  pred dice.msort_n/4-0    <e;t;s2-2;>          dice.m:47   11 (3)    4      0.27
+ pred dice.msort_n/4-0    <e;t;>               dice.m:50   11 (3)    4      0.27
  pred dice.merge/3-0      <s1-2;>              dice.m:64    8 (3)    3      0.27
  pred dice.merge/3-0      <s1-2;s2-2;>         dice.m:66    8 (3)    3      0.27
  pred dice.msort_n/4-0    <e;e;>               dice.m:55    8 (3)    3      0.27
make[5]: *** [dice.res] Error 1
make[5]: Target `dice.runtest' not remade because of errors.
make[5]: Leaving directory `/home/taura/workspaces/pbone/fix_decl_debug/tests/debugger'
FAILED TEST debugger/dice in grade asm_fast.gc.decldebug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/developers/attachments/20080921/d0d51faf/attachment.sig>


More information about the developers mailing list