Re: [Tecomp-user] [Fwd: Re: Tecomp-user Digest, Vol 9, Issue 1]
Status: Beta
Brought to you by:
helmut_brandl
From: Helmut B. <hel...@gm...> - 2009-11-26 02:41:07
|
Thanks for executing the test. So we have definitely a bug with alignment in seq_arr_intern_t which causes fatal errors on a SPARC machine and not on some other machines. I fixed the bug in the file cal/src/container/seq_arr_intern.h. Please find attached the corrected file. To apply the fix just copy the file to its proper place and issue make tecomp # or make atecomp from the tecomp directory. Regards Helmut Wolfgang Jansen wrote: >> > Well this was easily done. I obtained: > 1) should_crash_on_sparc.c: > sizeof(int) = 4, sizeof(long long) = 8 > array = 20a18, array+1 = 20a1c > Bus error > > 2) test_alignment.c: > sizeof(values_t) = 12 > sizeof(aligned_t) = 16 > (char*)(array+1) - (char*)array = 16 > > 3) test_sequence_arrayed.cpp: > test_seq_arr_intern 0 test(s) executed > gmake: *** [exec] Bus Error > > So, the programs failed as you expected. > > WJ > |