public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
From: "pmuldoon at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: frysk-bugzilla@sourceware.org
Subject: [Bug general/4955] New: fhpd sets do not work with corefiles
Date: Thu, 23 Aug 2007 21:00:00 -0000	[thread overview]
Message-ID: <20070823210017.4955.pmuldoon@redhat.com> (raw)

dead/LinuxHost, LinuxProc and LinuxTask export a fully threaded model as
demonstrated via fstack:

[pmuldoon@localhost bindir]$ ps -ax | grep 3219
 3219 ?        Sl     0:19 /usr/lib/firefox-2.0.0.5/firefox-bin

[pmuldoon@localhost bindir]$ ./fcore 3219

And doing a fstack correctly print all tasks in the backtrace:

[pmuldoon@localhost bindir]$ ./fstack core.3219 

Task #3219
#0 0x00110402 in __kernel_vsyscall () from 
#1 0x00000000 in [unknown] from Unknown
Task #3241
#0 0x00110402 in __kernel_vsyscall () from 
#1 0x00000000 in [unknown] from Unknown
Task #3242
#0 0x00110402 in __kernel_vsyscall () from 
#1 0x440fc48c in __pthread_cond_timedwait () from /lib/libpthread.so.0
#2 0x84ed66c6 in [unknown] from Unknown
#3 0x4276c1f4 in PR_WaitCondVar () from /usr/lib/libnspr4.so
#4 0x84fe8f1c in [unknown] from Unknown
#5 0x84fe4f8b in [unknown] from Unknown
#6 0x84ee431d in [unknown] from Unknown
#7 0x440f844b in start_thread () from /lib/libpthread.so.0
#8 0x00000000 in [unknown] from Unknown
Task #3244
#0 0x00110402 in __kernel_vsyscall () from 
#1 0x440fc206 in __pthread_cond_wait () from /lib/libpthread.so.0
#2 0x4276c286 in PR_WaitCondVar () from /usr/lib/libnspr4.so
#3 0x00000000 in [unknown] from Unknown
Task #3245
#0 0x00110402 in __kernel_vsyscall () from 
#1 0x440fc206 in __pthread_cond_wait () from /lib/libpthread.so.0
#2 0x4276c286 in PR_WaitCondVar () from /usr/lib/libnspr4.so
#3 0x00000000 in [unknown] from Unknown
Task #3246
#0 0x00110402 in __kernel_vsyscall () from 
#1 0x440fc206 in __pthread_cond_wait () from /lib/libpthread.so.0
#2 0x4276c286 in PR_WaitCondVar () from /usr/lib/libnspr4.so
#3 0x00000000 in [unknown] from Unknown
Task #3250
#0 0x00110402 in __kernel_vsyscall () from 
#1 0x440fc206 in __pthread_cond_wait () from /lib/libpthread.so.0
#2 0x4276c286 in PR_WaitCondVar () from /usr/lib/libnspr4.so
#3 0x4276c2e7 in PR_Wait () from /usr/lib/libnspr4.so
#4 0x427eeea1 in PL_WaitForEvent () from /usr/lib/firefox-2.0.0.5/libxpcom_core.so
#5 0x84fe067d in [unknown] from Unknown
#6 0x00000000 in [unknown] from Unknown

However fhpd does not properly represent set information for a core file, so
thread switching is not supported:

[pmuldoon@localhost bindir]$ ./fhpd core.3219 
Attached to core file: /home/pmuldoon/frysk_bin/frysk-core/frysk/bindir/core.3219

(fhpd) whichsets
Task 0.0 is in sets: 

however doing the same for the live process:

[pmuldoon@localhost bindir]$ ./fhpd 3219
Attached to process 3219

(fhpd) whichsets
procs 1 tasks 7
Task 0.0 is in sets: 



Task 0.1 is in sets: 



Task 0.2 is in sets: 



Task 0.3 is in sets: 



Task 0.4 is in sets: 



Task 0.5 is in sets: 



Task 0.6 is in sets: 



This bug in fhpd essentially limits inspection to the corefile main task

-- 
           Summary: fhpd sets do not work with corefiles
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: pmuldoon at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4955

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


             reply	other threads:[~2007-08-23 21:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-23 21:00 pmuldoon at redhat dot com [this message]
2007-08-24 18:51 ` [Bug general/4955] " pmuldoon at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070823210017.4955.pmuldoon@redhat.com \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=frysk-bugzilla@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).