zsh-workers
 help / color / mirror / code / Atom feed
* SEGV on here-documents
@ 1995-09-04 18:36 Zoltan Hidvegi
  1995-09-05 15:12 ` P.Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Zoltan Hidvegi @ 1995-09-04 18:36 UTC (permalink / raw)
  To: zsh-workers

If a here-document contains a line longer than 255 characters, it causes SEGV
(not on all OS, eg. on Solaris it only produces a wrong output, but it causes
SEGV on elf-linux).  I had no time to trace the bug but it may be related to
Peters input patches (in which case it is not reproducible with vanilla
beta10).

Zoltan


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

* Re: SEGV on here-documents
  1995-09-04 18:36 SEGV on here-documents Zoltan Hidvegi
@ 1995-09-05 15:12 ` P.Stephenson
  1995-09-05 17:36   ` Zoltan Hidvegi
  0 siblings, 1 reply; 3+ messages in thread
From: P.Stephenson @ 1995-09-05 15:12 UTC (permalink / raw)
  To: Zsh hackers list

hzoli@cs.elte.hu wrote:
> If a here-document contains a line longer than 255 characters, it causes SEGV
> (not on all OS, eg. on Solaris it only produces a wrong output, but it causes
> SEGV on elf-linux).  I had no time to trace the bug but it may be related to
> Peters input patches (in which case it is not reproducible with vanilla
> beta10).

Seems to works OK on 2.6-beta10 with my input patches for up to 365
characters on OSF/1, but I'd like to hear more.

-- 
Peter Stephenson <P.Stephenson@swansea.ac.uk>  Tel: +44 1792 205678 extn. 4461
WWW:  http://python.swan.ac.uk/~pypeters/      Fax: +44 1792 295324
Department of Physics, University of Wales, Swansea,
Singleton Park, Swansea, SA2 8PP, U.K.


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

* Re: SEGV on here-documents
  1995-09-05 15:12 ` P.Stephenson
@ 1995-09-05 17:36   ` Zoltan Hidvegi
  0 siblings, 0 replies; 3+ messages in thread
From: Zoltan Hidvegi @ 1995-09-05 17:36 UTC (permalink / raw)
  To: P.Stephenson

Peter Stephenson wrote:
> hzoli@cs.elte.hu wrote:
> > If a here-document contains a line longer than 255 characters, it causes SEGV
> > (not on all OS, eg. on Solaris it only produces a wrong output, but it causes
> > SEGV on elf-linux).  I had no time to trace the bug but it may be related to
> > Peters input patches (in which case it is not reproducible with vanilla
> > beta10).
> 
> Seems to works OK on 2.6-beta10 with my input patches for up to 365
> characters on OSF/1, but I'd like to hear more.

On OSF/1 it works for me as well.  It seems that the bad thing happens
somewhere in gethere() in exec.c.  Unfortunately I really have no time to
debug it now, I have to sysadm a large Unix network with 7 different OS and
I'll also continue my studies in the University and give some lectures
and that's a bit too much.

I looked at my rcs and I see that Peter's input patch changes only one line,
hgets() to ingets() so the problem is probably not in input.c.

Zoltan


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

end of thread, other threads:[~1995-09-05 20:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-09-04 18:36 SEGV on here-documents Zoltan Hidvegi
1995-09-05 15:12 ` P.Stephenson
1995-09-05 17:36   ` Zoltan Hidvegi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).