Re: [Boost-bugs] [Boost C++ Libraries] #10699: Add a build flag to increase the size of REPORT_ERROR_BUFFER_SIZE

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10699: Add a build flag to increase the size of REPORT_ERROR_BUFFER_SIZE
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-29 13:56:12


#10699: Add a build flag to increase the size of REPORT_ERROR_BUFFER_SIZE
--------------------------------------+----------------------
  Reporter: albert.gil@… | Owner: rogeeff
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: test
   Version: Boost Development Trunk | Severity: Cosmetic
Resolution: | Keywords:
--------------------------------------+----------------------

Comment (by maxim.yegorushkin@…):

 I second that because this limited buffer size truncates my nice stack
 traces from exceptions and I have to fire up gdb to find the full stack
 trace, e.g.:

 {{{
 cd /home/max/otsquant/build/Linux-x86_64-64.g++-debug/test-results &&
 /home/max/otsquant/build/Linux-
 x86_64-64.g++-debug/test/fix_db_connection_test --log_level=test_suite
 Running 1 test case...
 Entering test suite "fix"
 Entering test case "insert"
 unknown location(0): fatal error in "insert": std::runtime_error:
 ot::Ex<std::runtime_error, void>: SQLExecDirect(): (-1)[42601][7]ERROR:
 syntax error at or near "\";
 Error while executing the query
 StackTrace(20 frames):
  0: ot::odbc::detail::throw_on_odbc_error(short, void*, short, char
 const*)(/home/max/otsquant/src/c++/util/odbc.cc:56)
  1: ot::odbc::detail::Handle<void*, (short)3>::verify(short, char const*)
 const(/home/max/otsquant/src/c++/util/odbc.h:124)
  2: ot::odbc::StatementHandle::execute(char
 const*)(/home/max/otsquant/src/c++/util/odbc.c <---- truncate here
 Leaving test case "insert"; testing time: 11861mks
 Leaving test suite "fix"
 }}}

 A proper fix would be to make the buffer size dynamic and remove any
 limits.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10699#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:17 UTC