Re: problem using install-info with tar.info

2015-11-22 Thread Gavin Smith
On 9 November 2015 at 16:52, Gavin Smith wrote: > If all it needs is one extra byte in the allocation, we could do: > > Index: install-info.c > === > --- install-info.c (revision 6758) > +++ install-info.c (working copy) > @

Re: problem using install-info with tar.info

2015-11-09 Thread Gavin Smith
On 7 November 2015 at 21:19, Alan Wehmann wrote: > If I have the following: > > if (c == '\n') > { > line_out[offset_out++] = c; > line_out = (char *) realloc ((void *)line_out, allocated_out+1); > /* line_out[offset_out+1] = '\0'; */ > strncat

Re: problem using install-info with tar.info

2015-11-07 Thread Alan Wehmann
If I have the following: if (c == '\n') { line_out[offset_out++] = c; line_out = (char *) realloc ((void *)line_out, allocated_out+1); /* line_out[offset_out+1] = '\0'; */ strncat (*outstr, line_out, offset_out); column = offset_out =

Re: problem using install-info with tar.info

2015-11-07 Thread Gavin Smith
On 7 November 2015 at 14:54, Alan Wehmann wrote: > Here is the Diff output: > > diff -u install-info.c install-info-fixed.c > --- install-info.c 2015-02-27 12:57:27.0 -0600 > +++ install-info-fixed.c2015-11-07 08:48:36.0 -0600 > @@ -1445,6 +1445,8 @@ >if (c ==

Re: problem using install-info with tar.info

2015-11-07 Thread Alan Wehmann
Here is the Diff output: diff -u install-info.c install-info-fixed.c --- install-info.c 2015-02-27 12:57:27.0 -0600 +++ install-info-fixed.c2015-11-07 08:48:36.0 -0600 @@ -1445,6 +1445,8 @@ if (c == '\n') { line_out[offset_out++] = c; +

Re: problem using install-info with tar.info

2015-11-07 Thread Gavin Smith
On 4 November 2015 at 18:38, Alan Wehmann wrote: > In "install-info_orig_seq.c" the line: > > 1447 strncat (*outstr, line_out, offset_out); > > is where the error occurred. > > After some study I decided to try making sure that "line_out" is terminated > by a '\0' character, so I hav

Re: problem using install-info with tar.info

2015-11-07 Thread Gavin Smith
On 4 November 2015 at 18:38, Alan Wehmann wrote: In "install-info_orig_seq.c" the line: 1447 strncat (*outstr, line_out, offset_out); is where the error occurred. > After some study I decided to try making sure that "line_out" is terminated > by a '\0' character, so I have the code

Re: problem using install-info with tar.info

2015-11-04 Thread Alan Wehmann
I believe that I have found and fixed the problem of "install-info tar.info dir". As I had indicated earlier, I was fairly reliably getting errors when using install-info on tar-c.info. This allowed me to study the problem. I put in a lot of printf statments in "install-info.c" and noticed tha

Re: problem using install-info with tar.info

2015-11-01 Thread Gavin Smith
On 31 October 2015 at 23:30, Alan Wehmann wrote: > Neither tar-a.info nor tar-b.info cause an error. I attach tar-c.info. It > causes the error on multiple tries, with or without the presence of a dir > file. > > I created tar-c.info by copying tar-a.info and adding to it the three lines > from

Re: problem using install-info with tar.info

2015-10-31 Thread Alan Wehmann
Neither tar-a.info nor tar-b.info cause an error.  I attach tar-c.info.  It causes the error on multiple tries, with or without the presence of a dir file.I created tar-c.info by copying tar-a.info and adding to it the three lines from tar-b.info.I also attach tar-d.info.  It is like tar-c.info in

Re: problem using install-info with tar.info

2015-10-31 Thread Gavin Smith
On 31 October 2015 at 18:10, Gavin Smith wrote: > Here's something to try: After running > > install-info --debug tar.info dir > > the first time, and dir is created without the correct entries in it, try > > install-info --debug tar.info dir > > again. That would show if the fact that dir didn't

Re: problem using install-info with tar.info

2015-10-31 Thread Gavin Smith
On 31 October 2015 at 15:59, Alan Wehmann wrote: > I attach a tar archive containing "test-suite.log". This is from the > sequence ./configure, make, make check in the texinfo-5.2 distribution that I > downloaded. Okay thanks. There's a good chance that these two failures aren't related to fai

Re: problem using install-info with tar.info

2015-10-31 Thread Alan Wehmann
The naming probably matters, so I attach it with “tar” added to the name. test-suite.log.tar.gz Description: GNU Zip compressed data Alan Wehmann alan.wehm...@gmail.com > On Oct 31, 2015, at 10:59 AM, Alan Wehmann wrote: > > I attach a tar archive containing "test-suite.log". This is from t

Re: problem using install-info with tar.info

2015-10-31 Thread Alan Wehmann
I attach a tar archive containing "test-suite.log". This is from the sequence ./configure, make, make check in the texinfo-5.2 distribution that I downloaded. Alan Wehmann alan.wehm...@gmail.com On Oct 30, 2015, at 6:11 PM, Karl Berry wrote: Alan, did you run make check? test-suite.log.gz

Re: problem using install-info with tar.info

2015-10-31 Thread Alan Wehmann
Today I did the exercise of running ./configure, make and then make check. The abbreviated output from make check was: Testsuite summary for GNU Texinfo 5.2 ==

Re: problem using install-info with tar.info

2015-10-31 Thread Gavin Smith
On 30 October 2015 at 23:11, Karl Berry wrote: > * Tar: (tar). Making tape (or disk) archives. > > The node name is missing (after the closing parenthesis), which is > allowed, although less common. > > Hmm. It's standard practice for dir file entries, as far as I ca

Re: problem using install-info with tar.info

2015-10-30 Thread Alan Wehmann
No, I didn’t run “make check”. I didn’t have to build/make anything. Program “install-info” I got from the macports distribution (https://www.macports.org/ , in the texinfo 6.0 port). The tar-1.28.tar.bz2 download provided “tar.info, tar.info-1, tar.info-2, tar.info-

Re: problem using install-info with tar.info

2015-10-30 Thread Karl Berry
* Tar: (tar). Making tape (or disk) archives. The node name is missing (after the closing parenthesis), which is allowed, although less common. Hmm. It's standard practice for dir file entries, as far as I can see (not counting "Individual utilities"). Maybe the s

Re: problem using install-info with tar.info

2015-10-30 Thread Gavin Smith
On 30 October 2015 at 22:41, Gavin Smith wrote: > Thanks for the detailed testing and report. I tried downloading the > info file and running install-info and it worked fine for me. > > When I ran it through valgrind, I got the following: > > =19388== Warning: invalid file descriptor -1 in syscall

Re: problem using install-info with tar.info

2015-10-30 Thread Gavin Smith
On 30 October 2015 at 18:48, wrote: > I am unable to successfully run "install-info --debug tar.info dir". > The output I get is as follows: > > debug: reading dir file dir > debug: reading input file tar.info > Abort trap: 6 > > and the "dir" file is not properly updated. Thanks for the detaile

problem using install-info with tar.info

2015-10-30 Thread alan . wehmann
I am unable to successfully run "install-info --debug tar.info dir". The output I get is as follows: debug: reading dir file dir debug: reading input file tar.info Abort trap: 6 and the "dir" file is not properly updated. Further details: Version info for install-info: install-info (GNU texinf