#At file:///home/jh234568/sandbox/mysql-5.5-runtime/ based on revid:jon.hauglid@stripped
3156 Jon Olav Hauglid 2010-10-06
Bug #57274 SET GLOBAL debug crashes on Solaris in embedded server mode
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 file 'dbug/dbug.c'
--- a/dbug/dbug.c 2010-10-01 20:12:27 +0000
+++ b/dbug/dbug.c 2010-10-06 14:40:13 +0000
@@ -905,6 +905,7 @@ void _db_set_init_(const char *control)
bzero((uchar*) &tmp_cs, sizeof(tmp_cs));
+ tmp_cs.process= db_process ? db_process : "dbug";
Attachment: [text/bzr-bundle] email@example.com
|• bzr commit into mysql-5.5-runtime branch (jon.hauglid:3156) Bug#57274||Jon Olav Hauglid||6 Oct|