Page 1 of 1

PhidgetNet_enableServerDiscovery crash identified

Posted: Fri Aug 18, 2017 3:33 pm
by RainfrogDan
I reached out to Brian earlier in the week about a sigabrt crash when calling

Code: Select all

PhidgetNet_enableServerDiscovery(PHIDGETSERVER_DEVICEREMOTE)
in Lib22 iOS drivers. The code runs fine in a new project, but crashes in an existing, complex project.

I've done a lot of grep'ing and assembly debugging, and finally found the problem. There appears to be symbol name conflict between lib22 and OpenSSL. Removing OpenSSL allows the Phidget code to function reliably as expected.

Unfortunately, my app requires OpenSSL for In-App-Purchase receipt validation. I've downloaded and recompiled the latest LTS build of OpenSSL 1.0.2l, hoping I could circumvent a symbol conflict if the lib22 drivers use a different version of OpenSSL, but the crash persists.

Patrick, are you using OpenSSL? If so, what version? If not, I feel this may be a sticky situation. Do you have any ideas on how I can get around this? I need to move to Lib22 for the WebService improvements, and I can't give up OpenSSL.

Thanks in advance.

Re: PhidgetNet_enableServerDiscovery crash identified

Posted: Mon Aug 21, 2017 10:06 am
by Patrick
Which symbol is conflicting? We aren't using OpenSSL.