Bug 5878

Summary: fexe can't find a shell script
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal CC: swagiaal, walters
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on: 5921    
Bug Blocks: 5876    

Description Andrew Cagney 2008-03-05 16:52:30 UTC
VIS:

$ ./frysk/bindir/fexe firefox
Error: invalid `Elf' handle
Comment 1 Andrew Cagney 2008-03-12 19:31:24 UTC
*** Bug 5921 has been marked as a duplicate of this bug. ***
Comment 2 Andrew Cagney 2008-03-12 19:42:51 UTC
One possible fix is:

  $ which fdebugrpm
  /usr/bin/fdebugrpm
  $ head -1 `which fdebugrpm`
  #! /bin/sh
  $ fexe fdebugrpm
  /bin/sh
  $ fhpd fdebugrpm arg1 arg2
  (fhpd) info args
  /bin/sh
  /usr/bin/fdebugrpm
  arg1
  arg2

the alternative is to try to retain that the script has an interpreter; perhaps
that is a second pass.
Comment 3 Sami Wagiaalla 2008-03-13 19:23:00 UTC
*** Bug 5933 has been marked as a duplicate of this bug. ***
Comment 4 Andrew Cagney 2008-03-18 21:01:53 UTC
This is fixed vis:

cagney@localhost$ fexe firefox
Error: open: No such file or directory (file
/home/scratch/frysk/git/native/frysk-core/firefox)
cagney@localhost$ ./frysk/bindir/fexe firefox
/bin/sh
cagney@localhost$ ./frysk/bindir/ftrace firefox
6074.6074 attached /bin/bash
6074.6074 exited with status 0
cagney@localhost$