comp.lang.ada
 help / color / mirror / Atom feed
* Weird Bug in Get_Line
@ 2017-04-26  7:38 Brian Kolden
  2017-04-26  8:28 ` Brian Drummond
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Brian Kolden @ 2017-04-26  7:38 UTC (permalink / raw)


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?


with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
	type String_Pointer is access all String;
	S : String := Get_Line;
begin
	null;
end Test;

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-05-14 21:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-26  7:38 Weird Bug in Get_Line Brian Kolden
2017-04-26  8:28 ` Brian Drummond
2017-04-26  8:42   ` Brian Kolden
2017-04-26  9:10 ` Brian Kolden
2017-04-26 10:58 ` Simon Wright
2017-04-26 17:03 ` Jeffrey R. Carter
2017-04-26 19:32   ` Brian Kolden
2017-04-26 20:44     ` Jeffrey R. Carter
2017-05-14 21:49       ` moy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox