Bug 506592 - Assert in massif with --stacks=yes
Summary: Assert in massif with --stacks=yes
Status: RESOLVED DUPLICATE of bug 503501
Alias: None
Product: valgrind
Classification: Developer tools
Component: massif (other bugs)
Version First Reported In: 3.25 GIT
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Paul Floyd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-04 16:22 UTC by Paul Floyd
Modified: 2025-07-08 08:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Floyd 2025-07-04 16:22:29 UTC
At work I'm getting an assert here:

static void update_stack_stats(SSizeT stack_szB_delta)
{
   if (stack_szB_delta < 0) tl_assert(stacks_szB >= -stack_szB_delta);
   stacks_szB += stack_szB_delta;

   update_alloc_stats(stack_szB_delta);
}

I think that means that is asserting that the stack size does not go negative.

I'm debugging it in gdb to try to see where what is causing it in the guest.
Comment 1 Paul Floyd 2025-07-08 04:19:44 UTC
I tried with asan, no error.
Comment 2 Paul Floyd 2025-07-08 08:03:40 UTC

*** This bug has been marked as a duplicate of bug 503501 ***