Memory Leak in OCI Calls
From: Ramesh Natarajan <ramesh_at_motorola.com>
Date: Thu, 17 Oct 2002 15:54:55 +0530
Message-ID: <3DAE8FF7.7F3BF7AE_at_motorola.com>
[Quoted] Hi Group,
_t_tsdalloc<-__nc_error<-fgetnetconfig<-getnetlist<-setnetconfig<-__rpc_getconfip<-gethostbyname_r<-nttbnd2addr
Date: Thu, 17 Oct 2002 15:54:55 +0530
Message-ID: <3DAE8FF7.7F3BF7AE_at_motorola.com>
[Quoted] Hi Group,
[Quoted] [Quoted] I am using OCI Calls to connect to an Oracle database to execute some
stored procedures. I am using Oracle 8i on Solaris 2.8. Mine is a
multithreaded
application.
When analyzing my program using Sun Workshop, it gave me a memory
leak in the libraries used by ORACLE OCI Calls.
[Quoted] The report is enclosed. Can anyone tell me what could be the problem?
Actual leaks report (actual leaks: 247 total size: 13042
bytes)
Total Num of Leaked Allocation call stack
Size Blocks Block
Address
====== ====== ========== =======================================
11902 236 - operator
new<-std::basic_string,std::allocator >::__getRep
1024 1 0x22be78
calloc<-_tsdbufalloc<-_getextmntent<-getdevinfo<-getcwd<-snlfncdir<-nigini1<-niqname
48 2 - _alloc_attr<-_pthread_mutexattr_init
20 1 0x236ec0
pthread_setspecific<-_t_tsdalloc<-__nderror<-_get_hostserv_inetnetdir_byname<-gethostbyname_r<-nttbnd2addr<-ntacbnd2addr<-nsc2addr
12 1 0x215290
calloc<-_tsdbufalloc<-_getextmntent<-getdevinfo<-getcwd<-snlfncdir<-nigini1<-niqname
12 1 0x2152b8
calloc<-_tsdbufalloc<-_getextmntent<-getdevinfo<-getcwd<-snlfncdir<-nigini1<-niqname
8 1 0x214a08
calloc<-pthread_setspecific<-_tsdbufalloc<-_getextmntent<-getdevinfo<-getcwd<-snlfncdir<-nigini1
4 1 0x214908
_strdup<-__rpc_getconfip<-gethostbyname_r<-nttbnd2addr<-ntacbnd2addr<-nsc2addr<-nscall1<-nscall
4 1 0x2366d0
_t_tsdalloc<-__nderror<-_get_hostserv_inetnetdir_byname<-gethostbyname_r<-nttbnd2addr<-ntacbnd2addr<-nsc2addr<-nscall1
4 1 0x236630
_strdup<-__rpc_getconfip<-gethostbyname_r<-nttbnd2addr<-ntacbnd2addr<-nsc2addr<-nscall1<-nscall
4 1 0x236410
_t_tsdalloc<-__nc_error<-fgetnetconfig<-getnetlist<-setnetconfig<-__rpc_getconfip<-gethostbyname_r<-nttbnd2addr
-- With Regds, RameshReceived on Thu Oct 17 2002 - 12:24:55 CEST
