Bug #23832 MySQL Query Browser crash with "double free" or "memory corruption" errors
Submitted: 1 Nov 2006 10:59 Modified: 3 Dec 2006 8:42
Reporter: Dmitry Agafonov Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S2 (Serious)
Version:1.2.3beta (from mysql-gui-tools-5.0r4) OS:Linux (Linux (Fedora Core 3 based))
Assigned to: CPU Architecture:Any
Tags: crash, memory corruption, query browser

[1 Nov 2006 10:59] Dmitry Agafonov
Description:
I'm trying to use Query Browser 2nd or 3rd time with newer version again.
Situation not changed since last year... often crashes with no visible reason.

ASPLinux 10 (FC3 based)
mysql-gui-tools-5.0r4 installed

I'm trying to edit query, execute 2-3 times and 4th execution gives a crash.

More crashes while just editing a long query.

How to repeat:
1. Install FC3, MySQL client, (server if no other available) & libs from, say, 5.0.x release

2. Install mysql-qui-tools-5.0r4

4. Run local Mysql server, if no other, run Query Browser (F11 - expanded query area)

5. Connect to batabase and perform some selects, inserts, edit long query, use history switch schematas, etc.

I expect a crash sometimes on step 5.

Suggested fix:
Not known...
[1 Nov 2006 11:02] Dmitry Agafonov
gdb output from execute query crash

Attachment: execute-crash.txt (text/plain), 3.18 KiB.

[1 Nov 2006 11:02] Dmitry Agafonov
gdb output from edit query crash

Attachment: edit-crash.txt (text/plain), 5.83 KiB.

[1 Nov 2006 11:04] Dmitry Agafonov
Refine OS for searchers
[21 Nov 2006 15:20] Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, from GUI Tools 5.0r5, and inform about the results.
[22 Nov 2006 6:38] Dmitry Agafonov
Nice to see activity!
r5 installed, investigating...
[22 Nov 2006 8:25] Dmitry Agafonov
Still have minor (but important) problems in field editor.

I'm using cp1251 encoding for text fields on 5.0.22 server and
cp1251 default_charset on 4.0.20-standard server.

* Editing or viewing text fields in pop-up editor shows following errors on both servers:

-----------------
(mysql-query-browser-bin:5104): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(mysql-query-browser-bin:5104): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(mysql-query-browser-bin:5104): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(mysql-query-browser-bin:5104): Gtk-CRITICAL **: gtk_tree_view_unref_tree_helper: assertion `node != NULL' failed
--------------

* Working with 5.0 server seems to behave better, but in 4.0 cyrillic strings are get truncated in pop-up viewer and editor but not in inline field view...

* On both servers "Binary" view shows "?" signs sometimes instead cyrillic letters and sometimes these letters are shown correctly. STDERR hsows lot of lines:

--------------
(mysql-query-browser-bin:5104): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
--------------
[22 Nov 2006 8:27] Dmitry Agafonov
$ rpm -qa|grep pango
pango-1.8.1-0.10.0.1asp
pango-devel-1.8.1-0.10.0.1asp
[25 Nov 2006 7:21] Valeriy Kravchuk
Dmitry,

Do you have crash with QB version from GUI Tools v5.0r5? If no, this bug is somehow already fixed. Please, describe all your problems with character sets, cyrillic etc in a separate report(s).
[27 Nov 2006 6:49] Dmitry Agafonov
It seems no crash can be reproduced with the same conditions.
I think this bug can be closed, thanks!
[3 Dec 2006 8:42] Valeriy Kravchuk
This bug is somehow fixed in latest versions.