Skip to content

[BZ-2226] Based_Pointer_Test::mmap_remap_test incorrectly fails if remap'd region overlaps #2226

@jwillemsen

Description

@jwillemsen
Field Value
Bugzilla ID 2226
Reporter James Megquier
Assigned to Steve Williams
Product ACE
Component ACE Tests
Version 5.4.7
Platform / OS x86 / Linux
Priority P3
Severity minor
Status RESOLVED
Resolution FIXED
Created 2005-08-29 19:52:34 -0500
Depends on #2218

Originally posted by James Megquier on 2005-08-29 19:52:34 -0500


In Based_Pointer_Test::mmap_remap_test (around line 305 in the CVS trunk), the
final test checks that the old base address ('oba') has not only been removed
from the Based_Pointer_Repo, but that it also does not fall within the new
mmap'd address range.

However, on this platform at least, the OS has decided to grow the mmap area
downwards, but overlapping the original area. This generates the error "Old
base address not removed after MMAP remap", even though the old base addr is
correctly removed.

Old alloc: 0x1000 @ 0xb7fd3000
New alloc: 0x3000 @ 0xb7fd1000

Both end at 0xb7fd4000; old base address is within the new mapping.

I think the Right Thing(tm) is to remove the test at line 305 of
tests/Based_Pointer_Test.cpp

Metadata

Metadata

Assignees

No one assigned

    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