Forum: GHDL Patch - ghdl try to close stdout

Posted by Sylvere Teissier (Guest)
on 2008-12-18 19:34
Attachment: ghdl_bug_stdout.patch (578 Bytes)
Attachment: tb.vhd (308 Bytes)
(Received via mailing list)
Hi Tristan,
it seems i found and solved a bug:
GRT's "File_Close" procedure doesn't check if the file is stdout or
stdin before closing it.

testbench that show the bug and patch are in attachement
Posted by Tristan Gingold (Guest)
on 2008-12-18 21:30
(Received via mailing list)
On Thu, Dec 18, 2008 at 07:32:42PM +0100, Sylvere Teissier wrote:
> Hi Tristan,
> it seems i found and solved a bug:
> GRT's "File_Close" procedure doesn't check if the file is stdout or
> stdin before closing it.
> 
> testbench that show the bug and patch are in attachement

I think you are not allowed to open STD_INPUT or STD_OUTPUT except in
std.textio.
That's being said, it is currently allowed by GHDL and I don't think we
should prevent the user from doing so.

I will add your patch.

Thanks,
Tristan.
This topic is locked and can not be replied to.