Rdesktop crashes when removing USB key with LTSP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rdesktop (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
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=
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.
Changed in rdesktop (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Patch included