Re: How useful can a 'coredump' be?



Evenbit wrote:
On Mar 18, 8:27 am, Frank Kotler <fbkot...@xxxxxxxxxxx> wrote:

I looked at the Wikipedia article on core dumps, and found two links to
"Introductory Linux Debugging":

http://linuxfocus.berlios.de/English/July2004/article343.shtml

http://www.ffnn.nl/pages/articles/linux/gdb-gnu-debugger-intro.php

Either of 'em would have given me the clue... Core Dumps are ordinarily
*disabled* in Linux!!! No *wonder* I can't find 'em!

ulimit -c 1024

Ding! I'd have known that if I'd RTFM, I suppose...


Ah! So *that's* how DavidR (from the c.l.a.x thread) did it! I was
beginning to think that Red Hat was *special* or something. Thanks
for discovering the secret.


*Now* I've got a core dump of a file that doesn't consist mostly of
dynamic linking of a library routine to cause a core dump! I still


Yeah, that's one strike against 'google-coredumper' but it's stated
purpose is for monitoring running processes that you *don't* want to
stop... obtaining the dumps at the request of a 'signal' rather than
waiting for a segfault event.


haven't found out how to make it too useful, but if I start gdb with
"gdb make_segfault core", it tells me right off where the problem is.
Adding the "-g" switch to Nasm helps still more (you might try that in
your makefile.n). (if you've got the very latest "snapshot" you can try
"-F dwarf -g", too - yay, Chuck!)



Oh.. cool! Even more research and lab work! :)

http://reality.sgiweb.org/davea/dwarf.html
http://www.dwarfstd.org/

More good ones!

I'll look into this tonight...

It'll take me a bit longer than that, I fear...

Best,
Frank
.



Relevant Pages

  • su segfault on exit.
    ... Segmentation fault ... I have not been able to reproduce this, ... by default does not create core dumps I don't have any ... clue what happened. ...
    (comp.os.linux.security)
  • Re: Java core dump size
    ... core dumps are limited only by the ulimit. ... | to uniquely name and locate your core files. ... | surprised that certain gnu/java system library directories are unwisely ...
    (comp.unix.sco.misc)
  • Re: How do you allow core dumps on fedora
    ... >> How can you permit core dumps files to be created on fedora. ... > you need to run ulimit prior to running any process that would ...
    (Fedora)
  • Re: OpenSSH 3.7.1p1 Linux, Gcc 3.3.1 etc.
    ... >Ensure you've enabled core dumps: ... >ulimit -c unlimited ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Disable core dumps
    ... I'd like to know whether there's a possibility to disable core dumps in a ... I've already modified my bash config by adding a "ulimit -c 0" in order to ... prevent core dumps from being written to the disk. ...
    (freebsd-questions)