Subject: [Boost-bugs] [Boost C++ Libraries] #2944: boost::archive::xml_iarchive hangs, if BOOST_SP_USE_PTHREADS used
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-13 21:53:52
#2944: boost::archive::xml_iarchive hangs, if BOOST_SP_USE_PTHREADS used
---------------------------------------------------+------------------------
Reporter: highcatland_at_[hidden] | Owner: ramey
Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: serialization
Version: Boost 1.38.0 | Severity: Problem
Keywords: shared_ptr serialization xml_iarchive |
---------------------------------------------------+------------------------
I use 'BOOST_SP_USE_PTHREADS' option, with serialization library.
When I try to create xml_iarchive, application hangs.
Reproduced on:
x86_64 Gentoo Linux, x86_64-pc-linux-gnu-4.3.3, glibc: 2.9_p20081201
ARM (Openmoko toolchain): gcc 4.1.2, glibc: 2.6.1
Also tried:
x32 Gentoo Linux, i686-pc-linux-gnu-4.1.2, glibc: 2.6.1
- works perfectly, without hangs.
Backtrace while the application hang:
0x00007ffb03bf3414 in __lll_lock_wait () from /lib/libpthread.so.0
(gdb) bt
#0 0x00007ffb03bf3414 in __lll_lock_wait () from /lib/libpthread.so.0
#1 0x00007ffb03beec50 in _L_lock_55 () from /lib/libpthread.so.0
#2 0x00007ffb03bee53e in pthread_mutex_lock () from /lib/libpthread.so.0
#3 0x0000000000427c43 in boost::detail::sp_counted_base::release
(this=0x672140) at
/home/distr/boost/x86_64_boost_1_38_0/include/boost-1_38/boost/detail/sp_counted_base_pt.hpp:91
#4 0x0000000000433189 in
boost::archive::basic_xml_grammar<char>::init_chset ()
#5 0x0000000000440ff1 in
boost::archive::basic_xml_grammar<char>::basic_xml_grammar ()
#6 0x0000000000432035 in
boost::archive::xml_iarchive_impl<boost::archive::xml_iarchive>::xml_iarchive_impl
()
#7 0x0000000000427b81 in xml_iarchive (this=0x7fff0d07b840,
is=@0x7fff0d07b630, flags=0) at
/home/distr/boost/x86_64_boost_1_38_0/include/boost-1_38/boost/archive/xml_iarchive.hpp:119
#8 0x00000000004272fb in test_xmlArchive () at /home/remote_projects/fl-
dict/src/test/boost_archive_load_test.cpp:43
#9 0x00000000004273fb in main (argc=1, argv=0x7fff0d07b9c8) at
/home/remote_projects/fl-dict/src/test/boost_archive_load_test.cpp:15
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2944> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC