Bug 54432 - Compiling the boost++ library crashes the g++ compiler in except.c:2809
Compiling the boost++ library crashes the g++ compiler in except.c:2809
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i586 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2001-10-08 05:46 EDT by Nick Wells
Modified: 2007-04-18 12:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-12-15 12:53:53 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nick Wells 2001-10-08 05:46:25 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010808

Description of problem:
The default jam (build) script for the boost++ libraries specifies -O4
optimisation. This makes g++ crash when it is compiling the cregex.cpp
module, the error is in except.c, line 2809.
Turning off optimisation fixes it. (I tried with -O3 and -O2 with the same

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.download boost++ 1.25.0 from www.boost.org
2.follow the build instructions ...
3.jam -ftools/build/allyourbase.jam -sTOOLS="gcc"

Actual Results:  gcc-C++-action

boost/regex.hpp: In function `iterator 
boost::re_detail::re_is_set_member (iterator, iterator, 
boost::re_detail::re_set_long *, const boost::reg_expression<charT, 
traits_type, Allocator> &) [with iterator = 
boost::re_detail::mapfile_iterator, charT = char, traits_type = 
boost::regex_traits<char>, Allocator = allocator<char>]':
boost/regex/detail/regex_match.hpp:545:   instantiated from
`boost::re_detail::query_match_aux (iterator, iterator,
boost::match_results<iterator, Allocator> &, const
boost::reg_expression<charT, traits, Allocator2> &, unsigned int,
boost::re_detail::_priv_match_data<iterator, Allocator> &, iterator *)
[with iterator = boost::re_detail::mapfile_iterator, Allocator =
allocator<char>, charT = char, traits = boost::regex_traits<char>,
Allocator2 = allocator<char>]'
boost/regex/detail/regex_match.hpp:1097:   instantiated from
`boost::re_detail::reg_grep2 (Predicate, I, I, const
boost::reg_expression<charT, traits, Allocator2> &, unsigned int, A2) [with
Predicate = boost::re_detail::pred4, I =
boost::re_detail::mapfile_iterator, charT = char, traits =
boost::regex_traits<char>, A = allocator<char>, A2 = allocator<char>]'
boost/regex/detail/regex_match.hpp:1756:   instantiated from
`boost::regex_grep (Predicate, iterator, iterator, const
boost::reg_expression<charT, traits, Allocator2> &, unsigned int) [with
Predicate = boost::re_detail::pred4, iterator =
boost::re_detail::mapfile_iterator, charT = char, traits =
boost::regex_traits<char>, Allocator = allocator<char>]'
libs/regex/build/../src/cregex.cpp:387:   instantiated from here
boost/regex.hpp:244: Internal compiler error in scan_region, at 
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.

    g++  -c -Wall -ftemplate-depth-100  -DNDEBUG -DBOOST_RE_BUILD_DLL=1 
-O4 -finline-functions -Wno-inline -fPIC   -I"libs/regex/build"
-I"libs/regex/build/../../.."   -o

...failed gcc-C++-action
for lack of
...failed updating 2 targets...
...skipped 2 targets...

Additional info:
Comment 1 Jakub Jelinek 2001-10-10 15:41:32 EDT
Please supply preprocessed testcase (cregex.ii) which you get if you add
-save-temps to the g++ command line used to compile cregex.cpp.
Comment 2 Jakub Jelinek 2001-10-10 19:15:37 EDT
What exact gcc do you use?
I could reproduce it with e.g. gcc-2.96-79, but cannot reproduce it with
gcc-2.96-85 (which is the 7.1 errata rpm) or gcc-2.96-99.

Note You need to log in before you can comment on or make changes to this bug.