[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#503821: More information regarding #503821



I've done some more tests.

The problem seem to be related to swapping.

I used this little test program:

#include <stdlib.h>

/* my amount of ram */
#define TESTSIZE 2048000

struct testchunk {
  char name[1048576];
};

main()
{
  int *p;
  int t;
  for (t=0;t<TESTSIZE;t++) {
    p = (int *) malloc(sizeof(struct testchunk));
  }
  sleep(15);
  exit(0);
}

This basically allocates so much memory that my system starts to swap, and
when the program exits (and free the memory) the kernel crashes. Every time.

Normally my swap is set up swap-partiton->LVM->MD-raid1, but just to be sure
I've used a swap-partition directly on a disk without LVM/MD involved with 
the same result.

Now at least the error is easily reproduceable. Hopefully this can help 
to track the problem down.

Best Regards,
/LM






Reply to: