Access violation help

Discussion in 'C++' started by SteveB, Dec 13, 2006.

  1. SteveB

    SteveB Guest

    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
    ..
    SteveB, Dec 13, 2006
    #1
    1. Advertising

  2. SteveB

    mlimber Guest

    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
    mlimber, Dec 13, 2006
    #2
    1. Advertising

  3. 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
    Victor Bazarov, Dec 13, 2006
    #3
  4. SteveB

    Salt_Peter Guest

    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.
    Salt_Peter, Dec 13, 2006
    #4
  5. SteveB

    Howard Guest

    [OT] Re: Access violation help

    "Salt_Peter" <> wrote in message
    news:...
    >
    > 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
    Howard, Dec 13, 2006
    #5
  6. SteveB

    Jim Langston Guest

    "SteveB" <> wrote in message
    news:...
    > 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.
    Jim Langston, Dec 14, 2006
    #6
  7. SteveB

    SteveB Guest

    Jim Langston wrote:
    > "SteveB" <> wrote in message
    > news:...
    > > 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
    SteveB, Dec 14, 2006
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news
    Replies:
    0
    Views:
    420
  2. F. Prefect
    Replies:
    5
    Views:
    1,034
    Steven Cheng[MSFT]
    Oct 10, 2004
  3. Doug Trammell

    JNI Access Violation in jvm.dll

    Doug Trammell, Mar 4, 2004, in forum: Java
    Replies:
    5
    Views:
    8,118
    Chris Uppal
    Mar 5, 2004
  4. Allen
    Replies:
    9
    Views:
    394
  5. Steven Reddie

    Catching access violation exceptions

    Steven Reddie, Sep 29, 2003, in forum: C++
    Replies:
    15
    Views:
    1,311
    Alexander Terekhov
    Sep 30, 2003
Loading...

Share This Page