]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix for bug 79355: fix up bogus assertion that was failing when
authorNicholas Nethercote <n.nethercote@gmail.com>
Tue, 27 Apr 2004 09:51:51 +0000 (09:51 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Tue, 27 Apr 2004 09:51:51 +0000 (09:51 +0000)
stack_snapshot() returned 0xffffffff as one of its eip values.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2390

massif/ms_main.c

index a302e9802f93e950b1a9b9b2bc96d9fa3572c93f..584ea3b3a389a57af88e9cf4bcb7ce782650efd1 100644 (file)
@@ -390,7 +390,9 @@ static XPt* new_XPt(Addr eip, XPt* parent, Bool is_bottom)
    xpt->spacetime2   = 0;
 
    xpt->parent       = parent;
-   sk_assert(parent == NULL || 0xffffffff != parent->eip);
+
+   // Check parent is not a bottom-XPt
+   sk_assert(parent == NULL || 0 != parent->max_children);
 
    xpt->n_children   = 0;