From eccdd13dd3c812b8f0b3d046ef9d8738df00562a Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 25 Sep 2013 21:45:38 +0200 Subject: IRC. --- open_issues/crash_server.mdwn | 61 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) (limited to 'open_issues/crash_server.mdwn') diff --git a/open_issues/crash_server.mdwn b/open_issues/crash_server.mdwn index 7ed4afbf..5182df6f 100644 --- a/open_issues/crash_server.mdwn +++ b/open_issues/crash_server.mdwn @@ -1,4 +1,4 @@ -[[!meta copyright="Copyright © 2009, 2010, 2011 Free Software Foundation, +[[!meta copyright="Copyright © 2009, 2010, 2011, 2013 Free Software Foundation, Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable @@ -189,6 +189,65 @@ one... mach_msg_trap /home/tschwinge/tmp/gnumach/gnumach-1-branch-Xen-branch.build/../gnumach-1-branch-Xen-branch/ipc/mach_msg.c:1367 + +# IRC, freenode, #hurd, 2013-09-07 + + I'm trying to investigate a crash in pfinet, so it will actually + die. I just want to know why it dies and what the value of a few + variables has been when it died. + have you tried to make it dump core? + oh, good idea. + I'll try that. + do you know how? + I don't, but I think I can figure it out. + look into /servers + do I just have to set CRASHSERVER=/servers/crash-dump-core and run + pfinet in that environment? + possibly, I've never heard of CRASHSERVER, but it's certainly + plausible ;) + I just link crash to crash-dump-core, that way it is permanent + and for all processes + found it in the website contents + gotta try that. + hmm, I can't get pfinet to dump core; linked /servers/crash to + /servers/crash-dump-core and compiled pfinet to raise(6) at one point. + But no core file is created. + :/ + rekado: try cd /tmp ; cat & kill -SIGILL %% to see if that dumps + core + yes, this works. + I replaced the original pfinet with my crashing version. + Should it dump core to /hurd then? + I'm not sure about it's wd + hm, ok, I just did settrans -ca foo /hurd/pfinet and then killed + that pfient with SIGILL and it dumped core + to the directory I issued the settrans from + So I must run it myself. I can't just replace the original binary + and have it dump core somewhere. + it seems that you have to use settrans -ca to start an active + translator + do fsysopts /servers/socket/2 to find out the cmdline of your + pfinet + that's very helpful. + thanks + then use this to restart it, e.g.: + settrans -afg /servers/socket/2 $(fsysopts /servers/socket/2) + if it dies it should dump core to you cwd + great. Thank you very much. I had been wondering how to get the + full cmdline of pfinet. + * rekado makes a note of fsysopts + yup, there's the core file. Nice. + cool 8D + btw, in case using gdb doesn't work out for your problem, if you + start pfinet (or any translator) this way (with -a == active), you can + write stuff to stderr + yeah, I noticed that. The assert() call wrote to stderr. Useful. + rekado: core dumps are another not-working-well feature of the + hurd :/ + i recommend attaching + rekado: In case that's still helpful: + . + --- If someone is working in this area, they may want to have a look at -- cgit v1.2.3