Limit the number of stack frames we print. Infinite recursions or, even worse,
cyclic stack frames would be seriously annoying. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23712 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
34a95c6d57
commit
72f7b29018
@ -3719,7 +3719,9 @@ vm_page_fault(addr_t address, addr_t faultAddress, bool isWrite, bool isUser,
|
||||
#endif
|
||||
|
||||
dprintf("stack trace:\n");
|
||||
while (status == B_OK && frame.return_address != NULL) {
|
||||
int32 maxFrames = 50;
|
||||
while (status == B_OK && --maxFrames >= 0
|
||||
&& frame.return_address != NULL) {
|
||||
dprintf(" %p", frame.return_address);
|
||||
area = vm_area_lookup(addressSpace,
|
||||
(addr_t)frame.return_address);
|
||||
|
Loading…
Reference in New Issue
Block a user