------- Comment #32 from hjl dot tools at gmail dot com 2008-12-13 15:55 ------- (In reply to comment #31) > Created an attachment (id=16902) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16902&action=view) [edit] > A patch to add -D_GLIBCXX_DEBUG to dg-options > > I am testing this patch to see if it can trigger the bug. >
I got many failures: FAIL: ext/pb_ds/regression/hash_data_map_rand.cc execution test FAIL: ext/pb_ds/regression/hash_no_data_map_rand.cc execution test FAIL: ext/pb_ds/regression/list_update_no_data_map_rand.cc execution test FAIL: ext/pb_ds/regression/priority_queue_rand.cc execution test FAIL: ext/pb_ds/regression/tree_data_map_rand.cc execution test FAIL: ext/pb_ds/regression/tree_no_data_map_rand.cc execution test FAIL: ext/pb_ds/regression/trie_data_map_rand.cc execution test FAIL: ext/pb_ds/regression/trie_no_data_map_rand.cc execution test They look like: /export/build/gnu/gcc/build-i686-linux/i686-pc-linux-gnu/libstdc++-v3/include/ext/pb_ds/detail/resize_policy/hash_load_check_resize_trigger_imp.hpp:181: void __gnu_pbds::hash_load_check_resize_trigger<External_Load_Access, Size_Type>::notify_externally_resized(Size_Type) [with bool External_Load_Access = true, Size_Type = unsigned int]: Assertion 'new_shrink_size > m_next_shrink_size' failed. FAIL: ext/pb_ds/regression/hash_data_map_rand.cc execution test extra_tool_flags are: -DPB_DS_REGRESSION -D_GLIBCXX_DEBUG /export/build/gnu/gcc/build-i686-linux/i686-pc-linux-gnu/libstdc++-v3/include/ext/pb_ds/detail/list_update_map_/erase_fn_imps.hpp:125: void __gnu_pbds::detail::lu_map_no_data_<Key, Mapped, Eq_Fn, Allocator, Update_Policy>::erase_next(typename Allocator::rebind<__gnu_pbds::detail::lu_map_no_data_<Key, Mapped, Eq_Fn, Allocator, Update_Policy>::entry>::other::pointer) [with Key = __gnu_pbds::test::basic_type, Mapped = __gnu_pbds::null_mapped_type, Eq_Fn = std::equal_to<__gnu_pbds::test::basic_type>, Allocator = __gnu_cxx::throw_allocator<__gnu_pbds::test::basic_type>, Update_Policy = __gnu_pbds::test::move_to_front_lu_policy_t_]: Assertion 'p_l != m_p_l' failed. FAIL: ext/pb_ds/regression/list_update_no_data_map_rand.cc execution test extra_tool_flags are: -DPB_DS_REGRESSION -D_GLIBCXX_DEBUG /export/build/gnu/gcc/build-i686-linux/i686-pc-linux-gnu/libstdc++-v3/include/bits/stl_heap.h:357: error: elements in iterator range [__first, __last) do not form a heap with respect to the predicate __comp. Objects involved in the operation: iterator "__first" @ 0x0xbfc2a270 { type = PPN10__gnu_pbds4test10basic_typeE; } iterator "__last" @ 0x0xbfc2a274 { type = PPN10__gnu_pbds4test10basic_typeE; } FAIL: ext/pb_ds/regression/priority_queue_rand.cc execution test extra_tool_flags are: -include bits/stdc++.h /export/build/gnu/gcc/build-i686-linux/i686-pc-linux-gnu/libstdc++-v3/include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp:213: typename __gnu_pbds::detail::pat_trie_data_<Key, Mapped, Node_And_It_Traits, Allocator>::node_pointer __gnu_pbds::detail::pat_trie_data_<Key, Mapped, Node_And_It_Traits, Allocator>::recursive_copy_node(typename Allocator::rebind<typename Node_And_It_Traits::node>::other::const_pointer) [with Key = __gnu_pbds::test::basic_type, Mapped = __gnu_pbds::test::basic_type, Node_And_It_Traits = __gnu_pbds::detail::trie_traits<__gnu_pbds::test::basic_type, __gnu_pbds::test::basic_type, __gnu_pbds::string_trie_e_access_traits<__gnu_pbds::test::basic_type, 'a', 'd', false, __gnu_cxx::throw_allocator<__gnu_pbds::test::basic_type> >, __gnu_pbds::null_trie_node_update, __gnu_pbds::pat_trie_tag, __gnu_cxx::throw_allocator<__gnu_pbds::test::basic_type> >, Allocator = __gnu_cxx::throw_allocator<__gnu_pbds::test::basic_type>]: Assertion 'child_i > 1' failed. FAIL: ext/pb_ds/regression/trie_data_map_rand.cc execution test extra_tool_flags are: -DPB_DS_REGRESSION -D_GLIBCXX_DEBUG Are they real bugs? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37144