Bug 1174592

Summary: x2goagent crashes when pasting clipboard contents
Product: [openSUSE] openSUSE Tumbleweed Reporter: Tristan Miller <psychonaut>
Component: OtherAssignee: Gfx Bugs <gfx-bugs>
Status: RESOLVED UPSTREAM QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
See Also: https://bugzilla.opensuse.org/show_bug.cgi?id=1174342
https://bugzilla.opensuse.org/show_bug.cgi?id=1174534
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Tristan Miller 2020-07-28 09:55:14 UTC
I am running two openSUSE Tumbleweed machines, both with x2goserver 4.1.0.4 (from Git commit gaef470fe) and x2goclient 4.1.2.2, and often use X2Go in single application mode to connect between them.  Following a Tumbleweed update on the client machine (from 20200708 to 20200724), the X2Go connection now disconnects whenever I copy text into the clipboard on the local machine and then paste it into the remote application.  The following error message appears in the system log of the
remote machine: 

2020-07-28T11:16:12.479151+02:00 butterfield systemd-coredump[18451]: Process 17960 (x2goagent) of user 1000 dumped core.#012#012Stack trace of thread 17960:#012#0  0x00007fdd0c65c4b1 raise (libc.so.6 + 0x3c4b1)#012#1  0x00007fdd0c645539 abort (libc.so.6 + 0x25539)#012#2  0x00007fdd0c69f827 __libc_message (libc.so.6 + 0x7f827)#012#3  0x00007fdd0c72f4f2 __fortify_fail (libc.so.6 + 0x10f4f2)#012#4  0x00007fdd0c72f4c2 __stack_chk_fail (libc.so.6 + 0x10f4c2)#012#5  0x000055ae7290e691 nxagentCollectPropertyEvent (nxagent + 0xb9691)#012#6  0x000055ae728f54b3 nxagentDispatchEvents (nxagent + 0xa04b3)#012#7  0x000055ae728f9b3a nxagentWakeupHandler (nxagent + 0xa4b3a)#012#8  0x000055ae728ddde3 WaitForSomething (nxagent + 0x88de3)#012#9  0x000055ae728b747a Dispatch (nxagent + 0x6247a)#012#10 0x000055ae728965f6 main (nxagent + 0x415f6)#012#11 0x00007fdd0c646cca __libc_start_main (libc.so.6 + 0x26cca)#012#12 0x000055ae728989ea _start (nxagent + 0x439ea)

The Tumbleweed update included some changes to X11/KDE packages that broke at least one other application (most notably emacsclient -- see Bug 1174534) so maybe this is also the case here.  Another user has already reported a different problem with X2Go following the recent Tumbleweed update -- see Bug 1174342.  I tried downgrading sddm to Revision 49 of the openSUSE:Factory/sddm package on OBS but this did not solve the problem.

Upstream bug report: https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1490
Comment 1 Tristan Miller 2020-07-30 08:00:03 UTC
I'm seeing this problem with the packages I've built (using OBS) from the Git HEAD versions of the various X2Go programs <https://build.opensuse.org/project/show/home:psych0naut:x2go> but not with X2Go's official nightly builds from <http://packages.x2go.org/opensuse/tumbleweed/heuler/>.  This is strange because AFAIK both sets of packages should be built from the same sources.  As a workaround I can use the official packages for now, though this might not be a long-term solution as the official package repository has historically had a lot of problems with missing packages.
Comment 2 Chenzi Cao 2020-11-05 13:40:34 UTC
Hi X11 maintainers, would you please help to take a look at this issue? I'm not sure whether it is correct to assign it to you, please feel free to reassign whenever necessary, thanks.
Comment 3 Tristan Miller 2020-11-05 14:15:04 UTC
The problem has been identified in the upstream NX agent code; a verified fix has been posted to one of its development branches, though this hasn't yet made it into the official release.  I'm assuming this means that I can mark this issue as RESOLVED->UPSTREAM, but please reopen if not.