Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177524 - xfce-extra/squeeze-0.2.1 locks system with MASSIVE memory leak
Summary: xfce-extra/squeeze-0.2.1 locks system with MASSIVE memory leak
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-07 17:43 UTC by Leif Walsh
Modified: 2007-05-14 20:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (log1.txt,9.59 KB, text/plain)
2007-05-07 17:44 UTC, Leif Walsh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leif Walsh 2007-05-07 17:43:07 UTC
I ran squeeze on an already created archive, and tried to delete a folder from it.  My system locked up, and top showed all of my memory/swap being used, 91.1% of it by squeeze.

I did two straces on it, neither for very long, but they show a couple potential problems.

Reproducible: Always

Steps to Reproduce:
1. Run squeeze.
2. Open an archive.
3. Delete a file from the archive.

Actual Results:  
Ate up memory like nothing I've ever seen.

Expected Results:  
Delete the file without taxing the system nearly so much.

 $ strace -c squeeze Desktop/lab11.tar.gz > log1.txt
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 26.95    0.011169           0    128046       176 open
 12.58    0.005215           0    127715           munmap
 12.30    0.005099           0    255537           fstat
  9.90    0.004104           0    127913           mmap
  9.65    0.004000          13       318           poll
  8.55    0.003545           0    127696           lseek
  7.53    0.003119           0    128807        41 read
  7.07    0.002931           0    127882           close
  4.83    0.002000         667         3           clone
  0.27    0.000113           1       222           write
  0.25    0.000105           0       496       360 stat
  0.04    0.000017           9         2           wait4
  0.04    0.000017           4         4           clock_gettime
  0.03    0.000012           0       118        78 access
  0.00    0.000000           0         5         2 lstat
  0.00    0.000000           0        73           mprotect
  0.00    0.000000           0      1006           brk
  0.00    0.000000           0         5           rt_sigaction
  0.00    0.000000           0         1           rt_sigprocmask
  0.00    0.000000           0         2           rt_sigreturn
  0.00    0.000000           0       343         1 ioctl
  0.00    0.000000           0         2           readv
  0.00    0.000000           0        13           writev
  0.00    0.000000           0        10           pipe
  0.00    0.000000           0         2           select
  0.00    0.000000           0         1           madvise
  0.00    0.000000           0         1           shmget
  0.00    0.000000           0         1           shmat
  0.00    0.000000           0         1           shmctl
  0.00    0.000000           0         4           socket
  0.00    0.000000           0         4         2 connect
  0.00    0.000000           0         1           recvmsg
  0.00    0.000000           0         1           getsockopt
  0.00    0.000000           0         1           execve
  0.00    0.000000           0        12           uname
  0.00    0.000000           0        36           fcntl
  0.00    0.000000           0        38           getdents
  0.00    0.000000           0         2           getcwd
  0.00    0.000000           0        10        10 mkdir
  0.00    0.000000           0         9           umask
  0.00    0.000000           0       210           gettimeofday
  0.00    0.000000           0         1           getrlimit
  0.00    0.000000           0        12           getuid
  0.00    0.000000           0         1           getresuid
  0.00    0.000000           0         1           getresgid
  0.00    0.000000           0         1           sched_getparam
  0.00    0.000000           0         1           sched_getscheduler
  0.00    0.000000           0         2           sched_get_priority_max
  0.00    0.000000           0         1           sched_get_priority_min
  0.00    0.000000           0         1           arch_prctl
  0.00    0.000000           0         3           futex
  0.00    0.000000           0         1           set_tid_address
  0.00    0.000000           0         1           clock_getres
  0.00    0.000000           0         1           set_robust_list
------ ----------- ----------- --------- --------- ----------------
100.00    0.041446               1026580       670 total

 $ strace -c squeeze Desktop/lab11.tar.gz           
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 23.54    0.008000           0    113983       176 open
 16.80    0.005711           0    113633           lseek
 15.25    0.005184           0    227411           fstat
 14.83    0.005040           0    113850           mmap
  9.97    0.003390           0    113652           munmap
  9.14    0.003107           0    113819           close
  5.49    0.001866           0    114646        26 read
  2.94    0.001000         333         3           clone
  1.54    0.000523           3       207           gettimeofday
  0.13    0.000045           0       201           write
  0.11    0.000036           0       897           brk
  0.09    0.000031           0       118        78 access
  0.05    0.000017           4         4           clock_gettime
  0.05    0.000016           8         2           wait4
  0.03    0.000011           0       448       328 stat
  0.03    0.000009           0       215           poll
  0.00    0.000000           0         5         2 lstat
  0.00    0.000000           0        73           mprotect
  0.00    0.000000           0         5           rt_sigaction
  0.00    0.000000           0         1           rt_sigprocmask
  0.00    0.000000           0         2           rt_sigreturn
  0.00    0.000000           0       189         1 ioctl
  0.00    0.000000           0         2           readv
  0.00    0.000000           0        13           writev
  0.00    0.000000           0        10           pipe
  0.00    0.000000           0         2           select
  0.00    0.000000           0         1           madvise
  0.00    0.000000           0         1           shmget
  0.00    0.000000           0         1           shmat
  0.00    0.000000           0         1           shmctl
  0.00    0.000000           0         4           socket
  0.00    0.000000           0         4         2 connect
  0.00    0.000000           0         1           recvmsg
  0.00    0.000000           0         1           getsockopt
  0.00    0.000000           0         1           execve
  0.00    0.000000           0        12           uname
  0.00    0.000000           0        36           fcntl
  0.00    0.000000           0        38           getdents
  0.00    0.000000           0         2           getcwd
  0.00    0.000000           0        10        10 mkdir
  0.00    0.000000           0         9           umask
  0.00    0.000000           0         1           getrlimit
  0.00    0.000000           0        12           getuid
  0.00    0.000000           0         1           getresuid
  0.00    0.000000           0         1           getresgid
  0.00    0.000000           0         1           sched_getparam
  0.00    0.000000           0         1           sched_getscheduler
  0.00    0.000000           0         2           sched_get_priority_max
  0.00    0.000000           0         1           sched_get_priority_min
  0.00    0.000000           0         1           arch_prctl
  0.00    0.000000           0         3           futex
  0.00    0.000000           0         1           set_tid_address
  0.00    0.000000           0         1           clock_getres
  0.00    0.000000           0         1           set_robust_list
------ ----------- ----------- --------- --------- ----------------
100.00    0.033986                913540       623 total
Comment 1 Leif Walsh 2007-05-07 17:44:17 UTC
Created attachment 118466 [details]
emerge --info

attached emerge --info
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2007-05-08 09:19:13 UTC
Has this been reported upstream?
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2007-05-14 20:19:04 UTC
I've talked with upstream about this, and he had no clue with this information. 
You should likely get a valgrind output of some sort and post your information in a bug at http://bugzilla.xfce.org.

However, because of this bug I've reordered deps in thunar-archive so that xarchiver gets installed primarily instead of squeeze. I also left squeeze out of our 4.4.1 stabilization bug, giving it some time to get better as it's rather new software.