From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,721e4267bb06aac1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail From: "Pete E." Newsgroups: comp.lang.ada Subject: Re: Debugging Apex Ada 4.2.0c on Windows XP Pro Date: 25 Jan 2005 12:16:00 -0800 Organization: http://groups.google.com Message-ID: <1106684160.652827.165670@f14g2000cwb.googlegroups.com> References: NNTP-Posting-Host: 32.97.110.142 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1106684174 8051 127.0.0.1 (25 Jan 2005 20:16:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 25 Jan 2005 20:16:14 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=32.97.110.142; posting-account=n0J8Sw0AAAC_UEBgDdK9bo9hxrJx47Jj Xref: g2news1.google.com comp.lang.ada:7981 Date: 2005-01-25T12:16:00-08:00 List-Id: EXT-Turpin, Daniel S wrote: > Thanks Pete. > > Haven't narrowed things down enough to contact Rational yet. We have over 500,000 lines of Ada and quite a number of other languages involved. I'm in the process of building up a stripped down executable to the point where it causes a problem. At the same time, I have to come up with source I am allowed to release to them. Proprietary issues. > > Anyway, when I start up the debugger on the executable it gets through initialization and goes to the Ready state. At that point, stepping into the executable or setting a break and hitting Go results in a popup from a_db.exe that says "a_db.exe has encountered a problem and needs to close. We are sorry for the inconvenience." The files assembled for transmittal to Microsoft (which I can't do) include the crash dump for a_db.exe and an appcompat.txt file that just lists a_db.exe and kernel32.dll. The error signature is: > > EventType: BEX P1: a_db.exe P2: 0.0.0.0 P3: 3e3f8ab6 > P4: dbghelp.dll P5: 5.1.2600.2180 P6: 4110969a P7: 0001295d > P8: c0000409 P9: 00000000 > > After this, once the popups are dismissed, the a_db.exe process dies, but the a_db_stop.exe process does not and must be killed to allow the IDE to continue. > > Right now I'm really just looking to see if anyone has experience a similar problem running on Windows XP. I don't have this problem on Windows 2000 systems. I'm certain it's something in elaboration that is causing an exception, but haven't been real successful in finding where yet. Our elaboration code is rather extensive as is our use of exception based programming, which makes it tough to set a break on an exception/signal since there are hundreds or even thousands of them during elaboration. > > Dan I haven't seen that problem on Windows XP myself, but I have not upgraded to SP2 yet. Do you know if it was previously a problem with SP1? I assume a simple hello world program works ok in the debugger? Instead of breaking on exceptions, you can try to break on the name of the elaboration procedure for a package. For the package whose elaboration procedure you want to break, export the name of the elaboration procedure using 'pragma Export_Elaboration_Procedure ("package_name_body_elaboration");' in the package body. In the debugger, on the break dialog, set the dropdown to "On Location" and use the same name "package_name_body_elaboration" you exported by the pragma. This might help you narrow down where the crash is coming from. Regards, Pete Eberlein