MERCURY_OPTIONS= --deep-random-write=25 --mdb-disable-progress make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/tests/hard_coded' { echo MCFLAGS += '--grade csharp --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --use-subdirs '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/stage2/runtime/mer_rt.init '; echo MLLIBS += ' '; echo MLOBJS += ' '; echo LDFLAGS += ' '; echo LD_LIBFLAGS += ' '; echo EXTRA_LIBRARIES += ''; echo EXTRA_LIB_DIRS += ''; echo LIBGRADES = 'hlc.gc '; echo INSTALL_PREFIX = '/mnt/testing/run/install'; echo LINKAGE = 'shared'; echo MERCURY_LINKAGE = 'shared'; } | /mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/stage2/scripts/mmc --make --options-file - array_sort.depend make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/tests/hard_coded' make[3]: Entering directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/tests/hard_coded' { echo MCFLAGS += '--grade csharp --options-file /mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/stage2/Mercury.options --mercury-linkage static -j2 --flags ../TESTS_FLAGS --flags ../WS_FLAGS --use-subdirs '; echo MCFLAGS += ' '; echo CFLAGS += ' '; echo JAVACFLAGS += '-J"-Xmx1024m" '; echo CSCFLAGS += ' '; echo C2INITARGS += ' /mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/stage2/library/mer_std.init /mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/stage2/runtime/mer_rt.init '; echo MLLIBS += ' '; echo MLOBJS += ' '; echo LDFLAGS += ' '; echo LD_LIBFLAGS += ' '; echo EXTRA_LIBRARIES += ''; echo EXTRA_LIB_DIRS += ''; echo LIBGRADES = 'hlc.gc '; echo INSTALL_PREFIX = '/mnt/testing/run/install'; echo LINKAGE = 'shared'; echo MERCURY_LINKAGE = 'shared'; } | /mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/stage2/scripts/mmc --make --options-file - array_sort Making Mercury/int3s/array_sort.int3 Making Mercury/ints/array_sort.int Making Mercury/css/array_sort.cs Making array_sort.exe { [ -f array_sort.inp ] && cat array_sort.inp; } | ./array_sort > array_sort.out 2>&1 || \ { grep . array_sort.out /dev/null; exit 1; } array_sort.out:Unhandled Exception: array_sort.out:System.NullReferenceException: Object reference not set to an instance of an object array_sort.out: at mercury.array.sort_1_f_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_6, System.Array A_3) [0x00039] in <94cccd706df54bdf87d9d3fa560d60da>:0 array_sort.out: at mercury.array_sort.test_3_p_0 (mercury.list+List_1 L_4) [0x0003a] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.main_2_p_0_4 (System.Object closure_arg, System.Object wrapper_arg_1, System.Object wrapper_arg_2) [0x00004] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.solutions.builtin_aggregate_4_p_1_2 (System.Object env_ptr_arg) [0x0003e] in <94cccd706df54bdf87d9d3fa560d60da>:0 array_sort.out: at mercury.solutions.builtin_aggregate_4_p_1_3 (System.Object arg1, System.Object env_ptr_arg) [0x0000e] in <94cccd706df54bdf87d9d3fa560d60da>:0 array_sort.out: at mercury.array_sort.main_2_p_0_1 (System.Object env_ptr_arg) [0x00013] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.main_2_p_0_2 (mercury.list+List_1 arg1, System.Object env_ptr_arg) [0x0000e] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.generate_1_p_0_3 (mercury.list+List_1 arg1, System.Object env_ptr_arg) [0x0000e] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.list.perm_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_7, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00036] in <94cccd706df54bdf87d9d3fa560d60da>:0 array_sort.out: at mercury.array_sort.generate_1_p_0_1 (System.Object env_ptr_arg) [0x00007] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.generate_1_p_0_2 (mercury.list+List_1 arg1, System.Object env_ptr_arg) [0x0000e] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00032] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.generate_1_p_0 (System.Object cont, System.Object cont_env_ptr) [0x00032] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.main_2_p_0_3 (System.Object closure_arg, System.Object cont, System.Object cont_env_ptr) [0x0001c] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.solutions.builtin_aggregate_4_p_1 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_20, mercury.runtime.TypeInfo_Struct TypeInfo_for_U_21, System.Object[] GeneratorPred_5, System.Object[] CollectorPred_6, System.Object STATE_VARIABLE_Acc_0_16) [0x00058] in <94cccd706df54bdf87d9d3fa560d60da>:0 array_sort.out: at mercury.solutions.unsorted_aggregate_4_p_2 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_10, mercury.runtime.TypeInfo_Struct TypeInfo_for_U_11, System.Object[] Generator_5, System.Object[] AccumulatorPred_6, System.Object STATE_VARIABLE_Acc_0_8) [0x00002] in <94cccd706df54bdf87d9d3fa560d60da>:0 array_sort.out: at mercury.array_sort.main_2_p_0 () [0x0002e] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.Main (System.String[] args) [0x00005] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out:[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object array_sort.out: at mercury.array.sort_1_f_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_6, System.Array A_3) [0x00039] in <94cccd706df54bdf87d9d3fa560d60da>:0 array_sort.out: at mercury.array_sort.test_3_p_0 (mercury.list+List_1 L_4) [0x0003a] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.main_2_p_0_4 (System.Object closure_arg, System.Object wrapper_arg_1, System.Object wrapper_arg_2) [0x00004] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.solutions.builtin_aggregate_4_p_1_2 (System.Object env_ptr_arg) [0x0003e] in <94cccd706df54bdf87d9d3fa560d60da>:0 array_sort.out: at mercury.solutions.builtin_aggregate_4_p_1_3 (System.Object arg1, System.Object env_ptr_arg) [0x0000e] in <94cccd706df54bdf87d9d3fa560d60da>:0 array_sort.out: at mercury.array_sort.main_2_p_0_1 (System.Object env_ptr_arg) [0x00013] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.main_2_p_0_2 (mercury.list+List_1 arg1, System.Object env_ptr_arg) [0x0000e] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.generate_1_p_0_3 (mercury.list+List_1 arg1, System.Object env_ptr_arg) [0x0000e] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.list.perm_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_7, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00036] in <94cccd706df54bdf87d9d3fa560d60da>:0 array_sort.out: at mercury.array_sort.generate_1_p_0_1 (System.Object env_ptr_arg) [0x00007] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.generate_1_p_0_2 (mercury.list+List_1 arg1, System.Object env_ptr_arg) [0x0000e] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00032] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.sub_2_p_0 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_9, mercury.list+List_1 HeadVar__1_1, System.Object cont, System.Object cont_env_ptr) [0x00072] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.generate_1_p_0 (System.Object cont, System.Object cont_env_ptr) [0x00032] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.main_2_p_0_3 (System.Object closure_arg, System.Object cont, System.Object cont_env_ptr) [0x0001c] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.solutions.builtin_aggregate_4_p_1 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_20, mercury.runtime.TypeInfo_Struct TypeInfo_for_U_21, System.Object[] GeneratorPred_5, System.Object[] CollectorPred_6, System.Object STATE_VARIABLE_Acc_0_16) [0x00058] in <94cccd706df54bdf87d9d3fa560d60da>:0 array_sort.out: at mercury.solutions.unsorted_aggregate_4_p_2 (mercury.runtime.TypeInfo_Struct TypeInfo_for_T_10, mercury.runtime.TypeInfo_Struct TypeInfo_for_U_11, System.Object[] Generator_5, System.Object[] AccumulatorPred_6, System.Object STATE_VARIABLE_Acc_0_8) [0x00002] in <94cccd706df54bdf87d9d3fa560d60da>:0 array_sort.out: at mercury.array_sort.main_2_p_0 () [0x0002e] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 array_sort.out: at mercury.array_sort.Main (System.String[] args) [0x00005] in <412d9762f7f24ee39acb3be7cacfe7c2>:0 make[3]: *** [../Mmake.common:121: array_sort.out] Error 1 make[3]: Target 'array_sort.runtest' not remade because of errors. make[3]: Leaving directory '/mnt/testing/run/build/mercury-srcdist-rotd-2024-08-14/tests/hard_coded'