Skip to content

Assertion error in lmm_add_free #1

@lxylxy123456

Description

@lxylxy123456

I recently encountered assertion error in the following line in lmm_add_free():

assert(max >= min);

This error happens when the caller calls lmm_add_free(lmm, (void *)0x2345, 2). Suppose alignment is 8. Then:

  • On line 23 min = 0x2345
  • On line 24 max = 0x2347
  • On line 31 min = 0x2348
  • On line 32 max = 0x2340
  • On line 33 assertion error is triggered, since max >= min is false (0x2340 >= 0x2348 is false)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions