tags 417992 + upstream stop Hi
On 2007-04-06 Mohammed Sameer wrote: > More details: > in mysql_upgrade.c > it seems that handle_options() is failing thus goto error; gets executed. > > in error: > Line 645 it's trying to free the string using dynstr_free(). The problem > is that the string has not been initialized yet using > init_dynamic_string() in line 482 because handle_options() gets called > before init_dynamic_string() > > We can either move init_dynamic_string() above handle_options() so > dynstr_free() will free a string that has been initialized or adding > cmdline.str = NULL; below DYNAMIC_STRING cmdline; > > Honestly, I don't know how will this affect the execution of mysql_upgrade > but adding cmdline.str = NULL; indeed solved the problem for me. No more > crashes. Could you open a bug report on bugs.mysql.com? If you got so far with debugging it would be nice the patch incorporated into the upstream source. But first check if 5.0.38 which I uploaded yesterday to unstable still crashes on your system and maybe give them a gdb backtrace of the crashing version, too. Mail me the mysql bug number so I can add it to this bug report. bye, -christian-
signature.asc
Description: PGP signature