Package: git
Version: 1:2.0.0~rc2-1
Severity: important
Affects: hobbit-plugins
Control: found -1 1:2.0.0-1

Hi,

I couldn't willingly reproduce it yet outside the setup where I ran
into that issue, so here's primarily a description of symptoms plus
some observations.

My current suspection is that it's permissions related:

abe@acromantula:/etc/apache2.abe$ ls -ld . .git
drwxr-xr-x 16 root root 4096 Jun 10  2011 .
drwxrwx---  9 root  112 4096 Jun  5 18:33 .git
abe@acromantula:/etc/apache2.abe$ id
uid=1000(abe) gid=1000(abe) groups=1000(abe)

But a relation to etckeeper and git submodules cannot be ruled out.
Will investigate further after having sent this report.

abe@acromantula:/etc/apache2.abe$ strace -f -e fork git status
Process 11354 attached
Process 11355 attached
Process 11358 attached
Process 11359 attached
Process 11362 attached
Process 11365 attached
Process 11366 attached
Process 11367 attached
Process 11370 attached
Process 11371 attached

In some other shell I ran the following command at that point:

10/0/0 root@acromantula:pts/4 18:53:47 [~] # ps auxwwwf | fgrep git
abe      11352 77.1  0.0   4552   596 pts/2    R+   18:53   0:10  |           | 
              \_ strace -f -e fork git status
abe      11353  6.3  0.1  24632  6848 pts/2    S+   18:53   0:00  |           | 
                  \_ git status
abe      11354  7.3  0.1  24632  6856 pts/2    S+   18:53   0:00  |           | 
                      \_ git status --porcelain
abe      11355  8.0  0.1  24632  6856 pts/2    S+   18:53   0:00  |           | 
                          \_ git status --porcelain
abe      11358  9.8  0.1  24632  6852 pts/2    S+   18:53   0:00  |           | 
                              \_ git status --porcelain
abe      11359 12.5  0.1  24632  6856 pts/2    S+   18:53   0:00  |           | 
                                  \_ git status --porcelain
abe      11362 17.6  0.1  24632  6856 pts/2    S+   18:53   0:00  |           | 
                                      \_ git status --porcelain
abe      11365 22.2  0.1  24632  6852 pts/2    S+   18:53   0:00  |           | 
                                          \_ git status --porcelain
abe      11366 44.5  0.1  24632  6856 pts/2    S+   18:53   0:00  |           | 
                                              \_ git status --porcelain
abe      11367  0.0  0.1  24632  6756 pts/2    t+   18:53   0:00  |           | 
                                                  \_ git status --porcelain
abe      11081  0.7  1.0 260160 38456 pts/3    S    18:47   0:02  |             
          \_ /usr/bin/python /usr/bin/reportbug git
abe      11139  0.0  0.0   4316   384 pts/3    S    18:49   0:00  |             
              \_ sh -c emacsclient -a emacs +6 
'/tmp/reportbug-git-20140605-11081-PM8nfv'
abe      11140  0.2  0.4 211336 16588 pts/3    S+   18:49   0:00  |             
                  \_ emacs +6 /tmp/reportbug-git-20140605-11081-PM8nfv
root     11369  0.0  0.0  10472   764 pts/4    S+   18:53   0:00          \_ 
fgrep git
11/0/0 root@acromantula:pts/4 18:53:52 [~] #

If I don't use strace, the forking happens much quicker and when I
initially noticed it I had hundereds (if not thousands or ten
thousands) of "git status --porcelain" running and close to all RAM
and swap was used up (together 10 GB).

So this issue has quite some potential to bring down a system within
minutes and trigger an OOM condition. I didn't file it as RC because I
couldn't reproduce it on some other system yet, i.e. I don't know yet
how common the conditions are under which it can happen. (Feel free to
raise it to RC anyways. :-)

I initially run into it on a system freshly dist-upgraded from Wheezy
to Jessie where I enabled hobbit-plugins' dirtvcs monitoring
plugin. (It wasn't enabled before, so I can't tell if it would have
happened on Wheezy, too.)

The issue is present with both, the version in Jessie (1:2.0.0~rc2-1)
and the version in Sid (1:2.0.0-1).

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (200, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages git depends on:
ii  git-man          1:2.0.0-1
ii  libc6            2.18-7
ii  libcurl3-gnutls  7.37.0-1
ii  liberror-perl    0.17-1.1
ii  libexpat1        2.1.0-5
ii  libpcre3         1:8.31-5
ii  perl-modules     5.18.2-4
ii  zlib1g           1:1.2.8.dfsg-1

Versions of packages git recommends:
ii  less                         458-2
ii  openssh-client [ssh-client]  1:6.6p1-5
ii  patch                        2.7.1-5
ii  rsync                        3.1.0-3

Versions of packages git suggests:
ii  gettext-base                          0.18.3.2-1
pn  git-arch                              <none>
ii  git-cvs                               1:2.0.0-1
pn  git-daemon-run | git-daemon-sysvinit  <none>
pn  git-doc                               <none>
pn  git-el                                <none>
pn  git-email                             <none>
ii  git-gui                               1:2.0.0-1
pn  git-mediawiki                         <none>
ii  git-svn                               1:2.0.0-1
ii  gitk                                  1:2.0.0-1
pn  gitweb                                <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to