filesystem full and reboot (crash), without debug console

From: Marcus Grando <marcus_at_corp.grupos.com.br>
Date: Fri, 12 Aug 2005 19:56:55 -0300
Hi list,

I write a litte program. This program full filesystem and FreeBSD reboot 
after that, without debug console.

# uname -a
FreeBSD marcus.grupos.com.br 6.0-BETA2 FreeBSD 6.0-BETA2 #8: Fri Aug 12 
19:43:58 BRT 2005 
root_at_marcus.grupos.com.br:/usr/obj/usr/src/sys/MARCUS  i386

# cat /tmp/lixo.c
#include <stdio.h>

int main()
{
         int i;
         char *w = "abcdefghijklmnopqrstuvxz0123456789\n";
         FILE *f;

         f = fopen("test", "wb");

         for (i=0; i<100000000; i++)
                 fwrite(w, 1, 35, f);

         fclose(f);
         exit(0);
}

/var/log/messages:
Aug 12 19:47:06 marcus last message repeated 2 times
Aug 12 19:47:06 marcus kernel: on : filesystem full
Aug 12 19:47:06 marcus kernel: pid 703 (lixo), uid 0 inumber 14 on : 
filesystem full
Aug 12 19:47:06 marcus last message repeated 574 times
Aug 12 19:47:06 marcus kernel: on : filesystem full
Aug 12 19:47:06 marcus kernel: pid 703 (lixo), uid 0 inumber 14 on : 
filesystem full
Aug 12 19:47:06 marcus last message repeated 574 times
Aug 12 19:47:06 marcus kernel: on : filesystem full
Aug 12 19:47:06 marcus kernel: pid 703 (lixo), uid 0 inumber 14 on : 
filesystem full

-- 
Marcus Grando
Grupos Internet S/A
marcus(at)corp.grupos.com.br
Received on Fri Aug 12 2005 - 20:57:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:41 UTC