Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   Access violation help (http://www.velocityreviews.com/forums/t459178-access-violation-help.html)

SteveB 12-13-2006 03:58 PM

Access violation help
 
Hello All

I'm getting this chain of errors from an app. I was wondering if anyone
recognised what the problem might relate to. I really need to know if
they point to hardware or software. We are running under Windows Server
2003 with 30 virtual users, although the app falls over after a few
mins and 5 users. It also takes COM+ out and the dllhost process needs
to be stopped via 'end process' in task manager. Any help appreciated.

Cheers

Process: 668
Thread: 5452
Unique Identifier: {927B21B6-B4A9-49F7-B993-4E91FF535B8E}
Exception: 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)
Location: 0x7C82F583
0x7c82f583 ntdll.dll, RtlGetLastWin32Error (+ 192 bytes),
0x7c82ff8a ntdll.dll, RtlAllocateHeap (+ 1421 bytes),
0x7c34218a MSVCR71.dll, free (+ 57 bytes),
0x02b8a1cb CDC.dll, DllUnregisterServer (+ 13627 bytes),
0x02bc913c CDC.dll, DllUnregisterServer (+ 271532 bytes),
0x02b3026e DCC.dll, <unknown symbol>
0x02b3345e DCC.dll, <unknown symbol>
0x02126a85 SOAPPListGenerator_P5.dll, modCreditReport::GenerateReport
(+ 200 bytes), CreditReport.bas, Line 30 (+ 50 bytes)
0x0211d2c4 SOAPPListGenerator_P5.dll,
clsBSBBlock::ISOAPJob_PerformSOAPJob (+ 1434 bytes),
clsBureauSummaryBlock.cls, Line 133
0x00d0652a ZJobController.dll, CSOAPJobPerformer::ExecuteSOAPJob (+ 164
bytes), SOAPJobPerformer.cpp, Line 868 (+ 48 bytes)
0x00d058d4 ZJobController.dll,
CSOAPJobPerformer::ValidateAndExecuteSOAPJob (+ 582 bytes),
SOAPJobPerformer.cpp, Line 509 (+ 15 bytes)

Process: 668
Thread: 5452
Unique Identifier: {8283205F-C91A-4D00-86E3-027ADAD77527}
Exception: 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)
Location: 0x7C812009
0x7c812009 ntdll.dll, RtlInitializeSListHead (+ 417 bytes),
0x7c3416b3 MSVCR71.dll, _crtLCMapStringA (+ 773 bytes),
0x7c3416db MSVCR71.dll, _crtLCMapStringA (+ 813 bytes),
0x033685f0 <unknown module>, <unknown symbol>
0x02a00100 <unknown module>, <unknown symbol>
0x02e6c0ff BsbBlockGenerator.dll, CConcept_ZQB_1::CalculateData (+ 95
bytes),


We also get this regularly:

Process: 5912
Thread: 6176
Unique Identifier: {EEB5548C-8E3B-4286-B66F-FE496E09C412}
Exception: 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)
Location: 0x7C8327F9
0x7c8327f9 ntdll.dll, RtlInitializeCriticalSection (+ 60 bytes),
0x7c82ff8a ntdll.dll, RtlAllocateHeap (+ 1421 bytes),
0x7c34218a MSVCR71.dll, free (+ 57 bytes),
0x0302e032 DCC.dll, <unknown symbol>
0x0303345e DCC.dll, <unknown symbol>
0x02526a85 SOAPPListGenerator_P5.dll, modCreditReport::GenerateReport
(+ 200 bytes), CreditReport.bas, Line 30 (+ 50 bytes)
0x0251d2c4 SOAPPListGenerator_P5.dll,
clsBSBBlock::ISOAPJob_PerformSOAPJob (+ 1434 bytes),
clsBureauSummaryBlock.cls, Line 133
0x00d0652a ZJobController.dll, CSOAPJobPerformer::ExecuteSOAPJob (+ 164
bytes), SOAPJobPerformer.cpp, Line 868 (+ 48 bytes)
0x00d058d4 ZJobController.dll,
CSOAPJobPerformer::ValidateAndExecuteSOAPJob (+ 582 bytes),
SOAPJobPerformer.cpp, Line 509 (+ 15 bytes)
0x00d061cd ZJobController.dll, CSOAPJobPerformer::PerformGenericSOAPJob
(+ 1917 bytes), SOAPJobPerformer.cpp, Line 740 (+ 15 bytes)
0x00d05509 ZJobController.dll,
CSOAPJobPerformer::PerformGenericSOAPAPIJob (+ 632 bytes),
SOAPJobPerformer.cpp, Line 340
..


mlimber 12-13-2006 04:05 PM

Re: Access violation help
 
SteveB wrote:
> I'm getting this chain of errors from an app. I was wondering if anyone
> recognised what the problem might relate to.

[snip]
> Exception: 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)

[snip]

That's an indication of a wayward pointer in software. Either you went
ouside the bounds of an array or you dereferenced a null or invalid
pointer. The actual pointer error may be in a part of code unrelated to
where the error appears.

Cheers! --M


Victor Bazarov 12-13-2006 04:05 PM

Re: Access violation help
 
SteveB wrote:
> I'm getting this chain of errors from an app. I was wondering if
> anyone recognised what the problem might relate to. I really need to
> know if they point to hardware or software. We are running under
> Windows Server 2003 with 30 virtual users, although the app falls
> over after a few mins and 5 users. It also takes COM+ out and the
> dllhost process needs to be stopped via 'end process' in task
> manager. Any help appreciated.
>
> [..Windows-specific COM-specific errors..]


Wrong newsgroup. Try a newsgroup with 'microsoft' it its name.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask



Salt_Peter 12-13-2006 04:23 PM

Re: Access violation help
 

SteveB wrote:
> Hello All
>
> I'm getting this chain of errors from an app. I was wondering if anyone
> recognised what the problem might relate to. I really need to know if
> they point to hardware or software. We are running under Windows Server
> 2003 with 30 virtual users, although the app falls over after a few
> mins and 5 users. It also takes COM+ out and the dllhost process needs
> to be stopped via 'end process' in task manager. Any help appreciated.


<snip>

Take a look at the addresses:

> Location: 0x7C82F583
> 0x7c82f583 ntdll.dll, RtlGetLastWin32Error (+ 192 bytes),


> Location: 0x7C812009
> 0x7c812009 ntdll.dll, RtlInitializeSListHead (+ 417 bytes),


> Location: 0x7C8327F9
> 0x7c8327f9 ntdll.dll, RtlInitializeCriticalSection (+ 60 bytes),


Locations: 0x7C82F583, 0x7C812009, 0x7C8327F9
Thats might, though not neccessarily, indicate faulty RAM. Try
reseating the memory and running a full docmem test or better: swap the
memory.


Howard 12-13-2006 04:39 PM

[OT] Re: Access violation help
 

"Salt_Peter" <pj_hern@yahoo.com> wrote in message
news:1166026989.499329.226220@l12g2000cwl.googlegr oups.com...
>
> SteveB wrote:
>> Hello All
>>
>> I'm getting this chain of errors from an app. I was wondering if anyone
>> recognised what the problem might relate to. I really need to know if
>> they point to hardware or software. We are running under Windows Server
>> 2003 with 30 virtual users, although the app falls over after a few
>> mins and 5 users. It also takes COM+ out and the dllhost process needs
>> to be stopped via 'end process' in task manager. Any help appreciated.

>
> <snip>
>
> Take a look at the addresses:
>
>> Location: 0x7C82F583
>> 0x7c82f583 ntdll.dll, RtlGetLastWin32Error (+ 192 bytes),

>
>> Location: 0x7C812009
>> 0x7c812009 ntdll.dll, RtlInitializeSListHead (+ 417 bytes),

>
>> Location: 0x7C8327F9
>> 0x7c8327f9 ntdll.dll, RtlInitializeCriticalSection (+ 60 bytes),

>
> Locations: 0x7C82F583, 0x7C812009, 0x7C8327F9
> Thats might, though not neccessarily, indicate faulty RAM. Try
> reseating the memory and running a full docmem test or better: swap the
> memory.
>


What kind of advice is that? Why would those addresses indicate faulty RAM,
or a poorly seated memory chip? It's generally not a good idea for most
users to fool around with hardware, unless they know what they're doing.
It's quite easy to destroy a chip through static electricity by mishandling.

Look at the rest of that info. Those are functions in the dynamic library
"ntdll.dll", and are part of the "run time library" (this the "Rtl" prefix).
That's why they occuppy nearby addresses, not because the chip is bad (most
likely). A bad chip is more likely to freeze the computer entirely, not
throw an access violation exception.

It's far more likely to be a bug in the OP's code. (OP: Check
"GenerateReport" and "CalculateData".)

Given that the OP's code appears to be in a DLL, it may be that an exception
thrown there is not being caught and handled. In Windows, it's an error to
allow an unhandled exception to propogate out of a DLL. (OP: in those
functions, make sure you handle any exceptions that might get thrown.)

-Howard




Jim Langston 12-14-2006 02:42 AM

Re: Access violation help
 

"SteveB" <steve@thebretts.co.uk> wrote in message
news:1166025495.592894.88920@80g2000cwy.googlegrou ps.com...
> Hello All
>
> I'm getting this chain of errors from an app. I was wondering if anyone
> recognised what the problem might relate to. I really need to know if
> they point to hardware or software. We are running under Windows Server
> 2003 with 30 virtual users, although the app falls over after a few
> mins and 5 users. It also takes COM+ out and the dllhost process needs
> to be stopped via 'end process' in task manager. Any help appreciated.
>
> Cheers
>
> Process: 668
> Thread: 5452
> Unique Identifier: {927B21B6-B4A9-49F7-B993-4E91FF535B8E}
> Exception: 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)
> Location: 0x7C82F583
> 0x7c82f583 ntdll.dll, RtlGetLastWin32Error (+ 192 bytes),
> 0x7c82ff8a ntdll.dll, RtlAllocateHeap (+ 1421 bytes),


Here the error is in the call RtlGetLastWin32Error, which doesn't tell you
much, but the call before that was RtlAllocateHeap. Perhaps you've run out
of system memory. (Just a guess).

> 0x7c34218a MSVCR71.dll, free (+ 57 bytes),
> 0x02b8a1cb CDC.dll, DllUnregisterServer (+ 13627 bytes),
> 0x02bc913c CDC.dll, DllUnregisterServer (+ 271532 bytes),
> 0x02b3026e DCC.dll, <unknown symbol>
> 0x02b3345e DCC.dll, <unknown symbol>
> 0x02126a85 SOAPPListGenerator_P5.dll, modCreditReport::GenerateReport
> (+ 200 bytes), CreditReport.bas, Line 30 (+ 50 bytes)
> 0x0211d2c4 SOAPPListGenerator_P5.dll,
> clsBSBBlock::ISOAPJob_PerformSOAPJob (+ 1434 bytes),
> clsBureauSummaryBlock.cls, Line 133
> 0x00d0652a ZJobController.dll, CSOAPJobPerformer::ExecuteSOAPJob (+ 164
> bytes), SOAPJobPerformer.cpp, Line 868 (+ 48 bytes)
> 0x00d058d4 ZJobController.dll,
> CSOAPJobPerformer::ValidateAndExecuteSOAPJob (+ 582 bytes),
> SOAPJobPerformer.cpp, Line 509 (+ 15 bytes)
>
> Process: 668
> Thread: 5452
> Unique Identifier: {8283205F-C91A-4D00-86E3-027ADAD77527}
> Exception: 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)
> Location: 0x7C812009
> 0x7c812009 ntdll.dll, RtlInitializeSListHead (+ 417 bytes),
> 0x7c3416b3 MSVCR71.dll, _crtLCMapStringA (+ 773 bytes),
> 0x7c3416db MSVCR71.dll, _crtLCMapStringA (+ 813 bytes),
> 0x033685f0 <unknown module>, <unknown symbol>
> 0x02a00100 <unknown module>, <unknown symbol>
> 0x02e6c0ff BsbBlockGenerator.dll, CConcept_ZQB_1::CalculateData (+ 95
> bytes),
>
>
> We also get this regularly:
>
> Process: 5912
> Thread: 6176
> Unique Identifier: {EEB5548C-8E3B-4286-B66F-FE496E09C412}
> Exception: 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)
> Location: 0x7C8327F9
> 0x7c8327f9 ntdll.dll, RtlInitializeCriticalSection (+ 60 bytes),
> 0x7c82ff8a ntdll.dll, RtlAllocateHeap (+ 1421 bytes),


