[CONC-153] Non-blocking API missing on non-x86 platforms Created: 2016-01-21  Updated: 2016-09-24  Resolved: 2016-09-24

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Kristian Nielsen Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None

Attachments: File conc-missing-ucontext-fallback.patch    

 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.



 Comments   
Comment by Kristian Nielsen [ 2016-09-24 ]

Looks like this was fixed some time ago in this commit:

commit f0215ab09159bd73bb482c0f59210e53bc6669d3
Author: Georg Richter <georg@mariadb.com>
Date:   Fri Jan 22 20:00:40 2016 +0100
 
    Added GSSAPI authentication plugin

Generated at Thu Feb 08 03:03:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.