[Boost-bugs] [Boost C++ Libraries] #2535: Boost.Regex not compatible with gcc's align-double at optimization level 3

Subject: [Boost-bugs] [Boost C++ Libraries] #2535: Boost.Regex not compatible with gcc's align-double at optimization level 3
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-11-25 17:57:33


#2535: Boost.Regex not compatible with gcc's align-double at optimization level 3
--------------------------------+-------------------------------------------
 Reporter: Andrew Troschinetz | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: regex
  Version: Boost 1.37.0 | Severity: Problem
 Keywords: |
--------------------------------+-------------------------------------------
 When compiling even the following code:

  #include <boost/regex.h>
  int main { boost::regex ("test"); return 0; }

 With the flags
  -m32 -malign-double -O3
 on gcc, a segfault occurs. Here is a sample excerpt of what gdb shows:

 0x08066beb in boost::re_detail::basic_regex_parser<char,
 boost::regex_traits<char, boost::cpp_regex_traits<char> >
>::parse_extended (this=0xffde311c)
         at /usr/include/boost/regex/v4/basic_regex_parser.hpp:235
 235 switch(this->m_traits.syntax_type(*m_position))
 (gdb) print m_position
 $1 = 0x0
 (gdb) bt
 #0 0x08066beb in boost::re_detail::basic_regex_parser<char,
 boost::regex_traits<char, boost::cpp_regex_traits<char> >
>::parse_extended
         at /usr/include/boost/regex/v4/basic_regex_parser.hpp:235
 #1 0xf7f9e364 in boost ::re_detail::basic_regex_parser<char,
 boost::regex_traits<char, boost::cpp_regex_traits<char> > >::parse ()
         from /usr/lib/libboost_regex.so.2
 #2 0xf7fa0eba in boost::basic_regex<char, boost::regex_traits<char,
 boost::cpp_regex_traits<char> > >::do_assign () from
 /usr/lib/libboost_regex.so.2

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2535>
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:49:59 UTC