Hmm... RtlAllocateHeap again. How much memory does your server have?

> 0x7c34218a MSVCR71.dll, free (+ 57 bytes),
> 0x0302e032 DCC.dll, <unknown symbol>
> 0x0303345e DCC.dll, <unknown symbol>
> 0x02526a85 SOAPPListGenerator_P5.dll, modCreditReport::GenerateReport
> (+ 200 bytes), CreditReport.bas, Line 30 (+ 50 bytes)
> 0x0251d2c4 SOAPPListGenerator_P5.dll,
> clsBSBBlock::ISOAPJob_PerformSOAPJob (+ 1434 bytes),
> clsBureauSummaryBlock.cls, Line 133
> 0x00d0652a ZJobController.dll, CSOAPJobPerformer::ExecuteSOAPJob (+ 164
> bytes), SOAPJobPerformer.cpp, Line 868 (+ 48 bytes)
> 0x00d058d4 ZJobController.dll,
> CSOAPJobPerformer::ValidateAndExecuteSOAPJob (+ 582 bytes),
> SOAPJobPerformer.cpp, Line 509 (+ 15 bytes)
> 0x00d061cd ZJobController.dll, CSOAPJobPerformer::PerformGenericSOAPJob
> (+ 1917 bytes), SOAPJobPerformer.cpp, Line 740 (+ 15 bytes)
> 0x00d05509 ZJobController.dll,
> CSOAPJobPerformer::PerformGenericSOAPAPIJob (+ 632 bytes),
> SOAPJobPerformer.cpp, Line 340


It sounds like the application is trying to allocate memory, but there is a
problem (maybe not enough memory, object too big, whatever) and it sounds
like that Microsoft is not handling the error correctly.

Try seeing how much memory the application is using.



SteveB 12-14-2006 02:33 PM

Re: Access violation help
 

Jim Langston wrote:
> "SteveB" <steve@thebretts.co.uk> wrote in message
> news:1166025495.592894.88920@80g2000cwy.googlegrou ps.com...
> > Hello All
> >
> > I'm getting this chain of errors from an app. I was wondering if anyone
> > recognised what the problem might relate to. I really need to know if
> > they point to hardware or software. We are running under Windows Server
> > 2003 with 30 virtual users, although the app falls over after a few
> > mins and 5 users. It also takes COM+ out and the dllhost process needs
> > to be stopped via 'end process' in task manager. Any help appreciated.
> >
> > Cheers
> >
> > Process: 668
> > Thread: 5452
> > Unique Identifier: {927B21B6-B4A9-49F7-B993-4E91FF535B8E}
> > Exception: 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)
> > Location: 0x7C82F583
> > 0x7c82f583 ntdll.dll, RtlGetLastWin32Error (+ 192 bytes),
> > 0x7c82ff8a ntdll.dll, RtlAllocateHeap (+ 1421 bytes),

>
> Here the error is in the call RtlGetLastWin32Error, which doesn't tell you
> much, but the call before that was RtlAllocateHeap. Perhaps you've run out
> of system memory. (Just a guess).
>
> > 0x7c34218a MSVCR71.dll, free (+ 57 bytes),
> > 0x02b8a1cb CDC.dll, DllUnregisterServer (+ 13627 bytes),
> > 0x02bc913c CDC.dll, DllUnregisterServer (+ 271532 bytes),
> > 0x02b3026e DCC.dll, <unknown symbol>
> > 0x02b3345e DCC.dll, <unknown symbol>
> > 0x02126a85 SOAPPListGenerator_P5.dll, modCreditReport::GenerateReport
> > (+ 200 bytes), CreditReport.bas, Line 30 (+ 50 bytes)
> > 0x0211d2c4 SOAPPListGenerator_P5.dll,
> > clsBSBBlock::ISOAPJob_PerformSOAPJob (+ 1434 bytes),
> > clsBureauSummaryBlock.cls, Line 133
> > 0x00d0652a ZJobController.dll, CSOAPJobPerformer::ExecuteSOAPJob (+ 164
> > bytes), SOAPJobPerformer.cpp, Line 868 (+ 48 bytes)
> > 0x00d058d4 ZJobController.dll,
> > CSOAPJobPerformer::ValidateAndExecuteSOAPJob (+ 582 bytes),
> > SOAPJobPerformer.cpp, Line 509 (+ 15 bytes)
> >
> > Process: 668
> > Thread: 5452
> > Unique Identifier: {8283205F-C91A-4D00-86E3-027ADAD77527}
> > Exception: 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)
> > Location: 0x7C812009
> > 0x7c812009 ntdll.dll, RtlInitializeSListHead (+ 417 bytes),
> > 0x7c3416b3 MSVCR71.dll, _crtLCMapStringA (+ 773 bytes),
> > 0x7c3416db MSVCR71.dll, _crtLCMapStringA (+ 813 bytes),
> > 0x033685f0 <unknown module>, <unknown symbol>
> > 0x02a00100 <unknown module>, <unknown symbol>
> > 0x02e6c0ff BsbBlockGenerator.dll, CConcept_ZQB_1::CalculateData (+ 95
> > bytes),
> >
> >
> > We also get this regularly:
> >
> > Process: 5912
> > Thread: 6176
> > Unique Identifier: {EEB5548C-8E3B-4286-B66F-FE496E09C412}
> > Exception: 0xc0000005 (EXCEPTION_ACCESS_VIOLATION)
> > Location: 0x7C8327F9
> > 0x7c8327f9 ntdll.dll, RtlInitializeCriticalSection (+ 60 bytes),
> > 0x7c82ff8a ntdll.dll, RtlAllocateHeap (+ 1421 bytes),

>
> Hmm... RtlAllocateHeap again. How much memory does your server have?
>
> > 0x7c34218a MSVCR71.dll, free (+ 57 bytes),
> > 0x0302e032 DCC.dll, <unknown symbol>
> > 0x0303345e DCC.dll, <unknown symbol>
> > 0x02526a85 SOAPPListGenerator_P5.dll, modCreditReport::GenerateReport
> > (+ 200 bytes), CreditReport.bas, Line 30 (+ 50 bytes)
> > 0x0251d2c4 SOAPPListGenerator_P5.dll,
> > clsBSBBlock::ISOAPJob_PerformSOAPJob (+ 1434 bytes),
> > clsBureauSummaryBlock.cls, Line 133
> > 0x00d0652a ZJobController.dll, CSOAPJobPerformer::ExecuteSOAPJob (+ 164
> > bytes), SOAPJobPerformer.cpp, Line 868 (+ 48 bytes)
> > 0x00d058d4 ZJobController.dll,
> > CSOAPJobPerformer::ValidateAndExecuteSOAPJob (+ 582 bytes),
> > SOAPJobPerformer.cpp, Line 509 (+ 15 bytes)
> > 0x00d061cd ZJobController.dll, CSOAPJobPerformer::PerformGenericSOAPJob
> > (+ 1917 bytes), SOAPJobPerformer.cpp, Line 740 (+ 15 bytes)
> > 0x00d05509 ZJobController.dll,
> > CSOAPJobPerformer::PerformGenericSOAPAPIJob (+ 632 bytes),
> > SOAPJobPerformer.cpp, Line 340

>
> It sounds like the application is trying to allocate memory, but there is a
> problem (maybe not enough memory, object too big, whatever) and it sounds
> like that Microsoft is not handling the error correctly.
>
> Try seeing how much memory the application is using.


The apps are fine - the servers have 4 gig



All times are GMT. The time now is 11:10 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.