Blink segfault when initializing gcry_control

Bug #1258744 reported by Christian Jensen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-gnutls (Ubuntu)
New
Undecided
Unassigned

Bug Description

It appears that there has been a long standing bug that was causing Blink to segfault and a patch was made.

It now seems that that patch has been removed on Precise.

I have just installed a fresh Precise x64, updated everything and installed Blink - bang segfault

So I downloaded the source and debugged it to the same conclusion as the previous people - downgrading libgcrypt11 worked but then I went a little further.

I changed

gcry_control(GCRYCTL_SET_THREAD_CBS, c_void_p(gcrypt_thread_callbacks_ptr))
    if system == 'cygwin':

to:

gcry_control(GCRYCTL_SET_THREAD_CBS, c_void_p(gcrypt_thread_callbacks_ptr))
    libgnutls.gcry_check_version('1.2.4') # GNUTLS_MIN_LIBGCRYPT_VERSION
    if system == 'cygwin':

and Blink works again - apparently that line has been removed in 1.2.4

Simply adding the line:

libgnutls.gcry_check_version('1.2.4')

to the file

/usr/share/pyshared/gnutls/library/__init__.py

made it all work again.

Was that removed recently?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.