Bug #14925 Segmentation fault
Submitted: 14 Nov 2005 14:59 Modified: 7 Dec 2005 3:56
Reporter: Cesar Salinas Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Administrator Severity:S3 (Non-critical)
Version:1.1.4-1 OS:Linux (Mandriva 2006/Suse 10)
Assigned to: CPU Architecture:Any

[14 Nov 2005 14:59] Cesar Salinas
Description:
mysql-administrator terminates when it tries to connect.
Starting mysql-administrator from a commandline I get a "line 18 : 7683 
Segmentation fault       $PRG-bin".

I've MySql 4.1.12 installed. (distro's inside)
When I installed MySql-administrator I had to install the following packages to
resolve the dependencies errors:
-glibmm24-2.8.0-2.i586.rpm
-gtkmm24-2.8.0-2.i586.rpm
-libsigc++2-2.0.16-3.i586.rpm

How to repeat:

It's consistent
[19 Nov 2005 13:09] MySQL Verification Team
miguel@hegel:~> mysql-administrator
/usr/bin/mysql-administrator: line 18: 29265 Segmentation fault      $PRG-bin
[20 Nov 2005 15:51] Thomas Pihl
/usr/bin/mysql-administrator: line 18:  3114 Segmentation fault      $PRG-bin

Same thing with Fedora Core 4 all updated according to the lovely yum.

/T
[21 Nov 2005 7:32] Ted Huntington
I am getting the same thing consistently in Mandriva 2006 0.5:
/usr/bin/mysql-administrator: line 18:  5028 Segmentation fault      (core dumped) $PRG-bin
when I try to connect using 
localhost, root (no password)

I wish Mandriva would bundle the administrator and query-browser, and that the mysql developers would test more with RH and MDK default PC distributions.

thanks
Ted
[1 Dec 2005 16:10] Cesar Cesar
I have exactly the same problem on Fedora Core 4 
I installed de tar.gz an i need to acomplish a lot of dependencies due to the gtk , glib2 libraries and the directory destination that no meet the requirements than Gnome needs that is i.e. /usr/local/lib/pkgconfig directory it's diferent than /usr/lib/pkgconfig that is used by fedora.

The result was: when you compile the mysql-administrator source for mysql-administrator-bin 
then appear a lot of problem related with libraries:

/usr/local/lib/libgtk-x11-2.0.so: undefined reference to `g_file_set_contents'
/usr/local/lib/libpangocairo-1.0.so: undefined reference to `pango_font_get_font_map'
/usr/local/lib/libgtk-x11-2.0.so: undefined reference to `g_utf8_collate_key_for_filename'
/usr/local/lib/libgtk-x11-2.0.so: undefined reference to `g_get_host_name'
/usr/local/lib/libgtk-x11-2.0.so: undefined reference to `g_mapped_file_free'
/usr/local/lib/libgtk-x11-2.0.so: undefined reference to `g_mapped_file_new'
/usr/local/lib/libgtk-x11-2.0.so: undefined reference to `g_mapped_file_get_contents'

I run than binary from desktop shortcut as shell command line and the difference it's the second way say the well known message error: 
            /usr/bin/mysql-administrator: line 18:  1407 Segmentation Fault  $PRG-bin

the last problem it's when you try to erase the rpm's appear registered as:
mysql-administrator-1.1.4-1.%{targos}
mysql-query-browser-1.1.17-1.%{targos}

the rpm's name it's no accepted by the rpm -e command and says:
shell> rpm -e mysql-administrator-1.1.4-1.%{targos}
error: ^1\.%{targos}$: regcomp failed: Invalid Contents of \{\} 
error: package mysql-administrator-1.1.4-1.%{targos} is not installed

it's due to a mistake when the rpmbuild was performed and the var %{_target_os} becomes %{targos} after build the rpm
Values from source: %_target_platform%{_target_cpu}-%{_vendor}-%{_target_os}
With mysql-query-browser happens the same.

Some people results the problems with a non-misterous random solution??
Running with :
Linux Host 2.6.12-1.1447_FC4 i686 i386 GNU/Linux
mysqlclient10-3.23.58-6
mysql-devel-4.1.15-1.FC4.1
mysql-4.1.15-1.FC4.1
mysql-server-4.1.15-1.FC4.1

Thank you
César
[7 Dec 2005 3:56] Alfredo Kojima
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