|
|
I have a program called "dikued".. it's a specialized editor. Every time I quit the program, I get a segmentation fault, and my stuff is either saved or not (seems kinda random right now). What exactly is a segmentation fault, is there anything I can do if I get one, and how do I avoid getting one at all? thanks
5 responses total.
I know what the segmentation fault means now :) BUT... I commented out the line in my .cshrc that says: limit coredumpsize 0 I also changed the 0 to a REALLY big number. I still don't seem to get a core file when I get the fault. A friend of mine mentioned that I might need to tell my shell to create a core file when it happens. Is this true, and if it is, how do I do that?
Are seg faults and core dumps the same error messages? I somehow didn't think so, but it occurrs to me that I've had a limit coredumpsize 0 line in my .logins everywhere (since I don't know how to make any sense out of a dumped core anyway), for long enough that I haven't had any experience with core dumps recently. Somebody (janc, maybe?) explained seg faults to me as the computers way of saying, "the programmer screwed up."
Steve and Popcorn both said it was probably a bad pointer somewhere. *I* don't have any clue about the core file, but I was hoping I could find some nice soul who did, and who would look at it for me. but that's just spit in the wind if I can't generate the core file in the first place.
These would all be better questions for the jellyware cf; very briefly;
if you can get it to misbehave consistently, your best bet would be to
run it under adb (or your favorite debugger), make the problem happen,
then use $c and other tools in adb to figure out where and why it
choked. A knowledge of C & assembler would be helpful in terms of using
adb to learn something meaningful.
You won't get a core file if:
you've got too small a limit on core dump sizes.
your current directory isn't writable
there already exists a "core" file, and the permissions
don't permit overwriting.
the application program has trapped the relevant signal
and pointed it to its own error handler.
(I get core files even with coredumpsize set to 0) heh.
Response not possible - You must register and login before posting.
|
|
- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss