Results 1 to 3 of 3

Thread: clBuildProgram crashes

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    26

    clBuildProgram crashes

    99 err = clBuildProgram(clProgram[0], 0, NULL, NULL, NULL, NULL);
    (gdb)

    Program received signal EXC_BAD_ACCESS, Could not access memory.
    Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000028
    0x0000000111af5bac in clhFenceEnqueue ()

    This kernel causes the above message:
    Code :
    for( ... )
    {
      // Do work
    }

    This kernel does not
    Code :
    for(...)
    {
      // Do work
      break;
    }

    Why would a break statement (lack of) cause the build to segfault?

  2. #2
    Junior Member
    Join Date
    Apr 2010
    Posts
    26

    Re: clBuildProgram crashes

    Good 'ol "make a backup copy and start deleting" debugging...


    It looks like I have an issue with:

    Code :
    for (...)
    {
      if ( ... )
      {
        break;
      }
     
      if ( ... )
      {
        break;
      }
    }

    but not
    Code :
    for (...)
    {
      if ( ... )
      {
        break;
      }
     
      if ( ... )
      {
     
      }
    }

    Does this look like a parsing bug in Apple's implementation or am I abusing nested breaks illegally?

  3. #3
    Senior Member
    Join Date
    Sep 2002
    Location
    Santa Clara
    Posts
    105

    Re: clBuildProgram crashes

    If you are running into this problem on Mac OS X 10.6, can you file a bug with appropriate test case that shows this problem.

Similar Threads

  1. clBuildProgram crashes in Intel platform
    By ffelagund in forum OpenCL
    Replies: 2
    Last Post: 03-21-2012, 04:44 AM
  2. clBuildProgram crashes with varying kernel args
    By poonaatsoc in forum OpenCL
    Replies: 2
    Last Post: 12-24-2009, 05:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •