#517176 rdesktop segfaults when local share path is not an absolute pathname

Package:
rdesktop
Source:
rdesktop
Description:
RDP client for Windows NT/2000 Terminal Server and Windows Servers
Submitter:
"George B."
Date:
2017-11-13 16:30:03 UTC
Severity:
important
#517176#5
Date:
2009-02-26 08:29:22 UTC
From:
To:
Hello,

For some reason rdesktop started crashes sometimes after logging in to server.
---
[  542.895551] rdesktop[3502]: segfault at 755447d7 ip 080644c4 sp bfff5b00 error 4 in rdesktop[8048000+31000]
---

Backtrace:
---
borisov@chr-w-borisov:~$ gdb /usr/bin/rdesktop rdesktop_core
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(no debugging symbols found)

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8
Reading symbols from /usr/lib/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /lib/i686/cmov/libc.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libc.so.6
Reading symbols from /lib/i686/cmov/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libz.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libxcb-xlib.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxcb-xlib.so.0
Reading symbols from /usr/lib/libxcb.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxcb.so.1
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/lib/libXau.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /usr/lib/gconv/UTF-16.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gconv/UTF-16.so
Reading symbols from /lib/i686/cmov/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libnss_files.so.2
Reading symbols from /lib/libnss_mdns4_minimal.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_mdns4_minimal.so.2
Reading symbols from /lib/i686/cmov/libnss_dns.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libnss_dns.so.2
Reading symbols from /lib/i686/cmov/libresolv.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libresolv.so.2
Reading symbols from /usr/lib/libXcursor.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXrender.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXfixes.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXfixes.so.3

(no debugging symbols found)
Core was generated by `rdesktop -a 16 -P -u user -d domain -k en-gb -g 1152x864 -r clipboard:off c'.
Program terminated with signal 11, Segmentation fault.
[New process 3502]
#0  0x080644c4 in ?? ()
---

Core attached.


HTH,

George.

#517176#10
Date:
2010-08-29 03:46:00 UTC
From:
To:
$ uname -a
Linux nyx 2.6.32-5-amd64 #1 SMP Thu Aug 12 13:01:50 UTC 2010 x86_64 GNU/Linux

$ cat /etc/debian_version
squeeze/sid

$ dpkg -l
.
.
ii  rdesktop  1.6.0-3  RDP client for Windows NT/2000 Terminal Serv
.

Using the following:

mkdir test
chmod 777 test
rdesktop -Pz -a 16 -g 80% -r disk:FUN=test host.somewhere.com


I get a segfault when I try to access the drive defined by
the "-r" option after I login to the remote system. (I have
a 32 bit debian system that elicits the same behavior.)

$ dmesg

[375268.859461] rdesktop[11487]: segfault at 1 ip 000000000042a913 sp 00007fffd43a57a0 error 4 in rdesktop[400000+36000]

#517176#15
Date:
2017-11-13 16:26:46 UTC
From:
To:
I can confirm this bug and its (a?) cause:

tglase@tglase:~ $ rdesktop -r disk:foo=bar $remotehost
ERROR: CredSSP: Initialize failed, do you have correct kerberos tgt initialized ?
Connection established using SSL.
WARNING: Remote desktop does not support colour depth 24; falling back to 16
Segmentation fault
139|tglase@tglase:~ $ rdesktop -r disk:foo=/home/tglase/bar/ $remotehost
ERROR: CredSSP: Initialize failed, do you have correct kerberos tgt initialized ?
Connection established using SSL.
WARNING: Remote desktop does not support colour depth 24; falling back to 16

The cause here is indeed access to the share.