*BSD News Article 77754


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!psgrain!newsfeed.internetmci.com!www.nntp.primenet.com!nntp.primenet.com!news.sprintlink.net!news-stk-3.sprintlink.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!uknet!newsfeed.ed.ac.uk!tattoo.ed.ac.uk!jlothian
From: jlothian@tattoo.ed.ac.uk (J Lothian)
Newsgroups: comp.bugs.4bsd
Subject: UW 4.3BSD+NFS ptrace bug & fix
Date: 7 Sep 1996 20:06:30 GMT
Organization: Edinburgh University
Lines: 37
Distribution: world
Message-ID: <50skk6$kom@scotsman.ed.ac.uk>
NNTP-Posting-Host: tattoo.ed.ac.uk
Keywords: old & cranky


This is a bugfix for the University of Wisconsin 
4.3BSD+NFS distribution, vintage 1986. I haven't managed
to find a report of this bug previously, but that doesn't 
mean there hasn't been one. I've never come across anybody
else running this version of 4.3. 

Description: 
Running dbx on a program prevents you from being able
to run the program again; you get ETXTBSY.

Reproduce by:
dbx <something> (where <something> is linked as a pure-text 
executable) and run it, then try running <something> again, 
either stand-alone or under dbx. You get 'text file busy'.

Fix:
In /usr/src/sys/sys/sys_process.c, alter the line that reads
vp->vflags |= ~VTEXT
to
vp->vflags &= ~VTEXT

I'd be very grateful for any pointers to public lists of 
patches for this distribution -- I've already got the
standard 4.3 ones, but it looks as though there may have
been a few extras for the UW variant :-)

James

-- 

-------------------------------------------------------
James Lothian        |      "It's life, Jim, 
james@uk.ac.ed.caad  |   but not as we know it"
-------------------------------------------------------
          These opinions have nothing to do 
             with Edinburgh University.