summaryrefslogtreecommitdiff
path: root/sql/stacktrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'sql/stacktrace.c')
-rw-r--r--sql/stacktrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/stacktrace.c b/sql/stacktrace.c
index bef53c71a42..dd7db5548c1 100644
--- a/sql/stacktrace.c
+++ b/sql/stacktrace.c
@@ -123,7 +123,7 @@ terribly wrong...\n");
}
#endif /* __alpha__ */
- if (!stack_bottom)
+ if (!stack_bottom || (gptr) stack_bottom > (gptr) &fp)
{
ulong tmp= min(0x10000,thread_stack);
/* Assume that the stack starts at the previous even 65K */