From: Date: August 7 2008 2:00pm Subject: bzr commit into mysql-5.1-telco-6.2 branch (msvensson:2639) Bug#38609 List-Archive: http://lists.mysql.com/commits/51091 X-Bug: 38609 Message-Id: <20080807120057.AB06B30E85A@pilot> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit #At file:///home/msvensson/mysql/6.2/ 2639 Magnus Svensson 2008-08-07 Bug#38609 Segfault in Logger::Log causes ndbd to hang indefinately - Part 1, fix the cause modified: storage/ndb/src/kernel/blocks/suma/Suma.cpp per-file messages: storage/ndb/src/kernel/blocks/suma/Suma.cpp Using %d to print a 64 bit value causes the subsequent %s format string to fool vsnprintf into using the last 32 bits of the 64 bit value as the string pointer. === modified file 'storage/ndb/src/kernel/blocks/suma/Suma.cpp' --- a/storage/ndb/src/kernel/blocks/suma/Suma.cpp 2008-06-17 08:49:39 +0000 +++ b/storage/ndb/src/kernel/blocks/suma/Suma.cpp 2008-08-07 11:59:14 +0000 @@ -3823,7 +3823,7 @@ Suma::execSUB_GCP_COMPLETE_REP(Signal* s { char buf[100]; c_subscriber_nodes.getText(buf); - g_eventLogger->error("c_gcp_list.seize() failed: gci: %d nodes: %s", + g_eventLogger->error("c_gcp_list.seize() failed: gci: %llu nodes: %s", gci, buf); } }