Bug#345612: mysql-admin: invalid pointer crash on server parameters

2006-01-02 Thread Daniel van Eeden
Package: mysql-admin
Version: 1.1.5-1
Severity: important

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

1. Start mysql-admin
2. Login
3. Select Startup Parameters
4. Click Cancel

Then mysql-admin crashes with the following info:
*** glibc detected *** free(): invalid pointer: 0x00b37a95 ***
Aborted

Please note that i'm using amd64 and that mysql-admin and
mysql-query-browser both segfault on some occasions. (Bugs: 317371,
345156, 316285) 

- -- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.9-9-amd64-k8
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages mysql-admin depends on:
ii  libatk1.0-0  1.10.3-1The ATK accessibility toolkit
ii  libc62.3.5-10GNU C Library: Shared libraries an
ii  libcairo21.0.2-3 The Cairo 2D vector graphics libra
ii  libfontconfig1   2.3.2-1.1   generic font configuration library
ii  libgcc1  1:4.0.2-5   GCC support library
ii  libglade2-0  1:2.5.1-2   library to load .glade files at ru
ii  libglib2.0-0 2.8.4-2 The GLib library of C routines
ii  libglibmm-2.4-1c2a   2.8.2-2 C++ wrapper for the GLib toolkit (
ii  libgtk2.0-0  2.8.9-2 The GTK+ graphical user interface 
ii  libgtkmm-2.4-1c2a1:2.6.5-1   C++ wrappers for GTK+ 2.4 (shared 
ii  libmysqlclient15 5.0.16-1mysql database client library
ii  libpango1.0-01.10.1-2Layout and rendering of internatio
ii  libpcre3 6.4-1.1 Perl 5 Compatible Regular Expressi
ii  libsigc++-2.0-0c2a   2.0.16-2type-safe Signal Framework for C++
ii  libstdc++6   4.0.2-5 The GNU Standard C++ Library v3
ii  libx11-6 6.8.2.dfsg.1-11 X Window System protocol client li
ii  libxcursor1  1.1.3-1 X cursor management library
ii  libxext6 6.8.2.dfsg.1-11 X Window System miscellaneous exte
ii  libxi6   6.8.2.dfsg.1-11 X Window System Input extension li
ii  libxinerama1 6.8.2.dfsg.1-11 X Window System multi-head display
ii  libxml2  2.6.22-2GNOME XML library
ii  libxrandr2   6.8.2.dfsg.1-11 X Window System Resize, Rotate and
ii  libxrender1  1:0.9.0.2-1 X Rendering Extension client libra
ii  mysql-admin-common   1.1.5-1 Architecture independent files for
ii  zlib1g   1:1.2.3-9   compression library - runtime

Versions of packages mysql-admin recommends:
ii  mysql-query-browser   1.1.17-4   Official GUI tool to query MySQL d

- -- no debconf information

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDuOCPSTv4ppQVDnwRAoAfAJ92ObOAm6le/hiedO4MOANnCCawDgCfVv3z
3dNnP+snAMrJK0sFxE0toZo=
=/Ga0
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#345612: mysql-admin: invalid pointer crash on server parameters

2006-01-02 Thread Adam Majer
merge 345612 317371

retitle 345612 [AMD64] mysql-admin: invalid pointer crash on server parameters

retitle 317371 [AMD64] mysql-admin: The Modules User Administration and 
Server Connections and others cause segfault

thanks


Daniel van Eeden wrote:

Package: mysql-admin
Version: 1.1.5-1
Severity: important


 1. Start mysql-admin
 2. Login
 3. Select Startup Parameters
 4. Click Cancel

 Then mysql-admin crashes with the following info:
 *** glibc detected *** free(): invalid pointer: 0x00b37a95 ***
 Aborted


This is most definatelly the Amd64 specific bug. You see, the pointer
is 0x00b37a95 while it should be more like, 0x00b37a95,
where X is some hex number.

What happens is probably,

void *p1; // - original pointer
void *p2 = (void*)(int)p1;

ie. they cast it to int and then back to a pointer. Works on all 32-bit
platforms :) Fails on all 64-bit ones.

- Adam

PS. Forwarded upstream to the same bug.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]