Bug #2950 Segmentation Fault at startup
Submitted: 25 Feb 2004 0:43 Modified: 25 Feb 2004 1:43
Reporter: Jens Schanz Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Administrator Severity:S3 (Non-critical)
Version:1.0.1a OS:Linux (SuSE Linux 9.0)
Assigned to: Ulrich Bayer CPU Architecture:Any

[25 Feb 2004 0:43] Jens Schanz
Description:
open("/opt/mysql-administrator/share/mysql-gui/common/progress_indicator.gif", O_RDONLY) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=3744, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40426000
read(6, "GIF89a\202\0\r\0\245#\0hhhwww\177~}\201\201\201\254\253"..., 4096) = 3744
_llseek(6, 0, [0], SEEK_SET)            = 0
read(6, "GIF89a\202\0\r\0\245#\0hhhwww\177~}\201\201\201\254\253"..., 4096) = 3744
brk(0)                                  = 0x8a3c000
brk(0x8a5d000)                          = 0x8a5d000
close(6)                                = 0
munmap(0x40426000, 4096)                = 0
stat64("/home/jens/.mysqlgui", {st_mode=S_IFDIR|0700, st_size=504, ...}) = 0
open("/home/jens/.mysqlgui/mysqlx_user_connections.xml", O_RDONLY) = 6
close(6)                                = 0
stat64("/home/jens/.mysqlgui/mysqlx_user_connections.xml", {st_mode=S_IFREG|0644, st_size=719, ...}) = 0
stat64("/home/jens/.mysqlgui/mysqlx_user_connections.xml", {st_mode=S_IFREG|0644, st_size=719, ...}) = 0
stat64("/home/jens/.mysqlgui/mysqlx_user_connections.xml", {st_mode=S_IFREG|0644, st_size=719, ...}) = 0
open("/home/jens/.mysqlgui/mysqlx_user_connections.xml", O_RDONLY) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=719, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40426000
read(6, "<?xml version=\"1.0\"?>\n<user_conn"..., 16384) = 719
read(6, "", 12288)                      = 0
_llseek(6, 0, [719], SEEK_CUR)          = 0
_llseek(6, 0, [0], SEEK_SET)            = 0
read(6, "<?xml version=\"1.0\"?>\n<user_conn"..., 4096) = 719
read(6, "", 4096)                       = 0
read(6, "", 4096)                       = 0
close(6)                                = 0
munmap(0x40426000, 4096)                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

How to repeat:
define a few connections in the menu. close and start the client again.
you get an error like in old version of mysqlcc. 
if you delete the directory .mysqlgui under your home, everything works fine.
[25 Feb 2004 0:44] Jens Schanz
options file

Attachment: mysqlx_options.xml (text/xml), 476 bytes.

[25 Feb 2004 0:45] Jens Schanz
user file

Attachment: mysqlx_user_connections.xml (text/xml), 719 bytes.

[25 Feb 2004 1:43] Ulrich Bayer
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Hi,

You are right. The xml-files cause this bug when the "Obscure password" option is enabled. Thanks for even submitting the files!
We will probably make a release this week where the bug is gone.