2024-05-18 20:07 AEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000256mercuryBugpublic2014-09-09 18:37
Reporterqu1j0t3 
Assigned Tojuliensf 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionno change required 
PlatformpowerpcOSOS XOS Version10.4.11
Product Version 
Target VersionFixed in Version 
Summary0000256: bootcheck errors on OS X 10.4.11 PowerPC
Description  $ export PATH=$PATH:~/Downloads/mercury-compiler-rotd-2012-05-20/scripts/:~/Downloads/mercury-compiler-rotd-2012-05-20/util/
  $ ./tools/bootcheck -t- -G hlc


...
<snip>
...

+ echo linking stage 3...
linking stage 3...
+ set +x
+ MMAKE_VPATH=.
+ export MMAKE_VPATH
+ MMAKE_DIR=/Users/toby/Downloads/mercury-compiler-rotd-2012-05-20/scripts
+ export MMAKE_DIR
+ MMAKE=/Users/toby/Downloads/mercury-compiler-rotd-2012-05-20/scripts/mmake
+ HO_CALL_STATS=/Users/toby/Downloads/mercury-compiler-rotd-2012-05-20/HO_CALL_STATS
+ export HO_CALL_STATS
+ test '' '!=' ''
+ cd stage3
+ /Users/toby/Downloads/mercury-compiler-rotd-2012-05-20/scripts/mmake -k dep_library dep_mdbcomp dep_browser_all dep_ssdb dep_compiler
cd library && PATH=../scripts:../util:$PATH MMAKE_VPATH=. MMAKE_DIR=../scripts DESTDIR= ../scripts/mmake depend
config.status: creating LIB_FLAGS
mmc --generate-dependencies --grade hlc --mercury-linkage shared --flags LIB_FLAGS --flags INTER_FLAGS --no-warn-nothing-exported --no-warn-unused-imports mer_std
mercury_compile(9349) malloc: *** Deallocation of a pointer not malloced: 0x303d2c0; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
...
<many more>
Steps To ReproduceAfter 'sudo make install' from ROTD,
  $ ./tools/bootcheck -t- -G hlc
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0000466

juliensf (administrator)

I would not expect bootchecking in a grade _without_ garbage collection. Try the grade
hlc.gc instead. (The "nogc" grades, such as hlc, are not useful in practice -- they are only useful
to developers measuring the impact of garbage collection.)

~0000467

qu1j0t3 (reporter)

I guess I'm just out of my depth. Anyway, here is the result of:

  $ ./tools/bootcheck -t- -G hlc.gc

+ echo 'finishing stage 3 at Mon May 28 04:21:52 EDT 2012'
finishing stage 3 at Mon May 28 04:21:52 EDT 2012
+ test false = true -o false = true
+ test -s /Users/toby/.bootcheck_diff_opts
+ test_status=0
+ false
+ extras_status=0
+ false
+ false
+ test '' '!=' ''
+ exitstatus=0
+ tests_dir=/Users/toby/Downloads/mercury-compiler-rotd-2012-05-20/tests
+ cat /dev/null
./tools/bootcheck: line 1792: /Users/toby/Downloads/mercury-compiler-rotd-2012-05-20/tests/EXPECT_FAIL_TESTS: No such file or directory
+ test -s /Users/toby/Downloads/mercury-compiler-rotd-2012-05-20/tests/FAILED_TESTS_SUMMARY
+ test 0 '!=' 0
+ test 0 '!=' 0
+ test 0 '!=' 0
+ test 1 '!=' 0
+ echo 'error exit: some namespace isn'\''t clean'
error exit: some namespace isn't clean
+ exitstatus=1
+ test -s /Users/toby/Downloads/mercury-compiler-rotd-2012-05-20/tests/NOMAKE_DIRS
+ test -s /Users/toby/Downloads/mercury-compiler-rotd-2012-05-20/tests/FAILED_TESTS_SUMMARY
++ date
+ echo 'finishing at Mon May 28 04:21:52 EDT 2012'
finishing at Mon May 28 04:21:52 EDT 2012
+ exit 1

~0000468

juliensf (administrator)

The complaint about namespaces not being clean is normal on Mac OS X.
It occurs because symbols on that OS are given a "_" prefix by default,
and the namespace check doesn't take that into account. You can ignore
that message (or disable the test by invoking the bootcheck script with
the --no-check-namspace option.)

~0000785

juliensf (administrator)

There wasn't really a bug here per se. In any case, I no longer have access to a powerpc machine running tiger, to check this any further.
+Notes

-Issue History
Date Modified Username Field Change
2012-05-27 08:03 qu1j0t3 New Issue
2012-05-27 16:17 juliensf Note Added: 0000466
2012-05-29 10:39 qu1j0t3 Note Added: 0000467
2012-06-19 17:09 juliensf Note Added: 0000468
2012-06-19 17:09 juliensf Assigned To => juliensf
2012-06-19 17:09 juliensf Status new => feedback
2014-09-09 18:37 juliensf Note Added: 0000785
2014-09-09 18:37 juliensf Status feedback => closed
2014-09-09 18:37 juliensf Resolution open => no change required
+Issue History