Bug #60406 X Window System error : BadLength (request too large or Xlib length error)
Submitted: 9 Mar 2011 17:27 Modified: 21 May 2011 20:40
Reporter: Raphaël Gertz Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.2.32 OS:Linux (MageiaLinux)
Assigned to: CPU Architecture:Any

[9 Mar 2011 17:27] Raphaël Gertz
Description:
It seems their is an old issue with X Window System error.

Here it don't trigger with x86 version, but with x86_64 it happen under fr_FR.UTF-8 locale on MageiaLinux, confirmed on mandriva 2010.1 too and other distribution too (seen on internet/forums).

The bug seems to be triggered by some numeric computation depending on LC_NUMERIC and LANG in the workbench startup process that makes it crash.

A workaround seems available with locale :
http://www.dlcube.com/index.php?id=76&tx_ttnews[tt_news]=28&tx_ttnews[backPid]=74&cHash=1c...

It seems to be enough to unset :
LANG
LC_NUMERIC

Then mysql workbench stop crashing.

Without (crash) :
** Message: Gnome keyring daemon seems to not be available. Stored passwords will be lost
once quit
/usr/lib64/python2.6/site-packages/Crypto/Util/randpool.py:40:
RandomPool_DeprecationWarning: This application uses RandomPool, which is BROKEN in older
releases.  See http://www.pycrypto.org/randpool-broken
  RandomPool_DeprecationWarning)
Log levels '0111000'
disabling log level 0
enabling log level 1
enabling log level 2
enabling log level 3
disabling log level 4
disabling log level 5
disabling log level 6
Ready.

The program 'mysql-workbench-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadLength (poly request too large or internal Xlib length erro'.
  (Details: serial 258 error_code 16 request_code 135 minor_code 17)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

With :
** Message: Gnome keyring daemon seems to not be available. Stored passwords will be lost
once quit
/usr/lib64/python2.6/site-packages/Crypto/Util/randpool.py:40:
RandomPool_DeprecationWarning: This application uses RandomPool, which is BROKEN in older
releases.  See http://www.pycrypto.org/randpool-broken
  RandomPool_DeprecationWarning)                                                         
                                                                                         
Log levels '0111000'                                                                     
                                                                                         
disabling log level 0                                                                    
                                                                                         
enabling log level 1                                                                     
                                                                                         
enabling log level 2                                                                     
                                                                                         
enabling log level 3                                                                     
                                                                                         
disabling log level 4                                                                    
                                                                                         
disabling log level 5                                                                    
                                                                                         
disabling log level 6                                                                    
                                                                                         
Ready.                                                                                   
                                                                                         
                          
Plz fix asap.

The problem seems to not trigger on x86 version, but only on x86_64 version here on
Mandriva Linux 64 2010.1 (compiled from source).

How to repeat:
Install a mandriva linux 2010.1
set french locale (fr_FR.UTF-8)
build from source
install
run
it crash

Suggested fix:
Fix the computation somewhere that makes it crash. It is a recurrent problem since a lot of version, that's the first time i find from where it may comes.
[9 Mar 2011 17:32] Raphaël Gertz
It is related to this (unfixed) bug :
http://bugs.mysql.com/bug.php?id=21907
[14 Mar 2011 17:53] Maksym Yehorov
Can you paste a backtrace of the crash?
[21 May 2011 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".