This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

OpenCL Mali seg faults on unmap operations

Hi,

I'm working an an Android image processing app which uses OpenCL on Mali GPU.

I have a problem where I get a random seg faults on clEnqueueUnmapMemObject or a following clReleaseMemObject

The program just seg faults and I can't catch any of the OpenCL error codes for these operations anyway.

This bug happens randomly but I noticed it has a preference to happen on a certain image size.

The app works fine with sizes larger than and smaller than that size.

I think it has something to do with how it is distributed in the memory like certain buffer sizes might be close to a memory page edge or something.

And then it's is badly handled there.

Or maybe there are memory drifts and my mapped pointers become invalid after some time or as a result of a memory page change.

I'm not really sure about any of this I'm just throwing out some ideas which I had.

I always map my buffers before processing on the CPU and unmap them before processing on the GPU.

Any insight on my problem will be appreciated.

Parents
  • Hi yakovenko,

    Unfortunately without more detailed steps to reproduce the issue our driver team will not be able to investigate.

    We need at least:

    - A driver revision + platform

    - A sequence of OpenCL calls that will trigger the error ( e.g create a buffer of size X, map size Y, unmap, enqueue kernel, repeat ~ Z times and it should fail)

    - A rough estimate of how often this triggers the bug: every time, 1/10, 1/100, etc...

Reply
  • Hi yakovenko,

    Unfortunately without more detailed steps to reproduce the issue our driver team will not be able to investigate.

    We need at least:

    - A driver revision + platform

    - A sequence of OpenCL calls that will trigger the error ( e.g create a buffer of size X, map size Y, unmap, enqueue kernel, repeat ~ Z times and it should fail)

    - A rough estimate of how often this triggers the bug: every time, 1/10, 1/100, etc...

Children