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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Weird Bug in Get_Line Date: Wed, 26 Apr 2017 11:58:54 +0100 Organization: A noiseless patient Spider Message-ID: References: <1896933e-e985-420b-a4fe-9cca76af9976@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="906ec6ba7ed452083f46f9b2c701af04"; logging-data="1815"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nqe7bV9xCENK6zIlc1xzWR1oTNbSBzhg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:DcEhMUQDHtaibieTsTj1v21Crkg= sha1:WkgqjzqgyFEQ8S4KEwBOujDJQFA= Xref: news.eternal-september.org comp.lang.ada:46632 Date: 2017-04-26T11:58:54+01:00 List-Id: Brian Kolden writes: > I came across an interesting issue in the Get_Line function. When > piping in a file (using the linux cammand '<') GNAT "raises > ADA.IO_EXCEPTIONS.END_ERROR : a-tigeli.adb:96". > > However, the interesting issue is this only happens for a very small > number of line lengths. I've noticed the exception is only thrown on > lines with length 500, 501, 1000, 1001. Lines bigger or smaller don't > seem to raise the issue, even other multiples of 500. This only is > effected when using a file as input, copying and pasting the line into > the terminal does not seem to trigger it. > > So, is this an GNAT issue or an OS issue? A GNAT issue, most likely. Check out http://blog.adacore.com/formal-verification-of-legacy-code