Public bug reported:

Binary package hint: rdesktop

- This bug has been heavily tested with 1.6.0-2ubuntu1 on Intrepid i386,
but the package hasn't changed in Jaunty or Karmic.

When using LTSP in rdesktop mode, with  rdesktop -r
disk:disk=/media/root/ and as USB drive, it's possible to make rdesktop
segfault under certain circumstances.

How to duplicate:
- Login to rdesktop
- Insert USB key
- Go to "My computer" or equivalent, go to "disk on <terminal>", and click on 
the directory containing the USB drive
- Press F5 until you see the files on the USB drive.
- Now, leave F5 pressed (it will refresh the file list continuously) and 
disconnect the USB drive. You will get a segfault.

The problem is in disk.c. Rdesktop does a "rewinddir(pdir)". Between the
USB disconnect and the umounting of the directory, there is a state of
uncertainty where pdir=0. Doing a rewinddir(0) causes a segfault.

If you add a simple condition, it fixes the problem.
                               if(pdir==0)
                                       return RD_STATUS_NO_SUCH_FILE;

** Affects: rdesktop (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Rdesktop crashes when removing USB key with LTSP
https://bugs.launchpad.net/bugs/389614
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to