[gnome-db] Re: gdamm1.3.4: segfault on data_model->get_n_rows();



On Wed, 2004-11-17 at 17:38 +0100, Daniel Holbach wrote:
> if you have a look at the code (link above) you'll see, that I already
> check for !data_model and I do calls like 
> 	int columns =  data_model->get_n_columns();
> 
> But as you requested (thanks - I learned a bit by doing this), here's
> the output of gdb:
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1081800256 (LWP 4787)]
> 0x00000000 in ?? ()
> (gdb) up 4
> #4  0x0805551f in DBUtils::perform (this=0x8068eec, rule= 0xbffff2b0,
> result= 0xbffff2a0) at refptr.h:155
> 155     {
> (gdb) p data_model
> $1 = {pCppObject_ = 0x808c3d8}
> (gdb)

It would be more interesting to dig a little deeper and see what really
is 0. Maybe it's the GdaDataModel*, though Gda::DataModel::operator bool
() should have checked that.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]