|
From: Dima B. <di...@cs...> - 2003-11-15 23:26:36
|
Hi,
Has anybody had trouble using valgrind with the BerkeleyDB.
This is a stock RedHat 9.0 box, nptl, and the application
is multi-threaded using pthreads.
The following code craps out, the open fails:
DB_ENV *dbe;
long res;
res = db_env_create( &(pi->dbe), 0 );
assert( !res );
res = dbe->open( dbe, "foobar", DB_CREATE | DB_INIT_MPOOL | DB_INIT_LOCK |
DB_INIT_LOG | DB_INIT_TXN | DB_RECOVER, S_IRUSR | S_IWUSR );
if ( res ) {
dbe->err( pi->dbe, res, "env_open" );
dbe->close( pi->dbe, 0 );
assert( 0 );
}
the open fails with the following error:
env_open: Function not implemented
This code runs fine without valgrind, and with valgrind on a non
nptl 2.4 kernel.
Thanks
ttyl
Dima
--
Dima Brodsky di...@cs...
http://www.cs.ubc.ca/~dima
201-2366 Main Mall
Department of Computer Science (604) 822-2895 (DSG Lab)
University of British Columbia, Canada (604) 822-5485 (FAX)
"The price of reliability is the pursuit of the utmost simplicity.
It is a price which the very rich find the most hard to pay."
(Sir Antony Hoare, 1980)
|