RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 995915 - [freeNX] restore_session race-condition in 'nxnode'
Summary: [freeNX] restore_session race-condition in 'nxnode'
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: xorg-x11-drivers
Version: 6.4
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Adam Jackson
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-12 01:47 UTC by starlight
Modified: 2014-04-04 15:28 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-04 15:28:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to correct race condition in '/usr/bin/nxnode' (1.72 KB, application/force-download)
2013-08-12 01:47 UTC, starlight
no flags Details

Description starlight 2013-08-12 01:47:42 UTC
Created attachment 785509 [details]
patch to correct race condition in '/usr/bin/nxnode'

Description of problem:

Component is FreeNX, but this is not present
in the drop-down list.

Attempts to reconnect from 'nxclient' to 'freenx'
fail after authentication with timeout during
the "Negotiating Link Parameters" phase.

Version-Release number of selected component (if applicable):

freenx-0.7.3-9.4.el6 (on RHEL side)
nxclient-3.5.0-9 (on Windows client side)

How reproducible:

Random occurrence.  Have a VM that
triggered it reliably before it was
fixed locally.

Steps to Reproduce:

Probably one can force this to happen
by inserting a 'sleep' at the
appropriate point in the '/usr/bin/nxnode'
script.  Over several years others have
encountered the problem.  Search on
these to find them:

"[Loop: PANIC! Can't identify NX port in string"

nx "negotiating link parameters" timeout

nx "display failure detected at"

"Identified options: nx,options=" "/S-/options:"

Actual results:

'nxclient' reports a timeout instead
of reconnecting.

Expected results:

Successfully reconnection to existing session.

Additional info:

When reconnecting to an existing session,
'nxclient' depends on the "710 Session status:
running" reply arriving *after* the 70x messages
that carry the session-id and other useful bits of
data.

However the '/usr/bin/nxnode' script that
generates these messages invokes the
'node_start_monitor' function that produces the
710 asynchronous to, and before the lines that
emit the 70x messages. So on occasion (in some
situations, on every occasion) the 710 arrives
first and 'nxclient' fails to start the session
because it has an empty session-id string.

upstream bug report at

http://developer.berlios.de/bugs/?func=detailbug&bug_id=19079&group_id=2978

upstream patch at

http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=3491&group_id=2978

Comment 2 Adam Jackson 2014-04-04 15:28:36 UTC
I'm... confused.  freenx isn't selectable as a component _because_ we don't ship it in RHEL.  And I'm not seeing it in EPEL either, so I'm really not sure where you got the package in the first place, let alone how to get your fix integrated.


Note You need to log in before you can comment on or make changes to this bug.