Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Memory protection...

1 view
Skip to first unread message

Virtual Cowboy

unread,
May 12, 1997, 3:00:00 AM5/12/97
to

is there a good programmer out there who wants to write a memory-protection
patch... ? That lets me remove crashed tasks like in (ARHG, &/(%ง) Windoze...
C'ya
--
___ -+- ____________________ __________________________________
\ \__ /\_____/_ ____________/ / / _______________/ ____ ______ \___
// / // / _ \// / / / _ // / // / /. / / / / __ \/. / / /
/ / / // / // / // / /__ / /__/ / / / / //__ / / /__ . /
\____/__/__/__/__/_____/__/__/_____/ \____/_____/________/_____/_____/_____/

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.3i

mQBtAzNbtlwAAAEDAOsilyHKFPvoEV0ZCb2jIiGChE1W1PNmR23qFeKA/qrwrWuU
uY7dkgRf+RetV8OT0G9wJCZE1eZt5LqLVhI5oOTd2w2cOBHz+HguVHNJ/sPQ5x6q
aC6heD2iT7dQ0YfMsQAFEbQdVmlydHVhbCBDb3dib3kgdmljdGhjQGlibS5uZXSJ
AHUDBRAzW7Zdok+3UNGHzLEBAd7nAv9A5HmpaHmX/ccQTZEALe3olMvMR5nw5+Y7
6kBHlWxFCVMbbXL+KPiuc0sa+pfoLJZpyDtPXPS+X4sgdneb6JIoL7kD1PIBamAE
nDay87lcUgHv36M0f03xomNNV6H+DEU=
=X+2D
-----END PGP PUBLIC KEY BLOCK-----


Christian Stieber

unread,
May 13, 1997, 3:00:00 AM5/13/97
to

Virtual Cowboy (vic...@ibm.net) wrote:
> is there a good programmer out there who wants to write a memory-protection
> patch... ? That lets me remove crashed tasks

It's not possible if you want to keep 100% compatability with
existing applications, and not easily implemented by just patching
some functions.

-> This should be left to the people working on AmigaOS (if any), or
the ones working on a replacement.

Christian

Mike Redrobe

unread,
May 13, 1997, 3:00:00 AM5/13/97
to

Hi, Virtual Cowboy , on 12-May-97 21:00:30 you scribbled....
VC> is there a good programmer out there who wants to write a
VC> memory-protection patch... ? That lets me remove crashed tasks like in
VC> (ARHG, &/(%ง) Windoze... C'ya


"memory protection patch" -not possible

but you can get similar functionality with enforcer (needs mmu) or MCP
and something like sysinspector(to remove task,windows,screens allocated)

now if we could tie these together you'd get something nice or something
horrible ;)

Mike

--
---------------------------------------------------------------------------
Mike Redrobe - mailto:mi...@redrobe.demon.co.uk MikeRR on #Amiga
http://www.redrobe.demon.co.uk
---------------------------------------------------------------------------


Juergen Fischer

unread,
May 14, 1997, 3:00:00 AM5/14/97
to

<5l9hel$b...@squire.cen.brad.ac.uk>... LA GUEST (lag...@comp.brad.ac.uk) wrote:
>
> : is there a good programmer out there who wants to write a memory-protection
> : patch... ? That lets me remove crashed tasks like in (ARHG, &/(%ง) Windoze...
> : C'ya
>
> Many people say that it isn't possible to implement MP/VM on the Amiga without breaking lots of applications.
>
at least you could protect unallocated memory. would detect buggy software
quite easy. its no real protection, but programmers writing software with
that kind of protection would deliver less buggy software.

and yes, a kill instruction would be handy!
is there maybe a handy too out there where I get a list of all tasks
to select the one I want to kill ?

--- fisc...@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) =:) ---

Eka Durmin

unread,
May 14, 1997, 3:00:00 AM5/14/97
to

