libxcomp crashes on linux-sparc
Bug #301192 reported by
Frank Schaefer
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.
To post a comment you must log in.
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!