------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-21 17:54 ------- I wonder if this is not really a bug in libstdc++. with -fmudflap: ******* mudflap violation 1 (check/write): time=1121968411.144393 ptr=0xbffa2030 size=4 pc=0x226d6d location=`t1.cc:9808 (std::_List_iterator<int>::_List_iterator)' /home/peshtigo/pinskia/linux/lib/libmudflap.so.0(__mf_check+0x3d) [0x226d6d] ./a.out(_ZNSt14_List_iteratorIiEC1EPSt15_List_node_base+0x6f) [0x804b093] ./a.out(_ZNSt4listIiSaIiEE5beginEv+0x83) [0x804b145] Nearby object 1: checked region begins 16B before and ends 13B before mudflap object 0x9ce43b8: name=`t1.cc:10240 (std::list<int, std::allocator<int> >::push_front) <unnamed variable>' bounds=[0xbffa2040,0xbffa2043] size=4 area=stack check=0r/0w liveness=0 alloc time=1121968411.144386 pc=0x22604d Nearby object 2: checked region begins 7B before and ends 4B before mudflap dead object 0x9ce4350: name=`t1.cc:9992 (std::_List_base<int, std::allocator<int> >:: _List_base) <unnamed variable>' bounds=[0xbffa2037,0xbffa2037] size=1 area=stack check=0r/0w liveness=0 alloc time=1121968411.144362 pc=0x22604d dealloc time=1121968411.144370 pc=0x225ba6 number of nearby objects: 2 ******* mudflap violation 2 (check/write): time=1121968411.146855 ptr=0xbffa2030 size=4 pc=0x226d6d location=`t1.cc:9808 (std::_List_iterator<int>::_List_iterator)' /home/peshtigo/pinskia/linux/lib/libmudflap.so.0(__mf_check+0x3d) [0x226d6d] ./a.out(_ZNSt14_List_iteratorIiEC1EPSt15_List_node_base+0x6f) [0x804b093] ./a.out(_ZNSt4listIiSaIiEE5beginEv+0x83) [0x804b145] Nearby object 1: checked region begins 16B before and ends 13B before mudflap object 0x9d2cca8: name=`t1.cc:10240 (std::list<int, std::allocator<int> >::push_front) <unnamed variable>' bounds=[0xbffa2040,0xbffa2043] size=4 area=stack check=0r/0w liveness=0 alloc time=1121968411.146849 pc=0x22604d Nearby object 2: checked region begins 7B before and ends 4B before mudflap dead object 0x9d2cc58: name=`t1.cc:9992 (std::_List_base<int, std::allocator<int> >:: _List_base) <unnamed variable>' bounds=[0xbffa2037,0xbffa2037] size=1 area=stack check=0r/0w liveness=0 alloc time=1121968411.146839 pc=0x22604d dealloc time=1121968411.146845 pc=0x225ba6 number of nearby objects: 2 ******* mudflap violation 3 (check/write): time=1121968411.147476 ptr=0xbffa2090 size=4 pc=0x226d6d location=`t1.cc:9808 (std::_List_iterator<int>::_List_iterator)' /home/peshtigo/pinskia/linux/lib/libmudflap.so.0(__mf_check+0x3d) [0x226d6d] ./a.out(_ZNSt14_List_iteratorIiEC1EPSt15_List_node_base+0x6f) [0x804b093] ./a.out(_ZNSt4listIiSaIiEE5beginEv+0x83) [0x804b145] Nearby object 1: checked region begins 4B before and ends 1B before mudflap object 0x9ce4288: name=`t1.cc:29341 (main) std::_List_iterator<int> it' bounds=[0xbffa2094,0xbffa2097] size=4 area=stack check=0r/0w liveness=0 alloc time=1121968411.144342 pc=0x22604d Nearby object 2: checked region begins 77B after and ends 80B after mudflap dead object 0x9d2cca8: name=`t1.cc:10240 (std::list<int, std::allocator<int> >::push_front) <unnamed variable>' bounds=[0xbffa2040,0xbffa2043] size=4 area=stack check=0r/0w liveness=0 alloc time=1121968411.146849 pc=0x22604d dealloc time=1121968411.147468 pc=0x225ba6 number of nearby objects: 2 ******* mudflap violation 4 (check/write): time=1121968411.148044 ptr=0xbffa2088 size=4 pc=0x226d6d location=`t1.cc:9808 (std::_List_iterator<int>::_List_iterator)' /home/peshtigo/pinskia/linux/lib/libmudflap.so.0(__mf_check+0x3d) [0x226d6d] ./a.out(_ZNSt14_List_iteratorIiEC1EPSt15_List_node_base+0x6f) [0x804b093] ./a.out(_ZNSt4listIiSaIiEE3endEv+0x19) [0x804b0b7] Nearby object 1: checked region begins 12B before and ends 9B before mudflap object 0x9ce4288: name=`t1.cc:29341 (main) std::_List_iterator<int> it' Nearby object 2: checked region begins 16B before and ends 13B before mudflap object 0x9ce4220: name=`t1.cc:29322 (main) std::list<int, std::allocator<int> > my_other_list' bounds=[0xbffa2098,0xbffa209f] size=8 area=stack check=0r/1w liveness=1 alloc time=1121968411.144338 pc=0x22604d Nearby object 3: checked region begins 69B after and ends 72B after mudflap dead object 0x9d2cca8: name=`t1.cc:10240 (std::list<int, std::allocator<int> >::push_front) <unnamed variable>' number of nearby objects: 3 ******* mudflap violation 5 (check/write): time=1121968411.148637 ptr=0xbffa208c size=4 pc=0x226d6d location=`t1.cc:9808 (std::_List_iterator<int>::_List_iterator)' /home/peshtigo/pinskia/linux/lib/libmudflap.so.0(__mf_check+0x3d) [0x226d6d] ./a.out(_ZNSt14_List_iteratorIiEC1EPSt15_List_node_base+0x6f) [0x804b093] ./a.out(_ZNSt4listIiSaIiEE5eraseESt14_List_iteratorIiE+0xd3) [0x804c737] Nearby object 1: checked region begins 8B before and ends 5B before mudflap object 0x9ce4288: name=`t1.cc:29341 (main) std::_List_iterator<int> it' Nearby object 2: checked region begins 12B before and ends 9B before mudflap object 0x9ce4220: name=`t1.cc:29322 (main) std::list<int, std::allocator<int> > my_other_list' Nearby object 3: checked region begins 20B before and ends 17B before mudflap object 0x9ce41b8: name=`t1.cc:29319 (main) std::list<int, std::allocator<int> > my_list' bounds=[0xbffa20a0,0xbffa20a7] size=8 area=stack check=0r/1w liveness=1 alloc time=1121968411.144334 pc=0x22604d Nearby object 4: checked region begins 73B after and ends 76B after mudflap dead object 0x9d2cca8: name=`t1.cc:10240 (std::list<int, std::allocator<int> >::push_front) <unnamed variable>' number of nearby objects: 4 ******* mudflap violation 6 (check/write): time=1121968411.149349 ptr=0xbffa2088 size=4 pc=0x226d6d location=`t1.cc:9808 (std::_List_iterator<int>::_List_iterator)' /home/peshtigo/pinskia/linux/lib/libmudflap.so.0(__mf_check+0x3d) [0x226d6d] ./a.out(_ZNSt14_List_iteratorIiEC1EPSt15_List_node_base+0x6f) [0x804b093] ./a.out(_ZNSt4listIiSaIiEE3endEv+0x19) [0x804b0b7] Nearby object 1: checked region begins 12B before and ends 9B before mudflap object 0x9ce4288: name=`t1.cc:29341 (main) std::_List_iterator<int> it' Nearby object 2: checked region begins 16B before and ends 13B before mudflap object 0x9ce4220: name=`t1.cc:29322 (main) std::list<int, std::allocator<int> > my_other_list' Nearby object 3: checked region begins 45B after and ends 48B after mudflap dead object 0x9d2cd48: name=`t1.cc:10520 (std::list<int, std::allocator<int> >::erase) std:: _List_iterator<int> __position' bounds=[0xbffa2058,0xbffa205b] size=4 area=stack check=0r/0w liveness=0 alloc time=1121968411.148627 pc=0x22604d dealloc time=1121968411.149343 pc=0x225ba6 number of nearby objects: 3 ******* mudflap violation 7 (check/write): time=1121968411.149980 ptr=0xbffa2084 size=4 pc=0x226d6d location=`t1.cc:9808 (std::_List_iterator<int>::_List_iterator)' /home/peshtigo/pinskia/linux/lib/libmudflap.so.0(__mf_check+0x3d) [0x226d6d] ./a.out(_ZNSt14_List_iteratorIiEC1EPSt15_List_node_base+0x6f) [0x804b093] ./a.out(_ZNSt4listIiSaIiEE3endEv+0x19) [0x804b0b7] Nearby object 1: checked region begins 16B before and ends 13B before mudflap object 0x9ce4288: name=`t1.cc:29341 (main) std::_List_iterator<int> it' Nearby object 2: checked region begins 20B before and ends 17B before mudflap object 0x9ce4220: name=`t1.cc:29322 (main) std::list<int, std::allocator<int> > my_other_list' Nearby object 3: checked region begins 41B after and ends 44B after mudflap dead object 0x9d2cd48: name=`t1.cc:10520 (std::list<int, std::allocator<int> >::erase) std:: _List_iterator<int> __position' number of nearby objects: 3 ******* mudflap violation 8 (check/write): time=1121968411.150537 ptr=0xbffa2080 size=4 pc=0x226d6d location=`t1.cc:9808 (std::_List_iterator<int>::_List_iterator)' /home/peshtigo/pinskia/linux/lib/libmudflap.so.0(__mf_check+0x3d) [0x226d6d] ./a.out(_ZNSt14_List_iteratorIiEC1EPSt15_List_node_base+0x6f) [0x804b093] ./a.out(_ZNSt4listIiSaIiEE5beginEv+0x83) [0x804b145] Nearby object 1: checked region begins 20B before and ends 17B before mudflap object 0x9ce4288: name=`t1.cc:29341 (main) std::_List_iterator<int> it' Nearby object 2: checked region begins 37B after and ends 40B after mudflap dead object 0x9d2cd48: name=`t1.cc:10520 (std::list<int, std::allocator<int> >::erase) std:: _List_iterator<int> __position' number of nearby objects: 2
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22591