List:MySQL++« Previous MessageNext Message »
From:Dan Cook (dancook) Date:April 12 2011 8:48pm
Subject:RE: Crash in DBDriver::fetch_row on a heavily loaded system...
View as plain text  
>> Dan,
>>
>> I should have replied all. Can you check driver_ in frame 3 of you
core - I
>> suspect that it is NULL.
>>
>> http://dev.mysql.com/doc/refman/5.5/en/null-mysql-store-result.html
>>
>> Seems to be a mysql api issue. Maybe you could try the workaround
they
>> suggest.
>>
>> Adrian Cornish

Adrian, 

In frame #3, driver_ is contained in the "result" at line 753 of query.h
and the driver_ variable is indeed NULL.

#3  0xb78a5cb1 in
mysqlpp::Query::storein_sequence<std::vector<RecordingDTO,
std::allocator<RecordingDTO> > > (this=0x96ea4a00, con=@0x96ea4b08,
    s=@0x96ea49c0) at
/ws-server/tempbuild-quangtr2/server/CommonLib/include/mysql++/query.h:7
53
753
/ws-server/tempbuild-quangtr2/server/CommonLib/include/mysql++/query.h:
No such file or directory.
        in
/ws-server/tempbuild-quangtr2/server/CommonLib/include/mysql++/query.h
(gdb) print result
$4 = {<mysqlpp::ResultBase> = {<mysqlpp::OptionalExceptions> =
{_vptr.OptionalExceptions = 0xb7ea3470, exceptions_ = true}, driver_ =
0x0,
    fields_ =
{<std::_Vector_base<mysqlpp::Field,std::allocator<mysqlpp::Field> >> = {
        _M_impl = {<std::allocator<mysqlpp::Field>> =
{<__gnu_cxx::new_allocator<mysqlpp::Field>> = {<No data fields>}, <No
data fields>},
        _M_start = 0x0, _M_finish = 0x0, _M_end_of_storage = 0x0}}, <No
data fields>}, names_ = {counted_ = 0x0, refs_ = 0x0}, types_ = {
      counted_ = 0x0, refs_ = 0x0}, current_field_ = 0}, result_ =
{counted_ = 0x0, refs_ = 0x0}}

Here is some extra context from the "storein_sequence(Sequence& con,
const SQLTypeAdapter& s) function:

(gdb) print s
$5 = (const mysqlpp::SQLTypeAdapter &) @0x96ea49c0: {buffer_ = {counted_
= 0x922ed470, refs_ = 0x8f3b1d98}, is_processed_ = false}

(gdb) print con
$6 = (std::vector<RecordingDTO,std::allocator<RecordingDTO> > &)
@0x96ea4b08:
{<std::_Vector_base<RecordingDTO,std::allocator<RecordingDTO> >> =
{_M_impl = {<std::allocator<RecordingDTO>> =
{<__gnu_cxx::new_allocator<RecordingDTO>> = {<No data fields>}, <No
data
fields>}, _M_start = 0x0, M_finish = 0x0, _M_end_of_storage = 0x0}}, <No
data fields>}


Dan Cook

Thread
Crash in DBDriver::fetch_row on a heavily loaded system...dancook)12 Apr
  • Re: Crash in DBDriver::fetch_row on a heavily loaded system...Adrian Cornish12 Apr
    • RE: Crash in DBDriver::fetch_row on a heavily loaded system...dancook)12 Apr
    • RE: Crash in DBDriver::fetch_row on a heavily loaded system...dancook)13 Apr
      • Re: Crash in DBDriver::fetch_row on a heavily loaded system...Warren Young13 Apr
        • Re: Crash in DBDriver::fetch_row on a heavily loaded system...Adrian Cornish13 Apr
          • Re: Crash in DBDriver::fetch_row on a heavily loaded system...Warren Young13 Apr
        • RE: Crash in DBDriver::fetch_row on a heavily loaded system...dancook)15 Apr
          • Re: Crash in DBDriver::fetch_row on a heavily loaded system...Warren Young15 Apr
            • Re: Crash in DBDriver::fetch_row on a heavily loaded system...Warren Young15 Apr
            • RE: Crash in DBDriver::fetch_row on a heavily loaded system...dancook)16 Apr
              • Re: Crash in DBDriver::fetch_row on a heavily loaded system...Warren Young16 Apr
          • SSQLS: Number of colomns in a tabledancook)19 May
            • Re: SSQLS: Number of colomns in a tableAdrian Cornish19 May
            • Re: SSQLS: Number of colomns in a tableAdrian Cornish19 May
              • Re: SSQLS: Number of colomns in a tableWarren Young19 May
                • Re: SSQLS: Number of colomns in a tableAdrian Cornish19 May
                  • RE: SSQLS: Number of colomns in a tabledancook)19 May
                  • Re: SSQLS: Number of colomns in a tableWarren Young19 May
                    • Re: SSQLS: Number of colomns in a tableWarren Young20 May
      • Re: Crash in DBDriver::fetch_row on a heavily loaded system...Adrian Cornish13 Apr
        • Re: Crash in DBDriver::fetch_row on a heavily loaded system...Warren Young13 Apr