Re: int main(void) { return main(); }
- From: Daniel Rudy <spamthis@xxxxxxxxxxxx>
- Date: Thu, 29 Mar 2007 21:29:19 -0700
At about the time of 3/29/2007 12:52 PM, Army1987 stated the following:
"Lew Pitcher" <lpitcher@xxxxxxxxxxxx> ha scritto nel messaggio
news:1175196417.169883.91080@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Eric answered your question, and I have a guess about the why part.It is more likely that the loop
Probably, since each call has to store the return address, you ran out
of automatic storage.
for (i=0; malloc(dim); i++) /*nothing*/ ;
exhausted available 'heap' memory, and the system (what-ever that is
wrt CLC <wink>) forcibly terminated the program.
I guess he was referring to the program in the object line, not to that in
the signature.
<ot>
BTW, I tried something very similar to that (signature) on a terminal logged
on a workstation (running on CentOS) at university, and in a short time it
raised an exception such as "Panic in 5 seconds" or something like that,
crashing the server and receiving curses from the other users who were
logged. A professor was sent to reboot the server as nobody else knew where
it was physically located. (Actually, I didn't expect that the OS *actually*
permitted me to do so rather than killing the process or making the malloc
return NULL. Taking into account that I didn't even have root privileges...)
LOL
What was the fallout from that? Considering that you weren't even root,
did they know it was you who did it?
Most modern operating systems that use memory protection are protected
enough so if a program goes out of control, the OS kills it in short
order. Even programs ran under UID 0 (root) can't really crash the
system on their own. Now something like
dd if=/dev/random of=dev/kmem bs=1024
will kill the system in short order.
--
Daniel Rudy
Email address has been base64 encoded to reduce spam
Decode email address using b64decode or uudecode -m
Why geeks like computers: look chat date touch grep make unzip
strip view finger mount fcsk more fcsk yes spray umount sleep
.
- Follow-Ups:
- Re: int main(void) { return main(); }
- From: Army1987
- Re: int main(void) { return main(); }
- From: JimS
- Re: int main(void) { return main(); }
- References:
- int main(void) { return main(); }
- From: Army1987
- Re: int main(void) { return main(); }
- From: user923005
- Re: int main(void) { return main(); }
- From: Lew Pitcher
- Re: int main(void) { return main(); }
- From: Army1987
- int main(void) { return main(); }
- Prev by Date: Re: int main(void) { return main(); }
- Next by Date: Re: A question about sort stable
- Previous by thread: Re: int main(void) { return main(); }
- Next by thread: Re: int main(void) { return main(); }
- Index(es):
Relevant Pages
|