-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x2goagent 3.5.99.26 crashes on connect #1009
Comments
Hmm, can you please install debug symbols and repeat the backtrace?
…On Tue, Mar 16, 2021 at 5:06 AM Marek Marczykowski-Górecki < ***@***.***> wrote:
When connecting to an existing X11 session ("connect to local desktop"), I
get a x2goagent crash:
Stack trace of thread 663053:
#0 0x00005f237a3f4f0b RREditConnectionInfo (nxagent + 0x32ff0b)
#1 0x00005f237a17f840 nxagentChangeScreenConfig (nxagent + 0xba840)
#2 0x00005f237a16d2e9 nxagentDispatchEvents (nxagent + 0xa82e9)
#3 0x00005f237a167e2d nxagentDisplayWriteHandler (nxagent + 0xa2e2d)
#4 0x000079af2a8bf6f1 _XSendClientPrefix (libX11.so.6 + 0x266f1)
#5 0x000079af2a8d2cd4 XOpenDisplay (libX11.so.6 + 0x39cd4)
#6 0x000079af2a74a9a4 _ZN6Poller4initEv (libXcompshad.so.3 + 0x99a4)
#7 0x000079af2a74806c NXShadowCreate (libXcompshad.so.3 + 0x706c)
#8 0x00005f237a17f92a nxagentShadowInit (nxagent + 0xba92a)
#9 0x00005f237a1172fb DefineInitialRootWindow (nxagent + 0x522fb)
#10 0x00005f237a1079f0 main (nxagent + 0x429f0)
#11 0x000079af2a0ab082 __libc_start_main (libc.so.6 + 0x27082)
#12 0x00005f237a107d7e _start (nxagent + 0x42d7e)
By inspecting it with gdb, I see the crash is on accessing ConnectionInfo,
which is NULL at this point. Indeed the crash happens at
DefineInitialRootWindow call time
<https://github.com/ArcticaProject/nx-libs/blob/3.6.x/nx-X11/programs/Xserver/dix/main.c#L334>,
and ConnectionInfo is initialized only a few lines below
<https://github.com/ArcticaProject/nx-libs/blob/3.6.x/nx-X11/programs/Xserver/dix/main.c#L344>
.
It is 100% reproducible for me, 3.5.99.25 worked fine. Both on Fedora 32
based system.
I can provide more details if you tell me what is needed. I can also share
the coredump if it would be useful (I don't have any sensitive data on this
system).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1009>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQHBZERSKCAQDQSLHN6ZZTTD3KMJANCNFSM4ZHYDHXA>
.
|
Sure:
|
There was a problem with 32bit builds recently and I just read Fedora 32 and an alarm was ringing in my head. Of course it's a wrong alarm because you're using Fedora 32 64bit and not 32bit :-) |
Hmm, so ConnectionInfo is setup in CreateConnectionBlock() while DefineInitialRootWindow() is called a few lines before. The thing is: that code has not been touched recently. Maybe having the dump might help. |
Ok, we should probably backport this: https://gitlab.freedesktop.org/xorg/xserver/-/commit/941aeb3b92e644923bd112eef8023f033a140ee6 |
This indeed looks like a fix for this issue! I was afraid to propose something like this, because I'm not sure if that wouldn't miss some important data (after all, this event is handled for some reason). I wonder why it wasn't an issue before. Were there any other changes to randr handling recently? |
no, not that I am aware of. This make me wondering, too.
…On Tue, Mar 16, 2021 at 3:25 PM Marek Marczykowski-Górecki < ***@***.***> wrote:
Ok, we should probably backport this:
This indeed looks like a fix for this issue! I was afraid to propose
something like this, because I'm not sure if that wouldn't miss some
important data (after all, this event is handled for some reason). I wonder
why it wasn't an issue before. Were there any other changes to randr
handling recently?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1009 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQHBZHPHFCT3ISGD4OBX3DTD5S3VANCNFSM4ZHYDHXA>
.
|
@uli42: Please do. Thanks! This would be a candidate for a patch I should bring to Debian's version of nx-libs. |
Backport of this xorg-xserver commit: commit 941aeb3b92e644923bd112eef8023f033a140ee6 Author: Olivier Fourdan <ofourdan@redhat.com> Date: Fri May 13 08:58:58 2016 +0200 randr: Do not update ConnectionInfo if NULL RRScreenSizeNotify() will update the connection information block, but if this occurs during initialization before ConnectionInfo is even initialized, this will lead to a crash. Simply check for ConnectionInfo prior to update it to avoid the crash. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95337 Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Fixes ArcticaProject#1009
Backport of this xorg-xserver commit: commit 941aeb3b92e644923bd112eef8023f033a140ee6 Author: Olivier Fourdan <ofourdan@redhat.com> Date: Fri May 13 08:58:58 2016 +0200 randr: Do not update ConnectionInfo if NULL RRScreenSizeNotify() will update the connection information block, but if this occurs during initialization before ConnectionInfo is even initialized, this will lead to a crash. Simply check for ConnectionInfo prior to update it to avoid the crash. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95337 Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Fixes ArcticaProject#1009
When connecting to an existing X11 session ("connect to local desktop"), I get a x2goagent crash:
By inspecting it with gdb, I see the crash is on accessing
ConnectionInfo
, which is NULL at this point. Indeed the crash happens atDefineInitialRootWindow
call time, andConnectionInfo
is initialized only a few lines below.It is 100% reproducible for me, 3.5.99.25 worked fine. Both on Fedora 32 based system.
I can provide more details if you tell me what is needed. I can also share the coredump if it would be useful (I don't have any sensitive data on this system).
The text was updated successfully, but these errors were encountered: