Permalink
Browse files

fix endless loop in thread_backtrace.cpp

  • Loading branch information...
jk3064 committed Apr 3, 2012
1 parent 490cf9d commit 3134daaf1e33b0a775ed966a2704040d10be34b9
Showing with 1 addition and 1 deletion.
  1. +1 −1 rts/System/Platform/Linux/thread_backtrace.cpp
@@ -76,7 +76,7 @@ static void internal_pthread_backtrace(pthread_t thread, void** buffer, size_t m
uint8_t* frame = stack_buffer + offset;
frame = TranslateStackAddrToBufferAddr(frame, stackbot, stack_buffer);
uint8_t* last_frame = frame;
while (INSTACK(frame) && (frame >= last_frame)) {
while (INSTACK(frame) && (frame > last_frame)) {
last_frame = frame;
frame = TranslateStackAddrToBufferAddr(frame, stackbot, stack_buffer);
stack_depth++;

0 comments on commit 3134daa

Please sign in to comment.