public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/5863] New: ferror does not follow /usr/bin/firefox: Error: invalid `Elf' handle
@ 2008-03-04 15:03 swagiaal at redhat dot com
  2008-03-04 16:19 ` [Bug general/5863] " fche at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: swagiaal at redhat dot com @ 2008-03-04 15:03 UTC (permalink / raw)
  To: frysk-bugzilla

[swagiaal@toner x86_64]$ ferror -e "xxx" -- /usr/bin/firefox 
Error: invalid `Elf' handle

also:

[swagiaal@toner x86_64]$ ferror -e "invalid" -- /usr/local/bin/ferror -e "xxx"
-- /usr/bin/firefox 
Tracing 18581.18581
Tracing 18581.18582
Error: invalid `Elf' handle
Process is trying to output invalid
Stack trace:

Task #18581
#0 0x00000030f600d2cb in __libc_write () from .../libpthread-2.7.so
#1 0x0000003124bf9114 in void
gnu::java::nio::channels::FileChannelImpl::write(JArray<char>*, int, int) ()
from .../libgcj.so.8rh.0.0
#2 0x0000003124fba38f in void java::io::FileOutputStream::write(JArray<char>*,
int, int) () from .../libgcj.so.8rh.0.0
#3 0x0000003124fb3e78 in void java::io::BufferedOutputStream::flush() () from
.../libgcj.so.8rh.0.0
#4 0x0000003124fc9791 in void java::io::PrintStream::flush() () from
.../libgcj.so.8rh.0.0
#5 0x0000003124fc9827 in void java::io::PrintStream::print(java::lang::String*,
bool) () from .../libgcj.so.8rh.0.0

-- 
           Summary: ferror does not follow /usr/bin/firefox: Error: invalid
                    `Elf' handle
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: swagiaal at redhat dot com
OtherBugsDependingO 5861
             nThis:


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

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug general/5863] ferror does not follow /usr/bin/firefox: Error: invalid `Elf' handle
  2008-03-04 15:03 [Bug general/5863] New: ferror does not follow /usr/bin/firefox: Error: invalid `Elf' handle swagiaal at redhat dot com
@ 2008-03-04 16:19 ` fche at redhat dot com
  2008-03-04 17:30 ` swagiaal at redhat dot com
  2008-03-05 15:14 ` swagiaal at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2008-03-04 16:19 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From fche at redhat dot com  2008-03-04 16:18 -------
/usr/bin/firefox is a shell script.
Frysk probably needs to parse it to identify the interpreter program (/bin/sh?)
and start tracing from there.

-- 


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

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug general/5863] ferror does not follow /usr/bin/firefox: Error: invalid `Elf' handle
  2008-03-04 15:03 [Bug general/5863] New: ferror does not follow /usr/bin/firefox: Error: invalid `Elf' handle swagiaal at redhat dot com
  2008-03-04 16:19 ` [Bug general/5863] " fche at redhat dot com
@ 2008-03-04 17:30 ` swagiaal at redhat dot com
  2008-03-05 15:14 ` swagiaal at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: swagiaal at redhat dot com @ 2008-03-04 17:30 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From swagiaal at redhat dot com  2008-03-04 17:30 -------
hmm i tried this:

$ ferror -e "foo" -- /bin/sh /usr/bin/firefox 
Tracing 4376.4376
Tracing 4377.4377
Tracing 4378.4378
Tracing 4379.4379
Tracing 4380.4380
Tracing 4381.4381
Exception in thread "main" lib.dwfl.ElfFileException: open: Permission denied
(file /proc/4381/exe) (errno 13)
   at lib.dwfl.Elf.getDescriptor(ferror)
   at lib.dwfl.Elf.<init>(ferror)
   at frysk.isa.ElfMap.getISA(ferror)
   at frysk.proc.live.LinuxPtraceTask.initializeAttachedState(ferror)
   at frysk.proc.live.LinuxPtraceTask.notifyExeced(ferror)
   at frysk.proc.live.LinuxPtraceTaskState$Running.handleExecedEvent(ferror)
   at frysk.proc.live.LinuxPtraceTask.processExecedEvent(ferror)
   at frysk.proc.live.LinuxWaitBuilder.execEvent(ferror)
   at frysk.sys.Wait.wait(ferror)
   at frysk.sys.Wait.wait(ferror)
   at frysk.event.WaitEventLoop.block(ferror)
   at frysk.event.EventLoop.runEventLoop(ferror)
   at frysk.event.EventLoop.run(ferror)
   at frysk.util.ProcRunningUtil.start(ferror)
   at frysk.bindir.ferror.main(ferror)
Caused by: frysk.sys.Errno: open: Permission denied (file /proc/4381/exe) (errno 13)
   at frysk.sys.FileDescriptor.open(ferror)
   at frysk.sys.FileDescriptor.<init>(ferror)
   at lib.dwfl.Elf.getDescriptor(ferror)
   ...14 more


-- 


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

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug general/5863] ferror does not follow /usr/bin/firefox: Error: invalid `Elf' handle
  2008-03-04 15:03 [Bug general/5863] New: ferror does not follow /usr/bin/firefox: Error: invalid `Elf' handle swagiaal at redhat dot com
  2008-03-04 16:19 ` [Bug general/5863] " fche at redhat dot com
  2008-03-04 17:30 ` swagiaal at redhat dot com
@ 2008-03-05 15:14 ` swagiaal at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: swagiaal at redhat dot com @ 2008-03-05 15:14 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From swagiaal at redhat dot com  2008-03-05 15:13 -------
*** Bug 5862 has been marked as a duplicate of this bug. ***

-- 


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

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-05 15:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-04 15:03 [Bug general/5863] New: ferror does not follow /usr/bin/firefox: Error: invalid `Elf' handle swagiaal at redhat dot com
2008-03-04 16:19 ` [Bug general/5863] " fche at redhat dot com
2008-03-04 17:30 ` swagiaal at redhat dot com
2008-03-05 15:14 ` swagiaal at redhat dot com

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).