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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1f6393e0d603aa6a X-Google-Attributes: gid103376,public From: "Kevin J. Weise" Subject: Re: Problems with GNAT Date: 1996/08/23 Message-ID: <4vl90g$8v7@michp1.redstone.army.mil>#1/1 X-Deja-AN: 176102127 references: <4vl098$7ip@vanuata.dcs.gla.ac.uk> content-type: text/plain; charset=us-ascii organization: Redstone Arsenal, Alabama mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 1.22 (Windows; I; 16bit) Date: 1996-08-23T00:00:00+00:00 List-Id: Tim wrote (with deletions): >I have been writing bits of Ada code on a UNIX system. >I have developed a package of utilities for sound generation. > >Upon trying to run a driver program (packtest.adb) I had written to >exercise this package of facilities I kept getting a constraint error. > >In attempting to locate this bug I used gdb. >Which eventually came up with:- >(gdb) step >__gnat_raise_constraint_error () at a-raise.c:154 >a-raise.c:154: No such file or directory. >Current language: auto; currently c >(gdb) where >#0 __gnat_raise_constraint_error () at a-raise.c:154 >#1 0x13bd8 in packtest () at packtest.adb:64 >#2 0x236c in main (argc=1, argv=0xeffff97c) at b_packtest.c:35 > >Does anybody know what is going on here? I'm guessing here, since you didn't (maybe couldn't?) post your source code. But it looks to me like something in line 64 of packtest.adb raised a Constraint_Error. Perhaps if you put in breakpoints before line 64 and query for values of different variables you can find one out of range. I would look for boundary condition problems (e.g., attempts to reference close to the beginning or end of an array, such that some index attempts to reference a non-existant array element. Beyond this, without more information, I don't see that we can help you very much. --------------------------------------------------------------- Kevin J. Weise email: kweise@sed.redstone.army.mil COSLA Corporation voice: (205) 842-9083 Huntsville, AL .. standard disclaimers apply