public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/37144]  New: A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp
@ 2008-08-17 19:32 hjl dot tools at gmail dot com
  2008-08-17 21:00 ` [Bug libstdc++/37144] " hjl dot tools at gmail dot com
                   ` (32 more replies)
  0 siblings, 33 replies; 37+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-08-17 19:32 UTC (permalink / raw)
  To: gcc-bugs

include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp
causes invalid memory access on Linux/ia32 and Linux/Intel64. You can see
it by adding -D_GLIBCXX_DEBUG to ext/pb_ds/regression/trie_data_map_rand.cc:

bash-3.2$ /export/build/gnu/gcc-work/build-x86_64-linux/./gcc/g++
-shared-libgcc -B/export/build/gnu/gcc-work/build-x86_64-linux/./gcc
-nostdinc++
-L/export/build/gnu/gcc-work/build-x86_64-linux/x86_64-unknown-linux-gnu/32/libstdc++-v3/src
-L/export/build/gnu/gcc-work/build-x86_64-linux/x86_64-unknown-linux-gnu/32/libstdc++-v3/src/.libs
-B/usr/gcc-4.4-work/x86_64-unknown-linux-gnu/bin/
-B/usr/gcc-4.4-work/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/gcc-4.4-work/x86_64-unknown-linux-gnu/include -isystem
/usr/gcc-4.4-work/x86_64-unknown-linux-gnu/sys-include -m32 -g -O2
-D_GLIBCXX_ASSERT -fmessage-length=0 -ffunction-sections -fdata-sections -g -O2
-D_GNU_SOURCE -g -O2   -D_GNU_SOURCE   -DLOCALEDIR="." -nostdinc++
-I/export/build/gnu/gcc-work/build-x86_64-linux/x86_64-unknown-linux-gnu/32/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/export/build/gnu/gcc-work/build-x86_64-linux/x86_64-unknown-linux-gnu/32/libstdc++-v3/include
-I/export/gnu/src/gcc-work/gcc/libstdc++-v3/libsupc++
-I/export/gnu/src/gcc-work/gcc/libstdc++-v3/include/backward
-I/export/gnu/src/gcc-work/gcc/libstdc++-v3/testsuite/util -Wl,--gc-sections
/export/gnu/src/gcc-work/gcc/libstdc++-v3/testsuite/ext/pb_ds/regression/trie_data_map_rand.cc
  -DPB_DS_REGRESSION ./libtestc++.a  -lm   -m32 -o ./trie_data_map_rand.exe 
-D_GLIBCXX_DEBUG
bash-3.2$ ./trie_data_map_rand.exe
/export/build/gnu/gcc-work/build-x86_64-linux/x86_64-unknown-linux-gnu/32/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.
Aborted
bash-3.2$


-- 
           Summary: A bug in
                    include/ext/pb_ds/detail/pat_trie_/constructors_destruct
                    or_fn_imps.hpp
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37144


^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2012-05-02 22:53 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-37144-4@http.gcc.gnu.org/bugzilla/>
2011-05-21  3:04 ` [Bug libstdc++/37144] A bug in include/ext/pb_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp bkoz at gcc dot gnu.org
2011-05-24  4:30 ` bkoz at gcc dot gnu.org
2012-03-04 12:06 ` redi at gcc dot gnu.org
2012-05-02 22:53 ` bkoz at gcc dot gnu.org
2008-08-17 19:32 [Bug libstdc++/37144] New: " hjl dot tools at gmail dot com
2008-08-17 21:00 ` [Bug libstdc++/37144] " hjl dot tools at gmail dot com
2008-08-17 21:20 ` hjl dot tools at gmail dot com
2008-08-17 21:50 ` hjl dot tools at gmail dot com
2008-08-17 21:53 ` hjl dot tools at gmail dot com
2008-08-18  4:21 ` hjl dot tools at gmail dot com
2008-11-16  0:18 ` hjl dot tools at gmail dot com
2008-11-16 19:18 ` danglin at gcc dot gnu dot org
2008-11-16 19:22 ` hjl dot tools at gmail dot com
2008-12-10 22:46 ` hjl dot tools at gmail dot com
2008-12-10 23:09 ` hjl dot tools at gmail dot com
2008-12-11  0:48 ` hjl dot tools at gmail dot com
2008-12-11  1:18 ` hjl dot tools at gmail dot com
2008-12-11 15:39 ` paolo dot carlini at oracle dot com
2008-12-11 15:43 ` hjl dot tools at gmail dot com
2008-12-11 15:50 ` rguenth at gcc dot gnu dot org
2008-12-11 16:18 ` paolo dot carlini at oracle dot com
2008-12-11 16:40 ` paolo dot carlini at oracle dot com
2008-12-11 16:47 ` hjl dot tools at gmail dot com
2008-12-11 16:51 ` hjl dot tools at gmail dot com
2008-12-11 17:34 ` hjl dot tools at gmail dot com
2008-12-11 17:58 ` hjl dot tools at gmail dot com
2008-12-11 18:14 ` paolo dot carlini at oracle dot com
2008-12-11 18:33 ` hjl dot tools at gmail dot com
2008-12-11 18:40 ` hjl dot tools at gmail dot com
2008-12-11 18:48 ` dave at hiauly1 dot hia dot nrc dot ca
2008-12-11 18:50 ` hjl dot tools at gmail dot com
2008-12-11 18:56 ` paolo dot carlini at oracle dot com
2008-12-11 18:59 ` hjl dot tools at gmail dot com
2008-12-13  1:43 ` hjl at gcc dot gnu dot org
2008-12-13  1:48 ` hjl at gcc dot gnu dot org
2008-12-13  2:04 ` hjl dot tools at gmail dot com
2008-12-13 15:56 ` hjl dot tools at gmail dot com
2008-12-17 17:23 ` paolo dot carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).