LA GUEST <lag...@comp.brad.ac.uk> wrote:
> : is there a good programmer out there who wants to write a memory-protection
> : patch... ? That lets me remove crashed tasks like in (ARHG, &/(%ง) Windoze...
> : C'ya

> Many people say that it isn't possible to implement MP/VM on the Amiga without breaking lots of applications.

I use VMM for Virtual Memory... and it works fine!

It would be very very nice if there is a program wich can do MP.


Regards,
--
__|||||__
(o o)
+-----------------------oOO-(_)-OOo------------------------+
| email: e...@stack.nl (MIME/PGP welcome!) |
| www: http://www.stack.nl/~eka/ (Visit it!) |
+----------------------------------------------------------+

A Welcoming Smile
A Sympathetic Ear
A Kind Word
Can Show God's Love

Christian Stieber

unread,
May 14, 1997, 3:00:00 AM5/14/97
to

Juergen Fischer (fisc...@Informatik.TU-Muenchen.DE) wrote:

> at least you could protect unallocated memory.

Very difficult. Amiga programs don't care about page sizes, so how
do you protect half a page?

> is there maybe a handy too out there where I get a list of all tasks
> to select the one I want to kill ?

Verz dangerous. If the program you want to kill has outstanding
messages, is waiting for signals or other things, killing it
will trash memory (best case) when any of these events happen,
and the OS tries to signal/restart a non-existing task.

Now, why do you want to kill a program, anyway? You'll have to
reboot anyway, since a) you don't know what the program has done
to the system, and b) killing it won't free allocated resources.

Christian


--
Christian Stieber sti...@informatik.tu-muenchen.de
Fortune cookie of the day:
They say that once upon a time xans would never scratch your boots.

Kyzer

unread,
May 14, 1997, 3:00:00 AM5/14/97
to

When Juergen Fischer met comp.sys.amiga.programmer....:
: and yes, a kill instruction would be handy!
: is there maybe a handy too out there where I get a list of all tasks

: to select the one I want to kill ?

There's plenty, but the problem is not killing the task (no problem there)
but freeing the resources it allocated when it was running, and killing it's
childtasks, things like that. This is why we need Resource Tracking more than
MP or VM, folks! It's much easier to implement, also.

--
Stuart 'Kyzer' Caie - Kyzer/CSG |undergraduate of Aberdeen University |100%
http://www.abdn.ac.uk/~u13sac |My opinions aren't those of Aberdeen |Amiga -
ky...@4u.net ky...@hotmail.com |University or AUCC, thankfully.***** |always!

--
Random sig of the day:
BONUS: Present this .sig at Tesco for a 15% discount.

Wez Furlong

unread,
May 14, 1997, 3:00:00 AM5/14/97
to

On 14 May 1997 18:48:34 GMT, Kyzer <junk...@sysc.abdn.ac.uk> wrote:
: There's plenty, but the problem is not killing the task (no problem there)

: but freeing the resources it allocated when it was running, and killing it's
: childtasks, things like that. This is why we need Resource Tracking more than
: MP or VM, folks! It's much easier to implement, also.

The Kill from muFS does some trickery to try and shut down windows and
screens etc. but obviously can't free up any memory alloc'ed by the
program itself, since this isn't pointed to by the Task* or Process*
pointers -- how about rewriting malloc (and similar functions) to use
the MemList pointer in the Task structure? We would be one step nearer
resource tracking...

--
Wez - Electronics Undergraduate at the University of York
URL : http://www.twinklestar.demon.co.uk/

Insult Of The Day: Thou unmuzzled swag-bellied apple-john!

Hans Guijt

unread,
May 14, 1997, 3:00:00 AM5/14/97
to

Juergen Fischer (fisc...@Informatik.TU-Muenchen.DE) wrote:
>and yes, a kill instruction would be handy!
>is there maybe a handy too out there where I get a list of all tasks
>to select the one I want to kill ?

ARTM, aka Amiga Real Time Monitor. Lets you kill and tinker with system
objects as much as you want.


Hans


Christian Stieber

unread,
May 15, 1997, 3:00:00 AM5/15/97
to

Wez Furlong (wjf...@york.ac.uk) wrote:

> pointers -- how about rewriting malloc (and similar functions) to use
> the MemList pointer in the Task structure? We would be one step nearer
> resource tracking...

This will break existing programs, too --- it is perfectly okay to
allocate memory from one task, terminate that task, and free the
memory from another task.

Christian

Martin Recktenwald

unread,
May 15, 1997, 3:00:00 AM5/15/97
to

In comp.sys.amiga.programmer Wez Furlong <wjf...@york.ac.uk> wrote:
> pointers -- how about rewriting malloc (and similar functions) to use
^^^^^^
There is no such function in the AmigaOS.
You're probably talking about AllocMem() & Co.

> the MemList pointer in the Task structure? We would be one step nearer
> resource tracking...

Only 1000 more miles to go ...

Martin.
-------------------------------------------------- mre...@cscip.uni-sb.de

Rask Ingemann Lambertsen

unread,
May 15, 1997, 3:00:00 AM5/15/97
to

On 13-Maj-97 10:57:02, Christian Stieber wrote the following about "Re: Memory
protection...":


> Virtual Cowboy (vic...@ibm.net) wrote:
>> is there a good programmer out there who wants to write a memory-protection
>> patch... ? That lets me remove crashed tasks

> It's not possible if you want to keep 100% compatability with
> existing applications,

But the whole point of memory protection is that you _don't_ want to stay
100% compatible with existing applications ;-)

Seriously, obviously the broken programmes will break. As long as the
programmes that play by the OS rules still work, fine.

Regards,

/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻTŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\
| Rask Ingemann Lambertsen | E-mail: mailto:ra...@kampsax.dtu.dk |
| Registered Phase5 developer | WWW: http://www.gbar.dtu.dk/~c948374/ |
| A4k/030, 16 MB, 3 GB, Ariadne | "ThrustMe" on XPilot, ARCnet and IRC |
| I'm only paranoid because everyone's against me. |


Martin Recktenwald

unread,
May 16, 1997, 3:00:00 AM5/16/97
to

In comp.sys.amiga.programmer Wez Furlong <wjf...@york.ac.uk> wrote:

> Hmmm, why don't we rewrite the OS?.... :-)

What do you think is AROS? :-)

> IIRC, the AROS team have implemented memory protection fairly recently,

Your're mixing something up here. Ressource tracking is partially
implemented. No MP yet. To many open questions ...

> its a shame that they haven't got a full replacement for all of the OS
> yet. *sigh*

You're welcome to join the AROS team and write what you're missing :-)

Martin.
-------------------------------------------------- mre...@cscip.uni-sb.de

Wez Furlong

unread,
May 17, 1997, 3:00:00 AM5/17/97
to

On 16 May 1997 13:24:17 GMT, Martin Recktenwald
<mre...@kap03.cscip.uni-sb.de> wrote:
: In comp.sys.amiga.programmer Wez Furlong <wjf...@york.ac.uk> wrote:
: > its a shame that they haven't got a full replacement for all of the OS

: > yet. *sigh*
:
: You're welcome to join the AROS team and write what you're missing :-)

If I had the time (and a magic supply of money)... :-)

--
Wez - Electronics Undergraduate at the University of York
URL : http://www.twinklestar.demon.co.uk/

Insult Of The Day: Thou lumpish tardy-gaited flirt-gill!

Kyzer

unread,
May 18, 1997, 3:00:00 AM5/18/97
to

Hans Guijt of hgu...@inter.nl.net wrote in comp.sys.amiga.programmer:

And then lock up and kill the computer 20 minutes later when you LEAST EXPECT
IT! :)

--
Stuart 'Kyzer' Caie - Kyzer/CSG |undergraduate of Aberdeen University |100%
http://www.abdn.ac.uk/~u13sac |My opinions aren't those of Aberdeen |Amiga -
ky...@4u.net ky...@hotmail.com |University or AUCC, thankfully.***** |always!

--
Random sig of the day:

This sig is under arrest! It has the right to remain silent!

Marc 'Nepomuk' Heuler

unread,
May 19, 1997, 3:00:00 AM5/19/97
to

In article <5l9acu$o...@sunsystem5.informatik.tu-muenchen.de>, Christian Stieber writes:

> Virtual Cowboy (vic...@ibm.net) wrote:
> > is there a good programmer out there who wants to write a memory-protection
> > patch... ? That lets me remove crashed tasks
>
> It's not possible if you want to keep 100% compatability with

> existing applications, and not easily implemented by just patching
> some functions.

I think it is possible, when 98% compatibility and <75% protection are
enough. Just develop a cooperative memprot library. Then supply the users
with system patches to make old apps use the library for most of their
memory. High compatibility can be reached by restricting usage to known
apps, much like GIGAMEM does it.

New apps can directly interface to the library, having identified
themselves beforehand to the patch system.

100% users install the library system only (no patches) and get 100%
compatibility in return for most (but not all) benefits.

Christian Stieber

unread,
May 20, 1997, 3:00:00 AM5/20/97
to

Rask Ingemann Lambertsen (ra...@kampsax.dtu.dk) wrote:

> > It's not possible if you want to keep 100% compatability with
> > existing applications,
>

> But the whole point of memory protection is that you _don't_ want to stay
> 100% compatible with existing applications ;-)
>
> Seriously, obviously the broken programmes will break. As long as the
> programmes that play by the OS rules still work, fine.

OS rules don't cazre about memory protection -> broken programs will
no longer work. Many non-broken programs will no longer work.

0 new messages