Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-153

Non-blocking API missing on non-x86 platforms

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Labels:
      None

      Description

      The non-blocking API is missing on non-x86 platforms. This is seen by error
      return from mysql_init(MYSQL_OPT_NONBLOCK, 0), and from null-pointer
      segfault on all subsequent non-blocking calls.

      The problem is missing check for ucontext in the CMake files, and missing
      code to propagate the check to the my_context.h source file. ucontext is
      used as a fallback for platforms where no hand-crafted assembler version is
      available, such as ARM. Without ucontext fallback, the non-blocking API
      becomes disabled.

      See attached patch for a fix to add the proper check. Patch tested against
      latest git on ARM.

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            knielsen Kristian Nielsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: