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

Non-blocking API missing on non-x86 platforms

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • N/A
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.