libxcomp crashes on linux-sparc

Bug #301192 reported by Frank Schaefer
4
Affects Status Importance Assigned to Milestone
nxcomp (Debian)
New
Undecided
Unassigned
nxcomp (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

On Linux-SPARC builds of nxcomp, libxcomp consistently gets whacked by SIGBUS due to unaligned memory accesses. This causes nxproxy to crash whenever anyone tries to connect, and all nxclient sees is a sudden connection reset.

libxcomp actually has codepaths to handle access alignment when required, but they're triggered on "#ifdef __sun" rather than "#ifdef __sparc". The attached patch adds checks for "#ifdef __sparc" where appropriate. With this patch, freenx-server as a whole now appears to be stable on SPARC (at least built from the source packages for Ubuntu 8.04).

This is an upstream bug, so I plan to report this to freenx.berlios.de as well.

Revision history for this message
Frank Schaefer (kelledin) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

Looking at the attachments in this bug report, I noticed that "patch to add checks for "__sparc" macro" was not flagged as a patch. A patch contains changes to an Ubuntu package that will resolve a bug and this attachment is one! Subsequently, I've checked the patch flag for it. In the future when submitting patches please use the patch checkbox as there are some Launchpad searches that use this feature. Thanks for your contribution Frank Schaefer!

Changed in nxcomp:
importance: Undecided → Medium
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.