filesystem full and reboot (crash), without debug console

Marcus Grando marcus at corp.grupos.com.br
Fri Aug 12 22:57:01 GMT 2005


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


More information about the freebsd-current mailing list