dbTalk Databases Forums  

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

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Re: Purify(Windows NT) is reporting FIM(Free Invalid Memory) in OCIServerAttach() in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dharan@newspage.com.sg
 
Posts: n/a

Default Re: Purify(Windows NT) is reporting FIM(Free Invalid Memory) in OCIServerAttach() - 12-13-2004 , 12:15 AM







Abhisek wrote:
Quote:
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



Reply With Quote
  #2  
Old   
Rick Wessman
 
Posts: n/a

Default Re: Purify(Windows NT) is reporting FIM(Free Invalid Memory) in OCIServerAttach() - 12-13-2004 , 08:42 AM






In article <1102918543.582643.275080 (AT) f14g2000cwb (DOT) googlegroups.com>,
dharan (AT) newspage (DOT) com.sg says...
Quote:

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


--
Rick Wessman
Oracle Corporation
The opinions expressed above are mine and do not necessarily reflect
those of Oracle Corporation.


Reply With Quote
  #3  
Old   
Dave
 
Posts: n/a

Default Re: Purify(Windows NT) is reporting FIM(Free Invalid Memory) in OCIServerAttach() - 12-15-2004 , 09:29 AM





Rick Wessman wrote:
Quote:
In article <1102918543.582643.275080 (AT) f14g2000cwb (DOT) googlegroups.com>,
dharan (AT) newspage (DOT) 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.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.