* Adding sysctl varaible into kernel.
@ 2004-08-19 10:09 authn
2004-08-20 16:12 ` Forcing a core dump Darío Mariani
0 siblings, 1 reply; 5+ messages in thread
From: authn @ 2004-08-19 10:09 UTC (permalink / raw)
To: linux-c-programming
Hi,
Does anybody know how to add sysctl variable into kernel ? Maybe there is some
function or I should change the kernel source?
--
Pozdrawiam,
Jan Opacki
^ permalink raw reply [flat|nested] 5+ messages in thread
* Forcing a core dump
2004-08-19 10:09 Adding sysctl varaible into kernel authn
@ 2004-08-20 16:12 ` Darío Mariani
2004-08-20 16:45 ` Eric Bambach
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Darío Mariani @ 2004-08-20 16:12 UTC (permalink / raw)
To: linux-c-programming
Hello:
Is it possible to force a running program to generate a core dump. My
problem is that I have a program that, from time to time, it freezes and
I want to know what's going on.
Thanks,
Darío
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Forcing a core dump
2004-08-20 16:12 ` Forcing a core dump Darío Mariani
@ 2004-08-20 16:45 ` Eric Bambach
2004-08-20 17:33 ` Steven Smith
2004-08-21 20:08 ` Jan-Benedict Glaw
2 siblings, 0 replies; 5+ messages in thread
From: Eric Bambach @ 2004-08-20 16:45 UTC (permalink / raw)
To: Darío Mariani; +Cc: linux-c-programming
On Friday 20 August 2004 11:12 am, Darío Mariani wrote:
> Hello:
> Is it possible to force a running program to generate a core dump. My
> problem is that I have a program that, from time to time, it freezes and
> I want to know what's going on.
Others may correct me if I'm wrong, however if you issue a SIGSTOP or SIGKILL
most programs will coredump will they not? You have to enable core dumping in
your environment using ulimit -c (number in KB).
Plus you should be able to attach gdb if its been compiled with debugging
symbols, and even if it hasn't you will still get some debug control.
--
-EB
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Forcing a core dump
2004-08-20 16:12 ` Forcing a core dump Darío Mariani
2004-08-20 16:45 ` Eric Bambach
@ 2004-08-20 17:33 ` Steven Smith
2004-08-21 20:08 ` Jan-Benedict Glaw
2 siblings, 0 replies; 5+ messages in thread
From: Steven Smith @ 2004-08-20 17:33 UTC (permalink / raw)
To: Dar?o Mariani; +Cc: linux-c-programming, sos22
[-- Attachment #1: Type: text/plain, Size: 464 bytes --]
> Is it possible to force a running program to generate a core dump. My
> problem is that I have a program that, from time to time, it freezes and
> I want to know what's going on.
If it's still attached to its terminal, Control-\ usually works.
Failing that, try kill -QUIT <pid_of_your_program>.
Steven Smith,
sos22@cantab.net.
--
One day, I'm going to get an Alice-bot to answer all my email for me,
and see how long it takes people to notice.
[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Forcing a core dump
2004-08-20 16:12 ` Forcing a core dump Darío Mariani
2004-08-20 16:45 ` Eric Bambach
2004-08-20 17:33 ` Steven Smith
@ 2004-08-21 20:08 ` Jan-Benedict Glaw
2 siblings, 0 replies; 5+ messages in thread
From: Jan-Benedict Glaw @ 2004-08-21 20:08 UTC (permalink / raw)
To: linux-c-programming
[-- Attachment #1: Type: text/plain, Size: 986 bytes --]
On Fri, 2004-08-20 13:12:37 -0300, Darío Mariani <dmarian@fi.uba.ar>
wrote in message <412622F5.2080208@fi.uba.ar>:
> Hello:
> Is it possible to force a running program to generate a core dump. My
> problem is that I have a program that, from time to time, it freezes and
> I want to know what's going on.
SIGABRT is ment to do exactly that. However, "ulimit" must allow for the
core to be created and core dumps won't work with multi-threaded
programs (I heared rumors that this was changed in 2.6.x).
Also, in cases of a freeze, attaching a debugger (gdb) might help as
much:
$ gdb /path/to/your/program `pidof program`
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-08-21 20:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-19 10:09 Adding sysctl varaible into kernel authn
2004-08-20 16:12 ` Forcing a core dump Darío Mariani
2004-08-20 16:45 ` Eric Bambach
2004-08-20 17:33 ` Steven Smith
2004-08-21 20:08 ` Jan-Benedict Glaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).