Re: [Boost-bugs] [Boost C++ Libraries] #3895: Faulty output of tags by diagnostic_information() in G++ MinGW

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3895: Faulty output of tags by diagnostic_information() in G++ MinGW
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-03 19:45:55


#3895: Faulty output of tags by diagnostic_information() in G++ MinGW
-------------------------------------------------------+--------------------
 Reporter: andrew mcardle <andrewmcardle1@…> | Owner: emildotchevski
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: exception
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
-------------------------------------------------------+--------------------

Comment(by andrew mcardle <andrewmcardle1@…>):

 Recompiled example_io.cpp with the trunk version (59443), seems to be
 working perfectly:

 {{{
 Caught 'read_error' exception.
 -------------------------------------------------
 Source file name: tmp1.txt
 Destination file name: tmp2.txt
 File name: tmp1.txt
 OS error: 0
 Failed function: fread

 Output from diagnostic_information():
 example_io.cpp(78): Throw in function void my_fread(void*, size_t, size_t,
 const
  boost::shared_ptr<_iobuf>&)
 Dynamic exception type: boost::exception_detail::clone_impl<fread_error>
 std::exception::what: example_io error
 [tag_file_name_dst*] = tmp2.txt
 [tag_file_name_src*] = tmp1.txt
 [boost::errinfo_errno_*] = 0, "No error"
 [boost::errinfo_file_name_*] = tmp1.txt
 [boost::errinfo_file_handle_*] = [ type:
 N5boost10error_infoINS_20errinfo_file_h
 andle_ENS_8weak_ptrI6_iobufEEEE, size: 12, dump: 68 67 49 00 b8 09 17 77
 58 0f 3
 3 00 ]
 [boost::errinfo_api_function_*] = fread

 Caught 'open_error' exception.
 -------------------------------------------------
 File name: tmp1.txt
 OS error: 2
 Failed function: fopen

 Output from diagnostic_information():
 example_io.cpp(67): Throw in function boost::shared_ptr<_iobuf>
 my_fopen(const c
 har*, const char*)
 Dynamic exception type: boost::exception_detail::clone_impl<fopen_error>
 std::exception::what: example_io error
 [boost::errinfo_errno_*] = 2, "No such file or directory"
 [boost::errinfo_file_name_*] = tmp1.txt
 [boost::errinfo_api_function_*] = fopen
 [boost::errinfo_file_open_mode_*] = rb
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3895#comment:3>
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:02 UTC