Hi,
I still sometimes get the error "WriteMessage: Bad file descriptor"
when running screen -r with 4.0.3-11. This is obviously related to
#477739, however the conditions seem somewhat different so I decided
to open a different bug.
Contrary to #477739, I have two sessions:
------------------------------------------------------------
sliedes@lh:~/scratch/chess/scid-open$ screen -ls
There are screens on:
25929.pts-1.lh (11/27/2008 06:47:30 AM) (Detached)
5942.pts-4.lh (11/26/2008 02:38:47 AM) (Attached)
2 Sockets in /var/run/screen/S-sliedes.
------------------------------------------------------------
At least when I last time saw it happen, that was the state of the
sessions: One (the one to be resumed) was detached, the other
attached, and I did not use -d. I'm not exactly sure if it has been so
always.
Unfortunately this seems to happen rather rarely (how rarely? I don't
know, I tried screen -r 27 times and it happened on times #1 and #27
now). I've seen it maybe 10-20 times now. Also I couldn't reproduce it
under strace with maybe 200 tries.
Please tell me if you need me to further try to debug it somehow (you
can assume I know how to use strace, gdb and friends, I'm a
developer).
Sami
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.27.7 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages screen depends on:
ii libc6 2.7-16 GNU C Library: Shared libraries
ii libncursesw5 5.7+20081129-1 shared libraries for terminal hand
ii libpam0g 1.0.1-4+b1 Pluggable Authentication Modules l
screen recommends no packages.
screen suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
sorry it took me so long to get back to you.
> I still sometimes get the error "WriteMessage: Bad file descriptor"
> when running screen -r with 4.0.3-11. This is obviously related to
> #477739, however the conditions seem somewhat different so I decided
> to open a different bug.
Hm. I haven't seen this bug for quite some time now, so any further
material (gdb dumps, strace logs) is highly appreciated. I'll have a
look at the code and check whether I've missed another race condition
(or failed to properly fix the one from #477739).
Thanks!
Jan
Now that I think, I haven't seen it for a while either. And thinking
further, it might have been that the screen I tried to attach to
contained lots of screens started with :screen /dev/pts/nn (qemu with
a serial console). Although for some reason I failed to mention that
in my report, so it might be that either I ruled that out or forgot --
hard to remember which :(
Sami