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

Subject: [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 15:24:29


#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: |
-------------------------------------------------------+--------------------
 When the diagnostic_information() function is called with a
 boost::exception the output of the tag information is faulty.

 This can be seen in the output of example_io.cpp when compiled using g++
 (TDM-2 mingw32) 4.4.1


 {{{

 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:
 N5boost16exception_detail10clone_implI11fread_errorEE
 std::exception::what: example_io error
 [P17tag_file_name_dst] = tmp2.txt
 [P17tag_file_name_src] = tmp1.txt
 [PN5boost14errinfo_errno_E] = 0, "No error"
 [PN5boost18errinfo_file_name_E] = tmp1.txt
 [PN5boost20errinfo_file_handle_E] = [ type:
 N5boost10error_infoINS_20errinfo_fil
 e_handle_ENS_8weak_ptrI6_iobufEEEE, size: 12, dump: 08 d5 48 00 b8 09 17
 77 70 0
 f 2d 00 ]
 [PN5boost21errinfo_api_function_E] = 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:
 N5boost16exception_detail10clone_implI11fopen_errorEE
 std::exception::what: example_io error
 [PN5boost14errinfo_errno_E] = 2, "No such file or directory"
 [PN5boost18errinfo_file_name_E] = tmp1.txt
 [PN5boost21errinfo_api_function_E] = fopen
 [PN5boost23errinfo_file_open_mode_E] = rb
 }}}

 The operating system in use is Windows Vista

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