Bug 137382

Summary: rdesktop keeps crashing
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Jens Benecke <jens-novell>
Component: X11 ApplicationsAssignee: Michael Calmer <mc>
Status: RESOLVED WORKSFORME QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Comment 1 Jens Benecke 2005-12-07 14:59:39 UTC
ARgh, I just submitted my passwort. Please censor it :-)
I have also changed it locally.
Comment 2 Michael Gross 2005-12-07 15:05:42 UTC
Sorry but I cannot do that, because I cannot edit your comments. I could only mark it as private and you'd have to edit it and paste it as a new comment without the password. ;)
Comment 3 Martin Lasarsch 2005-12-07 15:11:41 UTC
market as private
Comment 4 Jens Benecke 2005-12-07 15:48:28 UTC
OK, here is another copy (censored): :-)

Thanks!

============================================================================
Hello,

we use rdesktop (shipped with SuSE 10.0, v1.4.1) to connect to Windows terminal servers. This is to avoid having Windows locally on each PC. However, rdesktop seems to be very unstable.

One Windows 2003 Terminal server has a particular problem: rdesktop just crashes / quits:

~> rdesktop -T "Remote Desktop [XXX@getserver4]" -d GET -u XXXX -p XXXX -r sound:local -a 16 -B -k de -g 1274x970  -r disk:Home=$$HOME,Media=/media -r printer:hp_laserjet4l="HP Laserjet 4L",deskjet890c="HP DeskJet 890C",laserjet2300="HP LaserJet 2200 Series PCL"  139.11.161.161
PRINTER PRN1 to hp_laserjet4l driver HP Laserjet 4L
PRINTER PRN2 to deskjet890c driver HP DeskJet 890C
PRINTER PRN3 to laserjet2300 driver HP LaserJet 2200 Series PCL
WARNING: External BackingStore not available, using internal
ERROR: recv: Bad address
Speicherzugriffsfehler

This happens often when starting a program, exactly when the application startup logo appears (e.g. FEKO). It also happens when trying to save a file in any application, when the File/save dialog appears.

The problem only appears when using 16-bit color depth, which is however a requirement for many of our applications.


~> gdb /usr/X11/bin/rdesktop 15717
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".


Attaching to program: /usr/X11R6/bin/rdesktop, process 15717
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
Reading symbols from /usr/lib/libcrypto.so.0.9.7...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.7
Reading symbols from /usr/X11R6/lib/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/libdl.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
Reading symbols from /usr/lib/gconv/ISO8859-15.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-15.so
Reading symbols from /usr/lib/gconv/UTF-16.so...done.
Loaded symbols for /usr/lib/gconv/UTF-16.so
Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.1
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
0xffffe410 in __kernel_vsyscall ()
(gdb) cont
Continuing.
ERROR: recv: Bad address

Program received signal SIGSEGV, Segmentation fault.
0x40199eee in XkbFreeClientMap () from /usr/X11R6/lib/libX11.so.6
(gdb) bt 20
#0  0x40199eee in XkbFreeClientMap () from /usr/X11R6/lib/libX11.so.6
#1  0x4019cbf5 in XkbFreeKeyboard () from /usr/X11R6/lib/libX11.so.6
#2  0x4018f265 in XkbIgnoreExtension () from /usr/X11R6/lib/libX11.so.6
#3  0x401523fe in _XFreeDisplayStructure () from /usr/X11R6/lib/libX11.so.6
#4  0x401404b8 in XCloseDisplay () from /usr/X11R6/lib/libX11.so.6
#5  0x08051268 in error ()
#6  0x0804d3aa in error ()
#7  0x40239ea0 in __libc_start_main () from /lib/tls/libc.so.6
#8  0x0804b6e1 in ?? ()

It won't happen with 8-bit depth, and no other combination of parameters has produced this crash yet.

Please investigate this.

Thank you! :-)

Jens
Comment 5 Michael Gross 2005-12-07 16:04:36 UTC
Please don't inline larger quantities of text here (more than ~20 lines), rather use the attachment feature instead. Bug reassigned.
Comment 6 Michael Calmer 2005-12-08 15:23:14 UTC
I was unable to reproduce it here. I can send you a package with debugging
symbols if you want. 
Comment 7 Jens Benecke 2005-12-08 16:15:24 UTC
Yes, please do! I tried recompiling myself, but I don't know what compile options you need. I'll happily to submit backtraces. I'd even let you test it out yourself if the machine in question were not behind a firewall.
Comment 8 Michael Calmer 2005-12-13 13:40:34 UTC
Additional info from Jens:

The crash happens sometimes if a special application is started inside the
windows terminal server session.

Because I am unable to reproduce it I close this with "WORKSFORME".

Please reopen this bug if you have more informations (maybe from the 
rdesktop developers directly).