From: denham@denham.zk3.dec.com (Jeffrey M. Denham)
Subject: Re: Overwriting exe's crashes osf programs ? Why
Date: 1996/02/22 [thread overview]
Message-ID: <4giut5$rvv@zk2nws.zko.dec.com> (raw)
In-Reply-To: 4gie5u$ngn@lal.interserv.net
In article <4gie5u$ngn@lal.interserv.net>, levine@amarex.com writes:
>When we overwrite executables on disk programs running that exe crash...Can I aviod
>with any link options ???
>
> Jeremy Levine - levine@amarex.com
>
>
This should be in the FAQ too. The Digitial UNIX I/O system doesn't
support the ETXTBUSY functionality of some UNIX-based OS. The core
dump happens when the thread running the overwritten program attempts
to page in something from the image. What evers was at the old location
may no longer be good text, so it dies with an illegal instruction fault.
There's no cc/ld option to prevent this directly. Instead, you need
a rule to mv a.out (or whatever -o specified) to the final image name.
The mv leaves the original file open internally without interference.
When the last processes running the program exits, the internal
copy of the replaced program will be deleted.
--
-----------------------------------------------------------------------------
Jeff Denham, Unix Software Group, Digital Equipment Corporation
email: denham@zk3.dec.com, voice: (603) 881-0057
next prev parent reply other threads:[~1996-02-22 5:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-02-22 5:00 Overwriting exe's crashes osf programs ? Why levine
1996-02-22 5:00 ` Jeffrey M. Denham [this message]
1996-02-23 5:00 ` Richard Westerik
1996-02-25 5:00 ` Mike Iglesias
1996-02-25 5:00 ` Richard Westerik
1996-02-22 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-02-22 5:00 ` Thomas Graichen
1996-02-27 5:00 ` Jon Trulson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox