I assume my Plan 9 installation is pretty much normal, otherwise what
follows is not very relevant.

The following procedure (don't try this at home) is likely to freeze
my workstation completely (I unintentionally tested what I hope was an
equivalent operation, I'm also not going to try this right now :-):

        #include <u.h>
        #include <libc.h>

        int
        main (int, char **) {
                int size;
                char *s;

                s = malloc (size = 8);
                while (size *= 2) {
                        s = realloc (s, size);
                }
                return (0);
        }

I hope I don't sound surprised, but perhaps there's some way for the
kernel to trigger an abort() rather than bring the entire system to a
standstill?

++L

Reply via email to