-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ralf Mardorf schrieb:
> I'll try it again with the value "unlimted", depending to the web page I
> read a value of "1" should be 1024 bytes = 1 KB,
I just tried it out ... you are right, the value seems to be something in kB,
and obviously it gets rounded to even page numbers. But anyway, even if the
size is too small, you should at least see a core file, albeit truncated.
At least that's how my system behaves.
Let's just try it out in a dry run!
Enter the following in a text file called "broken.c"
int
main (int argc, char* argv[])
{
int * weh = 0;
int oh = *weh;
return 0;
}
This should segfault, right? :-P
Now compile it with
gcc broken.c -o broken
...giving you an executable called "broken" in the current directory.
Run it with
./broken
and you should get an segfault (but no core dump).
Then re-try it after issuing "ulimit -c unlimited"
Note, when creating a core, the program also says on stderr:
"Speicherzugriffsfehler (core dumped)"
or similar in english.
Does this test "work" for you?
Cheers
Hermann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJLNW1ZbZrB6HelLIRAsLeAKD/VO3SGSznlP+0+7Cj0PwVJIO1uwCeNMmu
aBpas9P3TIevYvDnb3lLf9s=
=kUfT
-----END PGP SIGNATURE-----
_______________________________________________
64studio-users mailing list
[email protected]
http://lists.64studio.com/mailman/listinfo/64studio-users