<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div><div style="font-family: Calibri,sans-serif; font-size: 11pt;">Just run nxagent -ac :1 to get rid if all the magic cookie stuff during testing.<br><br>Uli</div></div><div dir="ltr"><hr><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Von: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:mike.gabriel@das-netzwerkteam.de">Mike Gabriel</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Gesendet: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">01.10.2015 22:11</span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">An: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:jeff.dagenais@gmail.com">Jean-Francois Dagenais</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Cc: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:x2go-dev@lists.x2go.org">x2go-dev@lists.x2go.org</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Betreff: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">Re: [X2Go-Dev] debian jessie general protection trap inlibNX_X11.so.6.2 caused by some apps</span><br><br></div>Hi Jean-Francois,<br><br>On Thu Oct 1 14:33:36 2015 Jean-Francois Dagenais <jeff.dagenais@gmail.com> wrote:<br><br>> Thanks for the reply. I was able to get a bit further since my mail. I<br>> did the 'apt-get source x2goagent' and 'debuild' to get a stack trace.<br>> <br>> Tried the deb repo you pointed, same behaviour. Although "deb<br>> http://packages.arctica-project.org/debian-nightly/ jessie main" gave me<br>> versions "3.5.99.0-0~git20150928.1021+jessie.nightly.1", not 3.6.x. I<br>> have built 3.6.x (commit 81d92cd0fa293e44bbb063d373d9289ddc358c99) using<br>> "DEB_BUILD_OPTIONS=nocheck debuild -b -uc -us -j8", I will try the<br>> generated .debs later.<br><br>The 3.6.x branch currently carries a 3.5.99.0 version, that is ok. 3.5.99.0-0~git20150928.1021+jessie.nightly.1 is the lates build taken from the 3.6.x branch.<br> <br>> In the mean time, here's what i got from my debug effort on the version<br>> from x2go.org. The fault comes from:<br>> <br>> Program received signal SIGSEGV, Segmentation fault.<br>> _XData32 (dpy=dpy@entry=0x2b319b0, data=<optimized out>,<br>> data@entry=0x34580d4, len=14588, len@entry=18652) at XlibInt.c:3792 3792<br>> *buf++ = *data++; (gdb) l<br>> 3787 i = len;<br>> 3788 dpy->bufptr = (char *)buf + i;<br>> 3789 len -= i;<br>> 3790 i >>= 2;<br>> 3791 while (--i >= 0)<br>> 3792 *buf++ = *data++;<br>> 3793 }<br>> 3794 return 0;<br>> 3795 }<br>> 3796 #endif /* LONG64 */<br>> <br>> Then I did several tests. To get better debug resolution, I compiled the<br>> lib again, but with '-Og' (or -O0, I tried both). Oddly, the problem<br>> goes away! I think there's some alignment problems here: See also:<br>> https://www.mail-archive.com/misc@openbsd.org/msg129941.html<br><br>Ok... Have you checked upstram X.Org already? Checked what they have at that place in the code? They probably have already fixed it.<br><br>See the xorg/libx11 Git repo on git.freedesktop.org. I normally compare the nxagent code with latest X.Org and then many issues dissolve when apply their changes.<br><br>> I'm really confused, If i change the "data" member to an int (32bits)<br>> then it doesn't work. I get no errors, my x11 clients just don't show up<br>> (I use xterm as a test client app). I did manage to fix it by doing:<br>> diff --git a/nx-X11/lib/X11/XlibInt.c b/nx-X11/lib/X11/XlibInt.c index<br>> 47e2ea1..bfcab8d 100644 --- a/nx-X11/lib/X11/XlibInt.c +++<br>> b/nx-X11/lib/X11/XlibInt.c @@ -3770,11 +3770,11 @@ void Data(<br>> int<br>> _XData32(<br>> Display *dpy,<br>> - register long *data,<br>> + volatile long *data,<br>> unsigned len)<br>> {<br>> - register int *buf;<br>> - register long i;<br>> + volatile int *buf;<br>> + volatile long i;<br>> <br>> while (len) {<br>> buf = (int *)dpy->bufptr;<br>> @@ -3785,6 +3785,7 @@ _XData32(<br>> }<br>> if (len < i)<br>> i = len;<br>> + i &= ~0x3;<br>> dpy->bufptr = (char *)buf + i;<br>> len -= i;<br>> i >>= 2;<br>> <br><br>Ok...<br><br>> I also tried to rewrite the method using memcpy but could not get it to<br>> work. It compiles and looks sound, but at execution, my windows (xterm)<br><br>Didn't you say that you observed those issues with gnome3 apps? How does xterm come into play here as a testing candidate?<br><br>> never appear in the server. Lack of proper debugging environment and<br>> further time to invest (too much already) means I will need to drop this<br>> for a while. Especially since now my system runs all of the gnome3 apps<br>> I've tried, so I'm no longer stalled.<br>> <br>> P.S. I was unable to use the nxagent :1 strategy. I do get a Xephyr<br>> style black window, but when I start a client I get this:<br>> dagenaisj@jfddesk:~$ export DISPLAY=:1 dagenaisj@jfddesk:~$ xeyes<br>> No protocol specified<br>> Error: Can't open display: :1<br><br>Oh, that's maybe because you have no magic cookie in you .Xauthority file, yet. Do an X2Go session from localhost to localhost, that runs the proper xauth command. I can also look it up tomorrow when sitting at my notebook. Testing nxagent on localhost really eases the debugging and often let's certain issues disappear. If that happens, then the cause of observed issues may also be hidden in the libxcomp* libraries which handle the NX compression and caching part.<br><br>> Thanks for your help, and let me know if I can further help!<br>> /jfd<br><br>Greets,<br>Mike<br><br>-- <br><br>DAS-NETZWERKTEAM<br>mike gabriel, herweg 7, 24357 fleckeby<br>fon: +49 (1520) 1976148<br><br>GnuPG Key ID 0x25771B13<br>mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de<br><br><br>_______________________________________________<br>x2go-dev mailing list<br>x2go-dev@lists.x2go.org<br>http://lists.x2go.org/listinfo/x2go-dev</body></html>