Mantis - rdesktop
Viewing Issue Advanced Details
4605 regular use minor always 2010-11-16 17:25 2011-04-20 14:47
skayser  
dam  
normal  
assigned  
open  
none    
none  
0004605: Segfaults when using SeamlessRDP (-s/-A) inside a tiling workspace
Just tried to use rdesktop with the seamless RDP instructions from http://www.cendio.com/seamlessrdp/. [^]

* Get the server side component http://www.cendio.com/seamlessrdp/seamlessrdp.zip [^]
* Unpack to c:\bin
* rdesktop -A -s "c:\bin\seamlessrdpshell.exe notepad" terminal

When I invoke rdesktop with these options inside a tiling workspace (managed by ion3), rdesktop temporarily opens three "SeamlessRDP restack test" windows and then segfaults before opening the actual RDP connection window for the Windows logon mask. Remote system is a Windows Server 2003R2.

$ pstack core
core 'core' of 23424: rdesktop -A -s c:\bin\seamlessrdpshell.exe notepad terminal
 08059fa1 ???????? (60000c, 60000d)
 0805a167 ???????? (1, 8046d60, 33, 80d5268, 3eb, 80d5268)
 0805d4f0 ui_create_window (804717c, 8047034, feffb818, 8046d00, fefcd5b2, 8046d98) + 424
 08058985 main (5, 8047078, 8047090) + b85
 08057806 _start (5, 80471e4, 80471ed, 80471f0, 80471f3, 804720f) + 7a

Running the same rdesktop command inside a floating workspace (where windows can be arranged as with regular window managers) works fine, so it seems rdesktop doesn't properly cope with the window placement/resizing carried out by ion3. This might also pertain to other tiling window managers like awesomewm, wmii, or xmonad (haven't tested this though).
$ pkginfo -l CSWrdesktop
   PKGINST: CSWrdesktop
      NAME: rdesktop - RDP client for Windows NT/2000/2003/XP Terminal Server
  CATEGORY: application
      ARCH: i386
   VERSION: 1.6.0,REV=2009.02.22
   BASEDIR: /
    VENDOR: http://www.rdesktop.org/ [^] packaged for CSW by Chad Harp
    PSTAMP: harpchad@build8x-20090222082540
  INSTDATE: Mar 03 2010 08:38
   HOTLINE: http://www.opencsw.org/bugtrack/ [^]
     EMAIL: harpchad@opencsw.org
    STATUS: completely installed
     FILES: 45 installed pathnames
                   3 directories
                   1 executables
                 713 blocks used (approx)
Issue History
2010-11-16 17:25 skayser New Issue
2011-04-20 14:41 dam Status new => assigned
2011-04-20 14:41 dam Assigned To => dam
2011-04-20 14:41 dam Note Added: 0008978
2011-04-20 14:47 skayser Note Added: 0008981

Notes
(0008978)
dam   
2011-04-20 14:41   
Could you please verify if the problem still exists?
(0008981)
skayser   
2011-04-20 14:47   
Yes it does. Same behaviour.

$ pkgparam CSWrdesktop VERSION
1.6.0,p,REV=2011.02.16

$ rdesktop -A -s "c:\bin\seamlessrdpshell.exe notepad" terminal
Segmentation Fault (core dumped)

$ pstack core
core 'core' of 4729: rdesktop -A -s c:\bin\seamlessrdpshell.exe notepad terminal
 0805a828 ???????? (110000c, 110000d, 20000, 8047690)
 0805aa35 ???????? (80d90a0, 8027c6f5, 23804f, 806c8ee, 0, 0)
 0805dedf ui_create_window (0, 0, 0, 0, 82682a8, 0) + 487
 08058f5e main (5, 8047b44, 8047b5c, 8057c0f) + cde
 08057c6d _start (5, 8047c28, 8047c31, 8047c34, 8047c37, 8047c4e) + 7d