From: Jon Olav Hauglid Date: October 19 2010 9:00am Subject: bzr push into mysql-5.1-bugteam branch (jon.hauglid:3534 to 3535) Bug#57274 List-Archive: http://lists.mysql.com/commits/121074 X-Bug: 57274 Message-Id: <201010190900.o9J8UVC3029926@rcsinet15.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 3535 Jon Olav Hauglid 2010-10-19 Bug #57274 SET GLOBAL debug crashes on Solaris in embedded server mode (variables_debug fails) The problem was that "SET GLOBAL debug" could cause a crash on Solaris. The crash happened if the server failed to open the trace file given in the "SET GLOBAL debug" statement. This caused an error message to be printed to stderr containing the process name. However, printing to stderr crashed the server since the pointer to the process name had not been initialized. This patch fixes the problem by initializing the process name properly when doing "SET GLOBAL debug". No test case added as this bug was repeatable with existing test coverage in variables_debug.test. modified: dbug/dbug.c 3534 Tor Didriksen 2010-10-19 Bug#52172 post-push fix: init auto-variable to NULL modified: dbug/dbug.c === modified file 'dbug/dbug.c' --- a/dbug/dbug.c 2010-10-19 07:06:48 +0000 +++ b/dbug/dbug.c 2010-10-19 08:19:57 +0000 @@ -744,6 +744,7 @@ void _db_set_init_(const char *control) CODE_STATE tmp_cs; bzero((uchar*) &tmp_cs, sizeof(tmp_cs)); tmp_cs.stack= &init_settings; + tmp_cs.process= db_process ? db_process : "dbug"; DbugParse(&tmp_cs, control); } No bundle (reason: useless for push emails).