nautilus abnormal ressource usage reading some specific directory content
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nautilus (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: nautilus
Running nautilus version "GNOME nautilus 2.20.0", nautilus RAM consumption grows and CPU usage is about 80 % reading this directory content:
# cd /srv/tmp/MU
# ls -l /srv/tmp/MU
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Angel Heart
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Apocalypto
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Cliff Martinez
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Collateral
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Come See The Paradise
-rw-r--r-- 1 root root 0 2008-01-13 18:40 Corner Stone Cues - Requiem For A Tower.mp3
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Crash
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Dimitri Tiomkin
-rw-r--r-- 1 root root 0 2008-01-13 18:40 Dumb & Dumber - Crash (by The Primitives).mp3
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Gustavo Santaolalla
-rw-r--r-- 1 root root 0 2008-01-13 18:40 Hannibal - Vide Cor Meum (by Patrick Cassidy).mp3
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Hans Zimmer
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Heat
-rw-r--r-- 1 root root 0 2008-01-13 18:40 Human Traffic - Kittens (by Underworld).mp3
-rw-r--r-- 1 root root 0 2008-01-13 18:40 Inside Man - Chaiyya Chaiyya Bollywood Joint.mp3
drwxr-xr-x 2 root root 48 2008-01-13 18:40 John Murphy
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Leviathan
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Lord of War
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Steve Jablonsky
-rw-r--r-- 1 root root 0 2008-01-13 18:40 Syriana.mp3
-rw-r--r-- 1 root root 0 2008-01-13 18:40 The Day After Tomorrow.mp3
-rw-r--r-- 1 root root 0 2008-01-13 18:40 The Flight Of The Phoenix - Heat Dream.mp3
drwxr-xr-x 2 root root 48 2008-01-13 18:40 The Last Of The Mohicans
drwxr-xr-x 2 root root 48 2008-01-13 18:40 The Wild Bunch
drwxr-xr-x 2 root root 48 2008-01-13 18:40 Traffic
-rw-r--r-- 1 root root 0 2008-01-13 18:40 Volver - Dos en la Furgoneta.mp3
$ nautilus /srv/tmp/MU &
Initializing gnome-mount extension
$ top -p $(pidof nautilus)
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
13283 xxxxx 25 0 458m 302m 11m R 84.1 60.1 6:06.32 nautilus
Moving some files or directories from within /srv/tmp/MU does not trigger the bug.
# mv Steve\ Jablonsky/ ..
$ top -p $(pidof nautilus)
..
13386 xxxxx 16 0 60996 23m 14m S 0.0 4.7 0:01.21 nautilus
Renaming mp3 files does it too.
(# mv ../Steve* .)
# rename 's,mp3,mp3.jkl,g' *mp3
$ top -p $(pidof nautilus)
..
13437 xxxxx 15 0 57052 27m 14m S 0.0 5.4 0:01.26 nautilus
cpu model name : AMD Athlon(tm) XP 2000+
DISTRIB_
This looks like a memory leak on mp3 directory content reading. I suppose that this bug may happen on some other directory content.
This bug can be considered as a dos security issue since this directory content may be downloaded from any peer to peer network package file.
Note:
# strace nautilus /srv/tmp/MU |tee -a /home/ludovic/
[...]
socket(PF_FILE, SOCK_STREAM, 0) = 3
[...]
write(3, "\2\n\4\
write(3, "\2\n\4\
write(3, "\f\n\7\
write(3, "\2\n\4\
write(3, "\f\n\7\
write(3, "\2\n\4\
write(3, "\2\n\4\
write(3, "\f\n\7\
[...]
read(3, "\26\17\
read(3, "\26\17\
read(3, "\26\17\
read(3, "\26\17\
read(3, "\26\17\
read(3, "\26\17\
read(3, "\26\17\
read(3, "\26\17\
read(3, "\26\17\
read(3, "\26\17\
read(3, "\26\17\
read(3, "\26\17\
[indefinite socket reading ..]
# rename 's,mp3,mp3.jkl,g' *mp3
# strace nautilus /srv/tmp/MU |tee -a /home/ludovic/
[no indefinite socket reading ..]
Sahabia.
Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported is one that should be reproducible with the live environment of the Desktop CD of the development release - Hardy Heron. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find out more about the development release at http:// www.ubuntu. com/testing/ . Thanks again and we appreciate your help.