You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I write a parallel sorting program, I found that the following code causes segmentation fault both on my mac and linux.
funcopy a b e d j =
if e < b then ()
elseletval v = Array.sub (Array.sub (a, 0), b)
in Array.update (Array.sub (d, 0), j, v);
copy a (b+1) e d (j+1)
endfunsort a b e =
if e <= b then () elseletval q = Int.quot (b + e, 2)
in sort a b q;
sort a (q+1) e;
copy a b e a b
endval a = Array.array (1, Array.array (1024, 0))
val _ = sort a 01023
I checked out the repository and compiled the compiler as follows:
git clone https://github.com/ManticoreProject/manticore.git
git checkout 757fbcc4d # to make clear which revision I used
autoconf -Iconfig
autoheader -Iconfig
./configure --prefix=$PWD/dest
mkdir -p dest/bin dest/lib
make install
I saved the above code in bug.pml and executed it as follows:
This code is not a parallel program in Manticore. The Array structure is just provided for sequential testing/benchmarking purposes (strictly speaking, it shouldn't even exist, since Manticore does not expose imperative features to the user).
We will take a look into what causes the crash when we get a chance.
When I write a parallel sorting program, I found that the following code causes segmentation fault both on my mac and linux.
I checked out the repository and compiled the compiler as follows:
I saved the above code in bug.pml and executed it as follows:
The text was updated successfully, but these errors were encountered: