[Pkg-xfce-devel] Bug#434863: Bug#434863: xfce4-terminal: Wrapper script seems broken

Cyril Brulebois cyril.brulebois at enst-bretagne.fr
Fri Aug 3 09:41:55 UTC 2007


Andrea Bolognani <eof at kiyuko.org> (03/08/2007):
> /me hides in the corner

:-)

Just some bits, which might help any developer around (I'm just a user
asked by Huggie to reproduce). The following pattern appears in both of
our traces:
| open("/etc/passwd", O_RDONLY) = 4
| fcntl64(4, F_GETFD)         = 0
| fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
| _llseek(4, 0, [0], SEEK_CUR) = 0
| fstat64(4, {st_mode=S_IFREG|0644, st_size=1024, ...}) = 0
| mmap2(NULL, 1024, PROT_READ, MAP_SHARED, 4, 0) = 0xb7f30000
| _llseek(4, 1024, [1024], SEEK_SET) = 0
| munmap(0xb7f30000, 1024)    = 0
| close(4)                    = 0

But then they differ: yours contains _DBUS_SESSION and
unix:abstract=/tmp/dbus stuff that I don't see anywhere in mine, except:
| connect(3, {sa_family=AF_FILE, path=@/tmp/dbus-J6Sfh63wL1}, 23) = 0''

Then yours continue with the following:
| waitpid(4215, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 4215
| --- SIGCHLD (Child exited) @ 0 (0) ---

Mine contains the following instructions between the close() call and
the waitpid() one (along with many others):
| rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
| ...
| rt_sigaction(...)

Some additional info you might give... Oh wait. I was about to ask
whether your shell was bash, but I can't see any /bin/.*sh in your
trace, whereas mine contains many references to /bin/bash. When
searching for /bin/... I found that yours calls:
|execve("/usr/bin/dbus-launch", ["dbus-launch", "--autolaunch", "38af4f4519697be21db03dc7356df800"..., "--binary-syntax", "--close-stderr"], [/* 22 vars     */]) = 0

whereas mine doesn't.

What gives the following? Mine gives:
| kibi at evy:~$ ps faux | grep dbus
| 103       1891  0.0  0.1   3860   952 ?        Ss   Jul31   0:00 /usr/bin/dbus-daemon --system
| kibi     17840  0.0  0.0   5736   332 ?        Ss   Aug01   0:00          \_ /usr/bin/ssh-agent /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session startxfce4
| kibi     17841  0.0  0.0   5736   380 ?        Ss   Aug01   0:00          \_ /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session startxfce4
| kibi     17844  0.0  0.1   3264   536 ?        S    Aug01   0:00 /usr/bin/dbus-launch --exit-with-session startxfce4
| kibi     17845  0.0  0.1   3856   996 ?        Ss   Aug01   0:00 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 8 --session
| kibi      9534  0.0  0.1   3540   844 pts/12   S+   11:40   0:00      \_ grep dbus

I attach my strace output as well. (xfce4-terminal called though strace
-f, from another xfce4-terminal window.)

Cheers,

-- 
Cyril Brulebois
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xfce4-terminal_kibi.log.bz2
Type: application/octet-stream
Size: 51838 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20070803/d9d93b4b/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20070803/d9d93b4b/attachment-0001.pgp 


More information about the Pkg-xfce-devel mailing list