Hi!
On Dec 11, Francesco Riosa wrote:
> Hello, as subject tell we are experiencing a regression 4.1 => 5.0 .
> Basically "mysqldump" crash with "bus error" on ultrasparc processor.
>
> A slightly more in depth research show that */client.c use multiple times
> a suspect cast:
>
> test(*(uint*) arg)
>
> 2953 case MYSQL_OPT_SSL_VERIFY_SERVER_CERT:
> 2954 if (!arg || test(*(uint*) arg))
> 2955 mysql->options.client_flag|= CLIENT_SSL_VERIFY_SERVER_CERT;
>
> the cast to work should be aligned at 4 bytes but it's not, for example
> we got
>
> with #0 0x701acc2c in mysql_options (mysql=0x2df18,
> option=MYSQL_OPT_SSL_VERIFY_SERVER_CERT, arg=0x2deba "")
>
> mod(0x2deba ; 4) == 2
>
> this specific code was last changed to fix BUG#21543 so what I'm asking here
> is suggestion on which direction to try:
>
> a) we can try to patch this but some directives would be apreciated
> b) simply open a bug report (I cannot guarantee a full report with dumps
> and all)
Please always try to report a bug first, and resort to Gentoo specific
patch only if we, for some reason, refuse to fix a problem (which is
extremely unlikely in this particular case :). This way you'll make the
world a better place not only for Gentoo users but also for MySQL
users on other Linux distributions and operating systems.
There's no need for dumps or everything in this case - the information
from above is more that enough to fix a bug.
Regards,
Sergei
--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Sergei Golubchik <serg@stripped>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Senior Software Developer
/_/ /_/\_, /___/\___\_\___/ Kerpen, Germany
<___/ www.mysql.com