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: 0x0000000000b37a95 ***
> Aborted


This is most definatelly the "Amd64 specific bug". You see, the pointer
is 0x0000000000b37a95 while it should be more like, 0xXXXXXXXX00b37a95,
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]

Reply via email to