You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Joerg Plate <pl...@psyche.kn-bremen.de> on 2002/10/16 18:06:23 UTC
evil scripts kill the server...
Moin, moin
although it never happened to me i have to fight some rumours. Is
it true that you can kill the whole server, not just the script
if you do something wrong with mod_perl? (I doubt it)
--
"I'm working on it." <http://Patterner.de>
Re: evil scripts kill the server...
Posted by do...@idealx.com.
> >although it never happened to me i have to fight some rumours. Is
> >it true that you can kill the whole server, not just the script
> >if you do something wrong with mod_perl? (I doubt it)
>
> It depends on what "wrong thing" you do.
In fact the worse you can do is to kill one of the mod_perl
processes, not the whole server (which is multiprocess) - at least not
under Unix. A new server will be spawned automatically and the clients
will only notice some slowdown (and maybe the "document contains no
data" message, if the server died too early).
--
Dominique QUATRAVAUX Ingénieur développeur senior
01 44 42 00 35 IDEALX
Re: evil scripts kill the server...
Posted by Eric Cholet <ch...@logilune.com>.
--On Wednesday, October 16, 2002 19:48:33 +0100 Ged Haywood
<ge...@www2.jubileegroup.co.uk> wrote:
> Hi there,
>
> On Wed, 16 Oct 2002, Joerg Plate wrote:
>
>> >> Is it true that you can kill the whole server, not just the
>> >> script if you do something wrong with mod_perl?
>>
>> > Yes, I'm afraid it is.
>>
>> How?
>
> For example by swallowing all the memory, by consuming all the CPU,
> and of course by making root access available to the world through
> careless programming practice...
>
> Need I continue?
Yes, please explain how careless programming practice can make root
access available to the world. Apache by default runs under the
unpriviliged user 'nobody', seems to me that giving root access to
the world would require running Apache as root, not something which
can be achieved only by careless programming. Am I missing something?
--
Eric Cholet
Re: evil scripts kill the server...
Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,
On Wed, 16 Oct 2002, Joerg Plate wrote:
> >> Is it true that you can kill the whole server, not just the
> >> script if you do something wrong with mod_perl?
>
> > Yes, I'm afraid it is.
>
> How?
For example by swallowing all the memory, by consuming all the CPU,
and of course by making root access available to the world through
careless programming practice...
Need I continue?
73,
Ged.
Re: evil scripts kill the server...
Posted by Joerg Plate <pl...@psyche.kn-bremen.de>.
>> Is it true that you can kill the whole server, not just the
>> script if you do something wrong with mod_perl?
> Yes, I'm afraid it is.
How?
--
"I'm working on it." <http://Patterner.de>
Re: evil scripts kill the server...
Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,
On Wed, 16 Oct 2002, Joerg Plate wrote:
> although it never happened to me i have to fight some rumours. Is
> it true that you can kill the whole server, not just the script
> if you do something wrong with mod_perl? (I doubt it)
Yes, I'm afraid it is.
73,
Ged.
Re: evil scripts kill the server...
Posted by Per Einar Ellefsen <pe...@oslo.online.no>.
Hi Joerg,
At 18:06 16.10.2002, Joerg Plate wrote:
>although it never happened to me i have to fight some rumours. Is
>it true that you can kill the whole server, not just the script
>if you do something wrong with mod_perl? (I doubt it)
It depends on what "wrong thing" you do. mod_perl gives a great deal of
freedom, and with freedom comes responsibility. Things like using a lot of
memory and the fact that mod_perl scripts/modules can access each others
namespaces can make for some problems. You probably want to look at :
http://perl.apache.org/docs/general/multiuser/multiuser.html
But just throwing an error (because of some unexpected condition, for
example), won't kill the whole server.
--
Per Einar Ellefsen
pereinar@oslo.online.no