[ LUGOS ] [ OFF-TOPIC ] Core files...

Marko Mlakar mare na fury.navy.eu.org
Sob Dec 27 09:00:01 CET 1997


On Sat, Dec 27, 1997 at 02:01:50AM +0100, David Klasinc wrote:
> Banzai!
> 
>  Ok, tole gre lahko v kak arhiv pod naslov "Najbolj foo vprasanje" *grin*
> 
> Zanima me, ali se da program prisilit, da bi naredil core dump? nene,
> nocem division by zero... :) Rad bi nekaj takega:
> 
> foo = 0;
> for (;;) {
>   foo++;
>   if (!(foo % 5)) {
>     dump_core();
>     fprint(stderr, "Tale nas program se je pravkar us**l!\r\n";
>   }
> }
> 
> 
> Bi se to dalo skupaj spacati?
> 
> David!
> --------------
> 
> "To wildly go, where no whale has gone before!"
> 
> --------------

Se pravi hoces naredit dump_core() funkcijo, ki bi naredila dump core?
Nared eno kopiranje ne-allociranega pointerja :)


				mare

-- 

                ==----------------------------------------==
                    Marko Mlakar : mare na fury.navy.eu.org
                ====------------------------------------====
		PGP Public key: finger mare na fury.navy.eu.org
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i

iQCVAwUBNKS1gLqSHHwxgsOFAQE4agQAq67QicNqPcLil2CMjq9QomPIShKZhnO2
eazfjB9wyWCDAGj1EucCet7K0Hhrd1UpeffhmWcBBeykJTFjnj2fYmAvNXmhuoXz
1BhiXMCl+beS+TUEr3thfLoxpmQaOw5Y+ucTIQbYa49qVhsoJ2ajZrXfnHmJE9Z3
KQjU6aBB0gc=
=C6Jr
-----END PGP SIGNATURE-----





Dodatne informacije o seznamu Starilist