On Jul 09 14:11:01, na...@mips.inka.de wrote:
> Jan Stary <h...@stare.cz> wrote:
> 
> > > 1) running cwm(1) with having
> > > 2) ``XTerm*locale:ISO8859-1'' in ~/.Xresources 
> > > 3) hitting CM-Return starts xterm(1) after differing amounts of retries
> > >    (between 1 and 9 up to now).
> > 
> > http://marc.info/?l=openbsd-misc&m=137287894132390&w=2
> > This exact problem was reported last week,
> 
> Can you guys try to ktrace such a failed execution?
> 
> Maybe put something like
> 
> bind CM-Return "ktrace -i xterm"
> 
> into ~/.cwmrc and retry until it fails?

I did, it failed on the first try,
and the kdump says:

 32003 ktrace   EMUL  "native"
 32003 ktrace   RET   ktrace 0
 32003 ktrace   CALL  execve(0x7f7ffffc7630,0x7f7ffffc7bb8,0x7f7ffffc7bc8)
 32003 ktrace   NAMI  "/home/hans/bin/xterm"
 32003 ktrace   RET   execve -1 errno 2 No such file or directory
 32003 ktrace   CALL  execve(0x7f7ffffc7630,0x7f7ffffc7bb8,0x7f7ffffc7bc8)
 32003 ktrace   NAMI  "/usr/bin/xterm"
 32003 ktrace   RET   execve -1 errno 2 No such file or directory
 32003 ktrace   CALL  execve(0x7f7ffffc7630,0x7f7ffffc7bb8,0x7f7ffffc7bc8)
 32003 ktrace   NAMI  "/bin/xterm"
 32003 ktrace   RET   execve -1 errno 2 No such file or directory
 32003 ktrace   CALL  execve(0x7f7ffffc7630,0x7f7ffffc7bb8,0x7f7ffffc7bc8)
 32003 ktrace   NAMI  "/usr/sbin/xterm"
 32003 ktrace   RET   execve -1 errno 2 No such file or directory
 32003 ktrace   CALL  execve(0x7f7ffffc7630,0x7f7ffffc7bb8,0x7f7ffffc7bc8)
 32003 ktrace   NAMI  "/sbin/xterm"
 32003 ktrace   RET   execve -1 errno 2 No such file or directory
 32003 ktrace   CALL  execve(0x7f7ffffc7630,0x7f7ffffc7bb8,0x7f7ffffc7bc8)
 32003 ktrace   NAMI  "/usr/X11R6/bin/xterm"

So the last thing in the kdump is the sucessfull call
to the (eventually) found 'xterm'. Why is that?

Here is the situation:

 |-+= 27788 hans -ksh (ksh)
 | \-+= 23950 hans /bin/sh /usr/X11R6/bin/startx
 |   \-+- 14054 hans xinit /home/hans/.xinitrc -- /home/hans/.xserverrc :0 
-auth /home/hans/.serverauth.23950
 |     |-+= 02769 hans Xorg -nolisten tcp
 |     | \--- 06254 root Xorg: [priv] (Xorg)
 |     \-+= 14366 hans sh /home/hans/.xinitrc
 |       \-+- 24462 hans cwm
 |         \-+= 32003 hans xterm
 |           \--= 22601 hans (luit)

  PID TT  STAT       TIME COMMAND
22601 p1- Z       0:00.00 (luit)

So xterm (32003) started, tried to call luit, which died,
and is now a zombie (22601). Why doesn't the kdump continue
with the (failed) luit child, or at least the attempt to call it?
Yes, I do have the '-i' in the 'ktrace -i' call.

This is also the case when it finally launches OK
with a properly running luit. By the time they are up,
the ktrace.out file is no longer open by anything (says fstat).

        Jan

Reply via email to