[Debian-science-sagemath] GAP: issue related to compressed manual.six: PATCHES: reproducing issue
Bill Allombert
ballombe at debian.org
Wed Dec 14 19:46:55 UTC 2016
On Mon, Dec 12, 2016 at 10:19:18PM +0100, Bill Allombert wrote:
> On Mon, Dec 12, 2016 at 06:06:37PM +0100, Bill Allombert wrote:
> > On Sun, Dec 11, 2016 at 11:15:00PM +0000, Ximin Luo wrote:
> > > Did you remove test.w before trying the tests? I think it is still
> > > somehow autpgrp-related. Also the "corrupted" messages seem to be
> > > separate from the actual failure of "no method found":
> >
> > I agree with you. But the "corrupted" messages are still a bug even
> > if they do not affect Sage.
>
> I can reproduce this bug using a pristine gap installation without any
> Debian stuff:
>
> rm -f workspace file file.gz
> echo "abcdefgh" > file
> gzip file
> echo 'SaveWorkspace("workspace");' | bin/*/gap -q -b
> echo 'ReadLine(InputTextFile("file"));' | bin/*/gap -q -b
> echo 'ReadLine(InputTextFile("file"));' | bin/*/gap -q -b -L workspace
>
> I will report it upstream.
Upstream send me the attached patch which fix this problem.
Please confirm this address the original issue.
Cheers,
--
Bill. <ballombe at debian.org>
Imagine a large red swirl here.
-------------- next part --------------
Index: gap-4r8p6/src/sysfiles.c
===================================================================
--- gap-4r8p6.orig/src/sysfiles.c
+++ gap-4r8p6/src/sysfiles.c
@@ -2332,7 +2332,7 @@ Int HasAvailableBytes( UInt fid )
syBuf[fid].fp == -1)
return -1;
- if (syBuf[fid].bufno > 0)
+ if (syBuf[fid].bufno >= 0)
{
bufno = syBuf[fid].bufno;
if (syBuffers[bufno].bufstart < syBuffers[bufno].buflen)
More information about the Debian-science-sagemath
mailing list