id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 8724,bad_alloc thrown in empty list copy constructor,gleonid@…,Ion Gaztañaga,"I am running RHEL 5.[[BR]] Compiler - gcc 4.1.2[[BR]] following code fragment compiled against boost 1.53.0 throws bad_alloc exception at run time.[[BR]] Essentially I have an empty ::boost::container::list object allocated in shared memory (segment_manager from boost interprocess). attempt to copy such empty list causes bad_alloc exception {{{ #include #include namespace { typedef ::boost::interprocess::allocator int_allocator; typedef ::boost::container::list int_list; char g_memory_buf[1024]; } int main() { ::boost::interprocess::managed_external_buffer segment(::boost::interprocess::create_only, g_memory_buf, sizeof(g_memory_buf)); // 1. construct empty list int_list *l1 = segment.construct(""1"")(int_allocator(segment.get_segment_manager())); // 2. use copy constructor segment.construct(""2"")(*l1); return 0; } }}} when same code is compiled against boost 1.51.0 - no exceptions. I wonder if this behavioral change was intentional. ",Bugs,closed,To Be Determined,interprocess,Boost 1.53.0,Problem,fixed,bad_alloc interprocess container,