Monday, October 31, 2005

Eating up all your memory

// Wasting my hate.
int main() {
  long double *x;
  while(1) 
    x=new long double;
}



Result:

Abort!
Exiting due to signal SIGABRT
Raised at eip=00005afe
eax=00092204 ebx=00000120 ecx=00000000 edx=00000000 esi=00000054 edi=000123a4
ebp=000922b0 esp=00092200 program=C:\DOCUME~1\ROXTAR~1.DEM\A.EXE
cs: sel=01a7  base=02980000  limit=2cf2ffff
ds: sel=01af  base=02980000  limit=2cf2ffff
es: sel=01af  base=02980000  limit=2cf2ffff
fs: sel=017f  base=0000e1b0  limit=0000ffff
gs: sel=01bf  base=00000000  limit=0010ffff
ss: sel=01af  base=02980000  limit=2cf2ffff
App stack: [000923a4..000123a4]  Exceptn stack: [00012304..000103c4]

Call frame traceback EIPs:
0x00005a24
0x00005afe
0x00004f2b
0x0000bae4
0x0000bb1e
0x0000b9cd
0x0000aeb3
0x000015fa
0x00004738


Windows ran out of virtual memory within 2 minutes of the run.

No comments: