Skip to content
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

segfault due to bug/loop in io.c or record.c #417

Closed
HolySephi opened this issue Apr 4, 2017 · 11 comments
Closed

segfault due to bug/loop in io.c or record.c #417

HolySephi opened this issue Apr 4, 2017 · 11 comments

Comments

@HolySephi
Copy link

First my setup as usual:
Distribution is Ubuntu 16.04 - bash_history of compile and install:

git clone https://github.com/ArcticaProject/nx-libs.git
cd nx-libs
debuild -uc -us -j4
cd ..
dpkg -i *.deb

Using x2goserver from x2go/ppa

Right after starting a session the desktop shows for about a second and then segfaults. gdb backtrace:
https://pastebin.com/QaJGuMwX

Backtrace #6 to #10 repeat thousands of times until the last backtraces are:

#97014 0x000055a4cef83a6b in ProcRecordEnableContext (client=0x55a4d00d35a0) at record.c:2526
#97015 0x000055a4cee8c426 in Dispatch () at NXdispatch.c:482
#97016 0x000055a4cee70170 in main (argc=18, argv=0x7ffcd5ce4788, envp=) at main.c:346

Ionic stated in IRC that it might be related to the following PR:

https://github.com/ArcticaProject/nx-libs/pull/376/commits probably something in here
probably the second in here: 65b6a62

Currently it is impossible to compile nx-libs and run a x2goserver with the built packages

@Ionic
Copy link
Member

Ionic commented Apr 4, 2017

[17:20:45] < Ionic> I'll have to compare our callbacks to upstream's at the time they wrote that commit

@uli42
Copy link
Member

uli42 commented Apr 4, 2017

Hmm, works for me. Could not provoke this on Ubuntu 16.04

@HolySephi
Copy link
Author

Every single time for me on different machines. I'll attach a dpkg --list tomorrow

@sunweaver
Copy link
Member

@HolySephi: Just tested a MATE desktop with nxagent from the nightlies and no failures could be observed. You run XFCE from Ubuntu 16.04, right?

@HolySephi
Copy link
Author

Attached is my dpkg --list with working arctica release and not working self compiled.

Yes i'm running XFCE from 16.04 repos

dpkg_selfcompiled_not_working.txt
dpkg_working.txt

@Ionic
Copy link
Member

Ionic commented Apr 5, 2017

Note that it only happens for him when connecting via X2Go - spawning nxagent :1 manually seems to be fine.

@sunweaver
Copy link
Member

sunweaver commented Apr 5, 2017 via email

@HolySephi
Copy link
Author

Attached is my buildlog
debuild_log.txt

@HolySephi
Copy link
Author

bisecting the repo got me to the commit Ionic mentioned above:

65b6a62 is the first bad commit
commit 65b6a62
Author: Michel Dänzer michel.daenzer@amd.com
Date: Wed Feb 15 08:13:57 2017 +0000

dix: Pass ClientPtr to FlushCallback

.....
Backported-to-NX-by: Mike Gabriel mike.gabriel@das-netzwerkteam.de

:040000 040000 143670b2bca50b608a97a16078df502f5640cb9c f4cca236fbbd1428f47fa07b3a432efcd83024dd M nx-X11

@Ionic Ionic closed this as completed in c8a4e1e Apr 6, 2017
@uli42
Copy link
Member

uli42 commented Apr 6, 2017 via email

@HolySephi
Copy link
Author

Just wanted to confirm the fix - segfaulting stopped with the patch from c8a4e1e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants