Re: Kernel 2.2
On Thu, Feb 04, 1999 at 10:37:29PM +0100, Bart Warmerdam wrote:
> The last message I read about it is that 'ldd core' (any core) causes a full
> system stop. Since I have no intention of trashing my disk again (yes,
> yesterday my 2.2 froze my system solid :( so I leave this up to the reader :)
#include <stdio.h>
#include <unistd.h>
int main(void)
{
unsigned long int *p = sbrk(0);
do {
printf("%p\n", p);
*p = 0xdeadbeefdeadbeef;
} while(*p++);
return 0;
}
$ cc -o coredump coredump.c
$ ulimit -c 16384
$ uname -a
Linux cassiel 2.2.1 #1 Mon Feb 1 10:54:51 NZDT 1999 alpha unknown
$ ./coredump
...
0x120101ff0
0x120101ff8
0x120102000
Memory fault (core dumped)
$ file core
core: ELF 64-bit LSB core file Alpha (unofficial), version 1
$ ldd core
$ldd: warning: you do not have execution permission for `./core'
Memory fault (core dumped)
$ not a dynamic executable
Weird ...
Doesn't crash the system 'tho.
Martin
Reply to:
- References:
- Kernel 2.2
- From: Brederlow <goswin.brederlow@student.uni-tuebingen.de>
- Re: Kernel 2.2
- From: Bart Warmerdam <bartw@xs4all.nl>