Re: KBabel CVS-latest crash

Michael Buesch <[email protected]>
Newsgroups gmane.comp.kde.devel.kbabel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I did some more tracing about the strange bug with latest kbabel
on my machine.
When I try to load a file, the program crashes when the progress
bar reaches 100%.

[email protected]:~> gdb kbabel
GNU gdb 5.2.1
- ---[SNIP]---
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run --nofork
Starting program: /usr/local/kde.cvs/bin/kbabel --nofork
[New Thread 16384 (LWP 25138)]
QMetaObject::findSignal:KListView: Conflict with QListView::doubleClicked(QListViewItem*,const QPoint&,int)
kbabel: WARNING: Something's wrong with KSpell, can't start on-the-fly checking
kbabel: WARNING: KGenericFactory: instance requested but no instance name passed to the constructor!
Cannot stat

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 25138)]
0x41d42bd7 in DataBaseManager::loadInfo() ()
   from /usr/local/kde.cvs/lib/kde3/kbabeldict_dbsearchengine.so
(gdb) bt
#0  0x41d42bd7 in DataBaseManager::loadInfo() ()
   from /usr/local/kde.cvs/lib/kde3/kbabeldict_dbsearchengine.so
#1  0x414804a0 in _IO_2_1_stderr_ () from /lib/libc.so.6
Cannot access memory at address 0x1


- -g is not enabled, so bt doesn't give much info.


kbabeldict/modules/dbsearchengine/database.cpp
void  DataBaseManager::loadInfo()  
{
 int nrec;
 DB_BTREE_STAT *stat;
// memset(&stat,0,sizeof(DB_BTREE_STAT));
 if(infoDb->stat(infoDb,&stat,DB_FAST_STAT))
  fprintf(stderr,"Cannot stat\n");
 nrec=stat->bt_nkeys;
free(stat);

 info.clear();
 for(int i=1;i<=nrec;i++)     // I think DB2 Recno are 1 based.
  { 
  info.append(getCatalogInfo(i));
  }

}

Here should be the point to start.
Why does the stat() fail?

Please CC: me, as I'm not on the list.

- -- 
Regards Michael Buesch  [ http://www.tuxsoft.de.vu ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/xlKgoxoigfggmSgRAqVFAJ0UBUzBtNAsiUgNhCCn6lHKNzFfzgCffHA6
8nIufNbrH0D/2Vqe3x3M1UE=
=YtG1
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.