Opened 8 years ago

Closed 8 years ago

#10070 closed Bugs (fixed)

Boost.Coroutine tests mmap return value in a wrong way

Reported by: windoze.net@… Owned by: olli
Milestone: To Be Determined Component: coroutine
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

boost_1_55_0/libs/coroutine/src/detail/standard_stack_allocator_posix.cpp:125 MMAP(2) returns MAP_FAILED on fail, which is (void *)(-1), not NULL or 0. The line should be change to: if (limit == (void *)(-1) /*MAP_FAILED*/) throw std::bad_alloc();

Change History (3)

comment:1 by windoze.net@…, 8 years ago

Component: Nonecoroutine
Owner: set to olli

comment:2 by windoze.net@…, 8 years ago

Version: Boost 1.54.0Boost 1.55.0

comment:3 by olli, 8 years ago

Resolution: fixed
Status: newclosed

already fixed in branch develop (1.56), thx

Last edited 8 years ago by olli (previous) (diff)
Note: See TracTickets for help on using tickets.