Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7606: u32regex causes bus error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-28 18:22:42
#7606: u32regex causes bus error
-----------------------------------------+----------------------------------
Reporter: a.sanders@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------+----------------------------------
Comment (by johnmaddock):
Thanks for the stack trace, unfortunately that makes even less sense now
:-(
Can you set a breakpoint (basic_regex.cpp:399) inside:
{{{
template <class InputIterator>
basic_regex(InputIterator arg_first, InputIterator arg_last, flag_type
f = regex_constants::normal)
{
typedef typename traits::string_type seq_type;
seq_type a(arg_first, arg_last);
if(a.size())
assign(static_cast<const charT*>(&*a.begin()), static_cast<const
charT*>(&*a.begin() + a.size()), f);
else
assign(static_cast<const charT*>(0), static_cast<const
charT*>(0), f);
}
}}}
What are the contents of "a" after construction?
Any chance that your code is compiled using a compiler code page that
results in the input string not being valid ASCII/UTF8?
Thanks, John.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7606#comment:6> 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:11 UTC