Re: Memory Leak in OCI Calls

From: Dave <David.W.Spencer_at_elcaro.moc>
Date: Thu, 17 Oct 2002 12:46:42 +0100
Message-ID: <3DAEA322.2060600_at_elcaro.moc>


Have you determined that it really is a memory leak? If the program grows larger and larger until it runs out of resources, then it's a leak.
If it simply uses more RAM that you expected then it probably isn't. In particular if the memory usage stabilises over time then it isn't leaking.

If it's a leak then you need to produce a minimal complete test program that demonstrates the problem. It should then be possible to determine if it's a known bug and if there's a patch or workaround to the problem.

Dave.

Ramesh Natarajan wrote:
> Hi Group,
>
> 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.
>
> 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,
> Ramesh
>

-- 
Email address munged to avoid SPAM
Reverse the last two parts to reply directly
Received on Thu Oct 17 2002 - 13:46:42 CEST

Original text of this message