[MacRuby-devel] Concurrent SSL requests -> segfault

Watson watson1978 at gmail.com
Tue Apr 12 16:14:53 PDT 2011


Hi,

I committed a patch as
https://github.com/MacRuby/MacRuby/commit/65fee047a678ae8be9124176307969cbb1d57e6d

Thank you for your report! :)


Thanks

2011/4/9 Watson <watson1978 at gmail.com>:
> Hi, everyone
>
> I think that we should implement callback functions for
> CRYPTO_set_locking_callback() and CRYPTO_set_id_callback() in
> ext/openssl.
>
> see http://www.openssl.org/support/faq.html#PROG1
>> Multi-threaded applications must provide two callback functions to OpenSSL by calling CRYPTO_set_locking_callback() and CRYPTO_set_id_callback(), for all versions of OpenSSL up to and including 0.9.8[abc...].
>
> I wrote a patch : https://gist.github.com/911139
> I seem to works well :-)
>
>
> Thanks.
>
> 2011/4/6 James Chen <ashchan at gmail.com>:
>> I also had this issue when implementing https wrapped in NSOperation for
>> Gmail Notifr: https://gist.github.com/791984
>> Regards,
>> James Chen
>> ashchan.com | @ashchan
>>
>>
>> On Wed, Apr 6, 2011 at 5:43 AM, Andre Lewis <andre.lewis at gmail.com> wrote:
>>>
>>> Hm. trying something similar within Xcode gives the
>>> following: https://gist.github.com/904634
>>> Looks like there's a hardcoded path to /Users/lrz/src/macruby-0.10
>>> somewhere.
>>>
>>> On Tue, Apr 5, 2011 at 12:37 PM, Andre Lewis <andre.lewis at gmail.com>
>>> wrote:
>>>>
>>>> Think I found a bug with Net:HTTP on MacRuby 0.10. Code is
>>>> here: https://gist.github.com/904320. In a nutshell:
>>>> * Multiple, concurrent SSL http requests generate a segfault
>>>> * Multiple, concurrent non-SSL http requests are OK
>>>> * Multiple, sequential SSL http requests are OK
>>>> All the scenarios run fine on 1.9.2. Should I file a bug on trac?
>>>> Andre
>>>
>>>
>>>
>>> --
>>> Scout Web Monitoring and Reporting ~ http://scoutapp.com
>>> blog: http://blog.scoutapp.com
>>>
>>> _______________________________________________
>>> MacRuby-devel mailing list
>>> MacRuby-devel at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>
>>
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>>
>


More information about the MacRuby-devel mailing list