#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);
}
}
| Thread |
|---|
| • bzr commit into mysql-5.1-telco-6.2 branch (msvensson:2639) Bug#38609 | Magnus Svensson | 7 Aug |