0

I am not sure if anyone has encounter this when trying to integrate google cloud speech in their ios projects. I am getting a EXC_BAD_ACCESS on EC_GROUP_get_curve_name in BoringSSL.

In my project, in order to get it to compile, I had to redefine symbols in Other C flags since I had another library using openSSL that is being used as well in another library.

Here is the call stack for the crash whenever I do a gRPC call: enter image description here

Any help will be appreciated.

UPDATE: After digging a bit deeper, I noticed that when it tries to retrieves the EC_GROUP in ec_key.c, the key value is completely different than what it's been passed in from SSL_CTX_set_temp_ecdh (ssl_lib.c). The reference to group is no longer there when it tries to retrieve the group.

Frank
  • 3,073
  • 5
  • 40
  • 67
  • Could you set watchpoint to find out when and why the key was modified? – Muxi Nov 29 '17 at 22:46
  • Also there are some sample projects of Google speech API in https://github.com/GoogleCloudPlatform/ios-docs-samples. Maybe that would be helpful. – Muxi Nov 29 '17 at 22:49
  • my integration is based off that those samples. The only difference is that in my project I have another library that is using openSSL that's causing problems for me. – Frank Nov 30 '17 at 21:41
  • I got this from boringssl team that a crash is expected when linking boringssl and openssl into the same binary and using objects of each other. They seem to have a quite involved way to make this work. You might want to post this question on their mailing list. – Muxi Dec 06 '17 at 00:06
  • manage to resolve this, we had to build a dynamic embedded framwork just for ios and expose the headers we needed in there. not an easy task to do. – Frank Dec 20 '17 at 20:16

0 Answers0