[net.sources.bugs] Orphaned Response

guy@rlgvax.UUCP (Guy Harris) (03/16/85)

> 	Suprise!  CBREAK is a 'Berkeley-ism' and is NOT available on
> either any of the Bell UNIX systems nor any other system that is based
> on Bell (like HP-UX).

Surprise!  *ALL* UNIX systems are based on Bell; if they're not, they're
UNIX-compatible but aren't UNIX systems.  4.xBSD is based on UNIX/32V, which
was a Bell release; you need a license from Bell to run 4.xBSD.  UNIX/32V,
in turn, was a VAX port of V7.  *V7*, not any Berkeley release, introduced
CBREAK.

While we're at it, could we please send discussions of source to
"net.sources.bugs"?  It's easy to reroute discussions; your news poster
should throw you into an editor, with the header lines in the file being
edited.  Just change "net.sources" to "net.sources.bugs" in the "Newsgroups:"
line.  Even better, put

	Followup-To: net.sources.bugs

in all "net.sources" postings.  That way, all followups (except those posted
by obsolete news software which should be replaced) will go to
"net.sources.bugs".
-- 
	Guy Harris
	{seismo,ihnp4,allegra}!rlgvax!guy

keenan@inmet.UUCP (05/29/85)

I ran into the same problems you did (long name and core dump with
patch on BSD2.9).  Its scarry having a core dump in a 1700 line program
you know nothing about. With lots of print statements, I tracked it
down. Seems that the 2.9 compiler has problems with longs being
autodecremented within an array reference. The decrement takes place as
if it was an integer.  Putting the decrement on the next line seems to
fix the problem.  Here is a context diff (that you could apply if patch
worked!) for the core dump problem.  The problem that I found was in
the routine another_hunk. Let me know of others.

*** oldpatch.c	Sun May 26 18:14:49 1985
--- patch.c	Sun May 26 21:03:19 1985
***************
*** 1342,1348
      int context = 0;
  
      while (p_end >= 0) {
! 	free(p_line[p_end--]);
      }
      assert(p_end == -1);
  

--- 1342,1349 -----
      int context = 0;
  
      while (p_end >= 0) {
! 	free(p_line[p_end]);		/* Changed from postdecrement */
! 	p_end--;			/* by Keenan Ross for BSD2.9  */
      }
      assert(p_end == -1);
  

--keenan ross		UUCP:     {ihnp4,harpo}!inmet!keenan
 Intermetrics, Inc.	INTERNET: ima!inmet!keenan@CCA-UNIX.ARPA
 733 Concord Ave.
 Cambridge, MA  02138	PHONE:    (617) 661-1840