Unsafe "index" function from delayed array

22 views
Skip to first unread message

niko...@gmail.com

unread,
Jun 19, 2014, 7:41:23 PM6/19/14
to haskel...@googlegroups.com
Hello,

I've came across a very nasty bug which has caused segfaults in my code. It appears that when you use "index" on delayed array, it will be unsafe:

ghci> let a = delay $ fromListUnboxed (ix2 16 16) [(1::Int)..16*16]
ghci> a ! (ix2 100 100)
139666186078901
ghci>

This was very unexpected, I've spent half a day trying to find a cause of a segfault. Please, fix this in future versions.

Nikolay.

Ben Lippmeier

unread,
Jun 22, 2014, 2:28:37 AM6/22/14
to niko...@gmail.com, haskel...@googlegroups.com

Thanks for the report. 

This is a duplicate of:

Ben.


--
You received this message because you are subscribed to the Google Groups "Haskell Repa" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-repa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages