Hi list,
after upgrading to the latest Debian packages, I can no longer run KDE applications in rootless mode - neither with NX nor with X2Go.
Steps to reproduce:
Affected system is Debian Squeeze (upgraded from Lenny).
Sources.list used: # Security Updates deb http://security.debian.org/ squeeze/updates main contrib non-free deb-src http://security.debian.org/ squeeze/updates main contrib non-free
# Backports deb http://ftp.de.debian.org/debian-backports squeeze-backports main contrib non-free
# ClamAV etc. deb http://ftp.debian.org/debian squeeze-updates main contrib non-free deb-src http://ftp.debian.org/debian squeeze-updates main contrib non-free
# Acrobat Reader deb http://www.debian-multimedia.org squeeze main non-free
# Stable deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-free
# NX deb http://ppa.launchpad.net/freenx-team/legacy/ubuntu intrepid main deb-src http://ppa.launchpad.net/freenx-team/legacy/ubuntu intrepid main
# X2go Repository - leaving this out and using NX only, everything works fine deb http://packages.x2go.org/debian squeeze main # X2go Repository (sources) - leaving this out and using NX only, everything works fine deb-src http://packages.x2go.org/debian squeeze main
These are the relevant packages when the machine is in "broken" state:
box02:~# COLUMNS=200 dpkg -l libnx-x11 libxcomp3 libxcompext3
libxcompshad3 nxagent nxlibs x2go-keyring x2goagent x2goserver
x2goserver-extensions x2goserver-printing
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name
Version Description
+++-============================================-============================================-========================================================================================================
ii libnx-x11
2:3.5.0.7-0+squeeze~main~229~build1 nx-X11
ii libxcomp3
2:3.5.0.7-0+squeeze~main~229~build1 NX X compression library
ii libxcompext3
2:3.5.0.7-0+squeeze~main~229~build1 NX X11 protocol compression
extensions library
ii libxcompshad3
2:3.5.0.7-0+squeeze~main~229~build1 NX shadowing library
ii nxagent
2:3.5.0.7-0+squeeze~main~229~build1 NX agent
un nxlibs <none> (no description
available)
ii x2go-keyring
2011.12.07+squeeze~main~12~build1 GnuPG keys of X2go developers
ii x2goagent
2:3.5.0.7-0+squeeze~main~229~build1 X2Go agent
ii x2goserver
3.0.99.9-0~x2go1+squeeze~main~416~build1 X2go server daemon scripts
ii x2goserver-extensions
3.0.99.9-0~x2go1+squeeze~main~416~build1 X2go server daemon scripts
(extensions)
ii x2goserver-printing
3.0.99.9-0~x2go1+squeeze~main~416~build1 X2go server daemon scripts
(printing)
Working state, though NX-only, has the following packages:
box01:~# COLUMNS=200 dpkg -l libxcomp3 libxcompext3 libxcompshad3
nxagent nxlibs
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name
Version Description
+++-============================================-============================================-========================================================================================================
ii libxcomp3
3.3.0-4-0ubuntu1~intrepid1 NX X compression library
ii libxcompext3
1:3.3.0-4-0ubuntu1~intrepid1 NX X11 protocol compression
extensions library
ii libxcompshad3
3.3.0-2-0freenxteam1 NoMachine NX - NX
compression library
ii nxagent
1:3.3.0-6-0ubuntu1~intrepid1 X server for remote access
ii nxlibs
1:3.3.0-6-0ubuntu1~intrepid1 NX support libraries
Please fix this issue - it was what drove me from NX to X2Go, as the FreeNX guys couldn't figure out what caused the crash, and back then, X2Go worked just fine for me. Now it seems you've "crossported" the bug to X2Go. :-(
I have been in contact with Mike Gabriel regarding this issue, he suggests debugging the issue by stepping through the patches one by one. However, he won't get around to doing that in the next two weeks, and the last time I touched C code was 10 years ago and not much more than "hello world" stuff, so it's unlikely that I'll be able to find the reason myself. Anyone willing and able to assist?
What Mike suggested (paraphrased and translated for your convenience):
Clone nx-libs.git
git clone git://code.x2go.org/nx-libs.git cd nx-libs debuild -uc -us # 20min compiler run cd .. dpkg -i *.deb # Start testing... That will provide the current version of nx-libs. The directory debian/patches contains a file "series", which contains a list of the patches, commenting out a patch in this file will keep it from getting compiled in. Only one patch should be commented out for each compiler run, the relevant patches are the ones matching "1XX_*.patch".
Kind regards, Stefan
Hi Stefan, hi all,
On Sa 21 Jan 2012 23:12:25 CET "newsgroups.mail2@stefanbaur.de" wrote:
Hi list,
after upgrading to the latest Debian packages, I can no longer run
KDE applications in rootless mode - neither with NX nor with X2Go.Steps to reproduce:
- Run Terminal as single application (not in a full-blown desktop -
everything works fine there)- Type: kdialog --yesno "Test"
- Session will crash
I can reproduce this with squeeze as X2Go server and Ubuntu lucid as
client system (PyHoca-GUI).
Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi,
On So 22 Jan 2012 00:47:21 CET Mike Gabriel wrote:
Hi Stefan, hi all,
On Sa 21 Jan 2012 23:12:25 CET "newsgroups.mail2@stefanbaur.de" wrote:
Hi list,
after upgrading to the latest Debian packages, I can no longer run
KDE applications in rootless mode - neither with NX nor with X2Go.Steps to reproduce:
- Run Terminal as single application (not in a full-blown desktop
- everything works fine there)
- Type: kdialog --yesno "Test"
- Session will crash
I can reproduce this with squeeze as X2Go server and Ubuntu lucid as
client system (PyHoca-GUI).
and here are the last line of an strace output just before the crash occurs...
Greets, Mike
"""
[...]
open("/usr/lib/libtiff.so.4", O_RDONLY) = 10
read(10,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\200\0\0\0\0\0\0"...,
832) = 832
fstat(10, {st_mode=S_IFREG|0644, st_size=404936, ...}) = 0
mmap(NULL, 2501224, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
10, 0) = 0x7f2d43abe000
mprotect(0x7f2d43b1f000, 2093056, PROT_NONE) = 0
mmap(0x7f2d43d1e000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 10, 0x60000) = 0x7f2d43d1e000
close(10) = 0
munmap(0x7f2d51dbd000, 131065) = 0
lseek(9, 0, SEEK_SET) = 0
close(9) = 0
poll([{fd=7, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=7, revents=POLLOUT}])
writev(7,
[{"\22\0\f\0\34\0\200\0'\0\0\0\3\1\0\0\10\0\0\0\27\0\0\0Frage
\33%"..., 252},
{"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
16384}, {"", 0}], 3) = 16636
lstat("/var/tmp/kdecache-mike/kpc/kde-icon-cache.lock",
0x7fff1401d130) = -1 ENOENT (No such file or directory)
stat("/tmp/kde-mike/", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
stat("/var/tmp/kdecache-mike/kpc", {st_mode=S_IFDIR|0700,
st_size=4096, ...}) = 0
open("/var/tmp/kdecache-mike/kpc/kde-icon-cache.lock.k24836",
O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0600) = 9
fcntl(9, F_SETFD, FD_CLOEXEC) = 0
fchmod(9, 0644) = 0
uname({sys="Linux", node="fylgja.das-netzwerkteam.de", ...}) = 0
fstat(9, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
write(9, "24836\n", 6) = 6
write(9, "kdialog\n", 8) = 8
write(9, "fylgja.das-netzwerkteam.de\n", 27) = 27
link("/var/tmp/kdecache-mike/kpc/kde-icon-cache.lock.k24836",
"/var/tmp/kdecache-mike/kpc/kde-icon-cache.lock") = 0
lstat("/var/tmp/kdecache-mike/kpc/kde-icon-cache.lock.k24836",
{st_mode=S_IFREG|0644, st_size=41, ...}) = 0
lstat("/var/tmp/kdecache-mike/kpc/kde-icon-cache.lock",
{st_mode=S_IFREG|0644, st_size=41, ...}) = 0
lseek(9, 0, SEEK_SET) = 0
close(9) = 0
unlink("/var/tmp/kdecache-mike/kpc/kde-icon-cache.lock.k24836") = 0
stat("/var/tmp/kdecache-mike/kpc/kde-icon-cache.data",
{st_mode=S_IFREG|0644, st_size=16240640, ...}) = 0
stat("/var/tmp/kdecache-mike/kpc/kde-icon-cache.data",
{st_mode=S_IFREG|0644, st_size=16240640, ...}) = 0
stat("/var/tmp/kdecache-mike/kpc/kde-icon-cache.data",
{st_mode=S_IFREG|0644, st_size=16240640, ...}) = 0
stat("/var/tmp/kdecache-mike/kpc/kde-icon-cache.data",
{st_mode=S_IFREG|0644, st_size=16240640, ...}) = 0
stat("/var/tmp/kdecache-mike/kpc/kde-icon-cache.data",
{st_mode=S_IFREG|0644, st_size=16240640, ...}) = 0
poll([{fd=7, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=7, revents=POLLOUT}])
writev(7,
[{"<\0\2\0#\0\200\0I\2\5\0!\0\200\0\0\0\0\0@\0@\0\377\377\377\377",
28}, {NULL, 0}, {"", 0}], 3) = 28
poll([{fd=7, events=POLLIN}], 1, -1) = 1 ([{fd=7,
revents=POLLIN|POLLERR|POLLHUP}])
read(7, 0x8ece04, 4096) = -1 ECONNRESET (Connection
reset by peer)
write(2, "kdialog: Fatal IO error: client "..., 39kdialog: Fatal IO
error: client killed
) = 39
munmap(0x7f2d4817e000, 4296704) = 0
munmap(0x7f2d47201000, 16240640) = 0
writev(8,
[{"l\1\1\1d\0\0\0\t\0\0\0\177\0\0\0\1\1o\0\25\0\0\0/org/fre"..., 144},
{"_\0\0\0type='signal',path='/KGlobal"..., 100}], 2) = 244
close(8) = 0
write(6, "@", 1) = 1
close(6) = 0
close(5) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_NOCLDSTOP,
0x7f2d4ed4d1e0}, {0x7f2d501c3ef0, [], SA_RESTORER|SA_NOCLDSTOP,
0x7f2d4ed4d1e0}, 8) = 0
exit_group(1) = ?
"""
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi all (esp. Alex+Reinhard),
On So 22 Jan 2012 00:51:15 CET Mike Gabriel wrote:
On So 22 Jan 2012 00:47:21 CET Mike Gabriel wrote:
Hi Stefan, hi all,
On Sa 21 Jan 2012 23:12:25 CET "newsgroups.mail2@stefanbaur.de" wrote:
Hi list,
after upgrading to the latest Debian packages, I can no longer run
KDE applications in rootless mode - neither with NX nor with X2Go.Steps to reproduce:
- Run Terminal as single application (not in a full-blown desktop
- everything works fine there)
- Type: kdialog --yesno "Test"
- Session will crash
I can reproduce this with squeeze as X2Go server and Ubuntu lucid
as client system (PyHoca-GUI).and here are the last line of an strace output just before the crash
occurs...Greets, Mike
Stefan has been compiling NX between 0am and 4am in the morning until
he identified FreeNX patch
109_nxagent_locale-utf8-compound-text.full.patch
to cause the reported crashes.
Will take a look ASAP (probably tonight).
Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi Stefan,
On So 22 Jan 2012 12:02:23 CET Mike Gabriel wrote:
Hi all (esp. Alex+Reinhard),
On So 22 Jan 2012 00:51:15 CET Mike Gabriel wrote:
On So 22 Jan 2012 00:47:21 CET Mike Gabriel wrote:
Hi Stefan, hi all,
On Sa 21 Jan 2012 23:12:25 CET "newsgroups.mail2@stefanbaur.de" wrote:
Hi list,
after upgrading to the latest Debian packages, I can no longer
run KDE applications in rootless mode - neither with NX nor
with X2Go.Steps to reproduce:
- Run Terminal as single application (not in a full-blown
desktop - everything works fine there)- Type: kdialog --yesno "Test"
- Session will crash
I can reproduce this with squeeze as X2Go server and Ubuntu lucid
as client system (PyHoca-GUI).and here are the last line of an strace output just before the
crash occurs...Greets, Mike
Stefan has been compiling NX between 0am and 4am in the morning
until he identified FreeNX patch
109_nxagent_locale-utf8-compound-text.full.patch to cause the reported crashes.Will take a look ASAP (probably tonight).
Mike
Just for the records. I have fixed the patch and am currently
preparing a bugfix release.
Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Dear Mike (and also Alex & Reinhard, as I'm not sure how large your part in this is/was, and I don't want to see you go uncredited if you were involved):
THANK YOU THANKY YOU THANK YOU!
This bug has been a royal pain in the *ahem* for months and was a large part (the others being NX4 going closed-source, and the inferior sound support) of what drove me away from NX (where nobody seemed to be willing/able to fix it) to X2Go.
Glad to see its presence in the X2Go code was very limited in time.
Kind Regards, Stefan