The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: david@kdbarto.org (David)
Subject: [TUHS] self-reproducing programs
Date: Thu, 24 Mar 2016 06:45:14 -0700	[thread overview]
Message-ID: <C562F46A-6AFC-44BE-A482-1C559A9EBF7B@kdbarto.org> (raw)
In-Reply-To: <mailman.144.1458776817.15972.tuhs@minnie.tuhs.org>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 830 bytes --]

Not quite a self reproducing program and I did take down one of the UCSD servers one day.

I was writing a shell script to do some complex and long running task. This was in the early days of the shell supporting functions. The script had a large number of functions and I named one of them to be the same name as the shell script.

I set it in motion and logged out, as I knew it would take several hours to finish the work.

The next day I logged in to find that the machine had the load spike as the shell script recursively started itself when it got to the function call that had the same name as the shell script. The admin kindly sent me a ‘top' output showing the load at several hundred and all the jobs having my name and being my shell script.

Under this he wrote: “Never do this again.”

I haven’t.

	David



       reply	other threads:[~2016-03-24 13:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.144.1458776817.15972.tuhs@minnie.tuhs.org>
2016-03-24 13:45 ` David [this message]
2016-03-24 14:24   ` Tony Finch
2016-03-24 14:41     ` Random832

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C562F46A-6AFC-44BE-A482-1C559A9EBF7B@kdbarto.org \
    --to=david@kdbarto.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).