Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#6899 - rdesktop 1.50 segfaults on libX > 1.0.3

Attached to Project: Arch Linux
Opened by Quido Meijer (Aapzak) - Friday, 13 April 2007, 12:36 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 17 April 2007, 00:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dan McGee (toofishes)
Architecture i686
Severity High
Priority Normal
Reported Version 0.8 Voodoo
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


rdesktop (and probably more x apps) segfaults if libx 1.0.3 or higher is used on the system.

The session gets started but crashes when handling windows. I get it to crash every time on opening and closing the windows xp start menu. (just click on start twice).

On Debian the problems start with version 1.0.3-7 and higher. The problem has been solved with a patch. The patch comes from the rdesktop site.

I'm at work and don't have the time to try and get this working. I might give it a try tonight. I hope this get fixed soon.
This task depends upon

Closed by  Dan McGee (toofishes)
Tuesday, 17 April 2007, 00:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  patched and uploaded to extra repo
Comment by Dan McGee (toofishes) - Friday, 13 April 2007, 23:11 GMT
You've seen this happen with the most recent versions of rdesktop and libx11?

Can you give me the versions you have of both using pacman? I've been using rdesktop without problems. I don't have a Windows XP box I can connect to however.

I just want to make sure you have the most recent version of both rdesktop and libx11 before I patch it.
Comment by Quido Meijer (Aapzak) - Saturday, 14 April 2007, 07:51 GMT
This is what I have installed. As far as I understood from other posts there was a change in libX11 which initiated this bug in rdesktop. Opera had bugs too, but fixed them allready.

I updated my system on friday (never upgrade on friday 13th) and right after that my rdesktop started failing on me. That update involved libX11 and not rdesktop. It is a rdesktop bug however.

pacman -Qi rdesktop
Name : rdesktop
Version : 1.5.0-1
Build Date : Sun Mar 18 20:27:36 2007 UTC
Install Date : Wed Mar 28 15:04:08 2007 UTC

pacman -Qi libx11
Name : libx11
Version : 1.1.1-4
Build Date : Wed Apr 4 17:00:33 2007 UTC
Install Date : Fri Apr 13 08:20:42 2007 UTC
Comment by Quido Meijer (Aapzak) - Monday, 16 April 2007, 09:40 GMT
The patch works, I don't know how to test everything else. I hacked it into the PKGBUILD, but I'm far from a experienced code hacker.
My problems with the segfaulting rdesktop are now gone.

I raised my pkgrel to 2 and modified the pkgbuild so now the build part looks like this:

build() {
cd $startdir/src/$pkgname-$pkgver
patch -R -p0 < $startdir/rdesktop-1.5.0-xwin.c-patch || return 1
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install

I copied the patch into the dir myself, I don't know how to auto download and MD5 the patch itself.