News for hackers. Stuff that matters.
Re:How to find size of an array in C without sizeof by cperciva on Tuesday December 27, 2016 @02:40AM (#13261834)
It was pretty easy to track down: clang38 was exiting with

    Assertion failed: (Distance > 0 && "The distance must be non-zero"),
    function areStridedAccessesIndependent, file /wrkdirs/usr/ports/devel/
    llvm38/work/llvm-3.8.0.src/lib/Analysis/LoopAccessAnalysis.cpp, line 1004.
Looking at the file it was easy to see what was being asserted, and to see that the type was a 32-bit integer; since I knew I was dealing with huge FFTs, the problem was obvious.

Let this be a lesson: Asserting that impossible things don't happen makes debugging much easier when they do happen!

Re:How to find size of an array in C without sizeof by flamedoge on Wednesday December 28, 2016 @01:04AM (#13268760)
Well good thing it was ReleaseWithAsserts build!