Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Purify(Windows NT) is reporting FIM(Free Invalid Memory) in OCIServerAttach()

Re: Purify(Windows NT) is reporting FIM(Free Invalid Memory) in OCIServerAttach()

From: Dave <recneps.w.divad_at_elcaro.moc>
Date: Wed, 15 Dec 2004 15:29:11 +0000
Message-ID: <MZYvd.22$DW5.51@news.oracle.com>

Rick Wessman wrote:

> In article <1102918543.582643.275080_at_f14g2000cwb.googlegroups.com>,
> dharan_at_newspage.com.sg says...
> 

>>
>>Abhisek wrote:
>>
>>>Hi,
>>>
>>>I am using OCI in my application for about an year.Recently I found
>>>some crahes in my OCI wrapper.To figure out I ran my application
>>
>>under
>>
>>>purify and figured out that it is reporting Free Invalid Memory (FIM)
>>>in OCIServerAttach().The stack is given below:
>>>
>>>[E] FIM: Freeing invalid memory in LocalFree {1 occurrence}
>>>Address 0x00152e80 points into a HeapAlloc'd block in unallocated
>>>region of the default heap
>>>Location of free attempt
>>>LocalFree+0xc [KERNEL32.dll ip=0x67f01dab]
>>>??? [security.dll ip=0x76e71a88]
>>>AcquireCredentialsHandleA+0x54 [security.dll ip=0x76e73ee9]
>>>naunts5+0xf98 [orannts8.dll ip=0x64501f98]
>>>naunts+0xf10 [orannts8.dll ip=0x64505030]
>>>sntseltst+0x269a [oran8.dll ip=0x60b6484a]
>>>naconnect+0x13a4 [oran8.dll ip=0x60b02a54]
>>>naconnect+0x964 [oran8.dll ip=0x60b02014]
>>>naconnect+0x123 [oran8.dll ip=0x60b017d3]
>>>nsmore2recv+0xc93 [oran8.dll ip=0x60b53bb3]
>>>nsmore2recv+0x6ba [oran8.dll ip=0x60b535da]
>>>nscall+0x6f3 [oran8.dll ip=0x60b3f2d3]
>>>niotns+0x6c7 [oran8.dll ip=0x60b155e7]
>>>osncon+0x44c [oran8.dll ip=0x60b610cc]
>>>xaolog+0x1f533 [OraClient8.Dll ip=0x604b0c93]
>>>xaolog+0x26d3e [OraClient8.Dll ip=0x604b849e]
>>>upiah0+0x63 [OraClient8.Dll ip=0x6047f933]
>>>kpuatch+0x30a [OraClient8.Dll ip=0x604246da]
>>>OCIServerAttach+0x20 [OraClient8.Dll ip=0x60401340]
>>>OCIServerAttach+0x2b [OCI.dll ip=0x1000596b]
>>>
>>>I am calling OCIServerAttach() in a following way:
>>>OCIServerAttach(srvhp, errhp,(text *)dbName, strlen(dbName),0);
>>>where dbName is a member variable of my class.Its a character array
>>>that I have allocated on heap and its size is 256 bytes.
>>>
>>>My application is a multitier application running on Windows NT.
>>>
>>>Please help me out.Is any thing wrong in the usage?
>>>
>>>Regards
>>>Abhishek
>>
>>Hello Abhisek,
>>I am getting the similar error from purify for OCIServerAttach()
>>function call.
>>Did you manage to identify the problem?
>>Kindly advice me how to overcome this issue.
>>
>>Regards,
>>Sreedharan
>>
> 
> This is a bug in Oracle internals which you won't be able to fix. Contact Oracle
> support. The fix may already be available.
> 
>                                         Rick
> 
> 

good advice, but a Purify report on its own is not sufficient; you will also need to create a small test program that reproduces the crash. This will help rule out the possibility of a bug in your code, and provide a simple test for whether or not a given solution actually fixes the problem. Received on Wed Dec 15 2004 - 09:29:11 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US