Re: [Boost-bugs] [Boost C++ Libraries] #5446: Exception thrown by tz_database::load_from_file() on linux 2.6.37, boost1.46.1, gcc4.5.2

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5446: Exception thrown by tz_database::load_from_file() on linux 2.6.37, boost1.46.1, gcc4.5.2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-19 22:09:22


#5446: Exception thrown by tz_database::load_from_file() on linux 2.6.37,
boost1.46.1,gcc4.5.2
----------------------------------+-----------------------------------------
  Reporter: frankrq2009@… | Owner: az_sw_dude
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: date_time
   Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords:
----------------------------------+-----------------------------------------

Comment (by anonymous):

 Please raise the severity of this bug, I have encountered it as well.

 The fallout from this is that tz_database is completely broken on linux,
 causing your application to crash, this is a very serious bug.

 The explanation above is 100% accurate, boost::lexical_cast is being
 called with an extra '\r' on lines which need DST adjustments.

 Here is a GDB snapshot from my application:

 ------------

 {{{
 #6 0x000000000041a14f in boost::throw_exception<boost::bad_lexical_cast>
 (e=...) at /usr/include/boost/throw_exception.hpp:61
 #7 0x0000000000417dd1 in boost::detail::lexical_cast<unsigned short,
 std::basic_string<char>, false, char> (arg=..., buf=0x7fffffffda20
 "P\337\377\377\377\177", src_len=1)
     at /usr/include/boost/lexical_cast.hpp:1152

 #8 0x0000000000415889 in boost::lexical_cast<unsigned short,
 std::basic_string<char> > (arg=...) at
 /usr/include/boost/lexical_cast.hpp:1174

 #9 0x0000000000415a9f in
 boost::date_time::str_from_delimited_time_duration<boost::posix_time::time_duration,
 char> (s=...) at /usr/include/boost/date_time/time_parsing.hpp:79

 #10 0x0000000000416606 in
 boost::date_time::tz_db_base<boost::local_time::custom_time_zone_base<char>,
 boost::date_time::day_calc_dst_rule<boost::local_time::nth_kday_rule_spec>
>::parse_string (this=0x6d76e0, s=...) at
 /usr/include/boost/date_time/tz_db_base.hpp:358

 #11 0x0000000000414426 in
 boost::date_time::tz_db_base<boost::local_time::custom_time_zone_base<char>,
 boost::date_time::day_calc_dst_rule<boost::local_time::nth_kday_rule_spec>
>::load_from_file (this=0x6d76e0, pathspec=...) at
 /usr/include/boost/date_time/tz_db_base.hpp:183
 ------------
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5446#comment:1>
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:06 UTC