[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3938) out of memory leak causes segfault




--On Monday, August 15, 2005 2:59 AM +0000 openldap-its@OpenLDAP.org wrote:


Backtrace is:

(gdb) bt
#0  0xfee04a88 in _doprnt () from /usr/lib/libc.so.1
#1  0xfee086c8 in vsnprintf () from /usr/lib/libc.so.1
#2  0xff26eef4 in __db_errcall (dbenv=0x1eee48, error=0, error_set=0, 
fmt=0xff2be350 "malloc: %s: %lu", ap=0xbc74123c) at ../common/db_err.c:357
#3  0xff26eeb4 in __db_err (dbenv=0x1eee48, fmt=0xff2be350 "malloc: %s: 
%lu") at ../common/db_err.c:330
#4  0xff2a3b44 in __os_umalloc (dbenv=0x1eee48, size=1595, 
storep=0xbc741528) at ../os/os_alloc.c:82
#5  0xff27d8c8 in __db_retcopy (dbenv=0xb, dbt=0xbc741528, data=0xd15b4677, 
len=1595, memp=0x1ef434, memsize=0x1ef43c) at ../db/db_ret.c:124
#6  0xff27d630 in __db_ret (dbp=0x1ef390, h=0xd15b1f74, indx=14, 
dbt=0xbc741528, memp=0x1ef434, memsize=0x1ef43c) at ../db/db_ret.c:74
#7  0xff269528 in __db_c_get (dbc_arg=0x1f08a8, key=0xbc741540, 
data=0xbc741528, flags=28) at ../db/db_cam.c:766
#8  0xff2709b8 in __db_get (dbp=0x1ef390, txn=0xbc741540, key=0xbc741540, 
data=0xbc741528, flags=28) at ../db/db_iface.c:644
#9  0xff270844 in __db_get_pp (dbp=0x1ef390, txn=0x0, key=0xbc741540, 
data=0xbc741528, flags=0) at ../db/db_iface.c:585
#10 0x0009f044 in bdb_id2entry (be=0x1a6528, tid=0x0, id=1176695, 
e=0xbc7415cc) at id2entry.c:116
#11 0x0009840c in bdb_cache_find_id (op=0x6e58d68, tid=0x0, id=1176695, 
eip=0xbc7416b8, islocked=0, locker=8, lock=0xbc7416d0) at cache.c:671
#12 0x0007af48 in bdb_search (op=0x6e58d68, rs=0xbc801af0) at search.c:670
#13 0x00028864 in fe_op_search (op=0x6e58d68, rs=0xbc801af0) at search.c:344
#14 0x00028188 in do_search (op=0x6e58d68, rs=0xbc801af0) at search.c:214
#15 0x000268b0 in connection_operation (ctx=0x1762e0, arg_v=0x6e58d68) at 
connection.c:1049
#16 0xff32cd38 in ldap_int_thread_pool_wrapper (xpool=0x1867e8) at 
tpool.c:478
#17 0xfed5b024 in _thread_start () from /usr/lib/libthread.so.1
#18 0xfed5b024 in _thread_start () from /usr/lib/libthread.so.1


which shows a segv in libc, not really useful.

I'm going to set this back up under linux and run under valgrind to see 
what I can get.  It'll be at least tomorrow until I have a result though.

--Quanah


--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin