Subject: Re: [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-14 03:59:12
#2944: boost::archive::xml_iarchive hangs, if BOOST_SP_USE_PTHREADS used
------------------------------------+---------------------------------------
Reporter: highcatland_at_[hidden] | Owner: no-maintainer
Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: serialization
Version: Boost 1.38.0 | Severity: Problem
Resolution: | Keywords: shared_ptr serialization xml_iarchive
------------------------------------+---------------------------------------
Changes (by ramey):
* owner: ramey => no-maintainer
Comment:
The stack trace indicates that the issue resides in either spirit or
shared_ptr libraries which are used for loading xml files. There is
information related to using BOOST_USE_PTHREADS in the shared_ptr library.
Other than that, I don't know much about it. Note that the serialization
library (as far as I know) is thread safe without the need for doing any
locking.
FYI, here is the code from xml_grammar.cpp
{{{
ypedef basic_xml_grammar<char> xml_grammar;
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// specific definitions for char based XML
template<>
void xml_grammar::init_chset(){
Char = chset_t("\x9\xA\xD\x20-\x7f\x80\x81-\xFF");
Letter = chset_t("\x41-\x5A\x61-\x7A\xC0-\xD6\xD8-\xF6\xF8-\xFF");
Digit = chset_t("0-9");
Extender = chset_t('\xB7');
Sch = chset_t("\x20\x9\xD\xA");
NameChar = Letter | Digit | chset_p("._:-") | Extender ;
}
}}}
This is the last the serialization library sees of it before it tanks.
I've tried to pass this on to Joel Guzman the inventor of spirit library
but I've been unable to find his name here. So for now, I'm forwarding
this to no_maintainer. Sorry I couldn't be of more help.
Robert Ramey
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2944#comment:2> 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