Your message dated Mon, 26 Sep 2016 12:16:37 +0300
with message-id <20160926091637.c7fg2xrvcurd4...@bunk.spdns.de>
and subject line Closing - fixed in jessie and later
has caused the Debian Bug report #801046,
regarding fatal: Out of memory, malloc failed (tried to allocate 524288000 
bytes)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
801046: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801046
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: git
Version: 1:1.7.10.4-1+wheezy1
Severity: grave
Tags: patch

Current version of git for wheeze and squeeze are unusable, does not
work as normal user
for make it work user must know the root password and swicht, sudo
does not work!

some related 
https://bitbucket.org/site/master/issues/4174/clone-pull-on-shared-hosting-with-limited

some sites offers some solutions:
http://stackoverflow.com/questions/8855317/git-push-out-of-memory-malloc-failed
but its on the server remote side, users does not manage servers will clone!

a example of problem behavior (and then a proposed solution and some
notes, see below):

intranet@sysmail00:~/Devel$ git clone
https://gitlab.com/mckaygerhard/simplecontrolasistencia.git
Cloning into 'simplecontrolasistencia'...
Username for 'https://gitlab.com': mckaygerhard
Password for 'https://mckaygerh...@gitlab.com':
fatal: Out of memory, malloc failed (tried to allocate 524288000 bytes)
fatal: Not a git repository: '/home/intranet/Devel/simplecontrolasistencia/.git'

But some sites said around a solutions, mention that change system values:
https://github.com/gitlabhq/gitlabhq/issues/3882#issuecomment-40053598
the following two comments seems solves the problem, but a consecuence
may happened
as :http://www.ericlin.me/git-broken-pipe-out-of-memory-error mentin
that if the buffer
does not return to normal value other problems may happened

So as the current git packages in squeeze and wheeze (including
backports) can be patched
to defaults to that values, the secnd proble are a consecuence around
up the value of buffer
lest see how now works for the configured values:

intranet@sysmail00:~/devel$ fatal: Not a git repository:
'/home/intranet/devel/simplecontrolasistencia/.git'
git clone https://gitlab.comgit config --global pack.threads 1
intranet@sysmail00:~/devel$ git config --global
core.packedGitWindowSize 157286400
intranet@sysmail00:~/devel$ git config --global core.packedGitLimit 157286400
intranet@sysmail00:~/devel$ git config --global core.windowMemory 157286400
intranet@sysmail00:~/devel$ git config --global pack.packSizeLimit 157286400
intranet@sysmail00:~/devel$ git config --global pack.deltaCacheSize 157286400
intranet@sysmail00:~/devel$ git config --global pack.windowMemory 157286400
intranet@sysmail00:~/devel$ git config --global http.postBuffer 157286400
intranet@sysmail00:~/devel$ git clone
https://gitlab.com/mckaygerhard/simplecontrolasistencia.git
Cloning into 'simplecontrolasistencia'...
Username for 'https://gitlab.com': mckaygerhard
Password for 'https://mckaygerh...@gitlab.com':
remote: Counting objects: 957, done.
remote: Compressing objects: 100% (606/606), done.
remote: Total 957 (delta 341), reused 907 (delta 321)
Receiving objects: 100% (957/957), 6.14 MiB | 37.00 KiB/s, done.
Resolving deltas: 100% (341/341), done.
Checking connectivity... done.
intranet@sysmail00:~/devel$


IF THE VALUES ARE NOT REESTABLISHED THIS HAPPENED:

git-remote-https(52011,0x7fff7011acc0) malloc: ***
mmap(size=18446744071938875392) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
git-remote-https(52011,0x7fff7011acc0) malloc: ***
mmap(size=18446744071938875392) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
fatal: Out of memory, malloc failed (tried to allocate
18446744071938872320 bytes)

NOTE THAT IF YOU MADE THIS AS ROOT THE CLONE WILL WORK! WITH ANY VALUES!

intranet@sysmail00:~/Devel$ su
ContraseƱa:
root@sysmail00:~/devel$ git config --global http.postBuffer 5242880
root@sysmail00:/home/intranet/devel# git clone
https://gitlab.com/mckaygerhard/simplecontrolasistencia.git
Cloning into 'simplecontrolasistencia'...
Username for 'https://gitlab.com': mckaygerhard
Password for 'https://mckaygerh...@gitlab.com':
remote: Counting objects: 957, done.
remote: Compressing objects: 100% (606/606), done.

In this case the total amount of retrieve data are not calculated
(6,14 Mb), but as normal user yes!.

-- System Information:
Debian Release: 7.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
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:1.7.10.4-1+wheezy1
ii  libc6            2.13-38+deb7u6
ii  libcurl3-gnutls  7.26.0-1+wheezy10
ii  liberror-perl    0.17-1
ii  libexpat1        2.1.0-1+deb7u1
ii  perl-modules     5.14.2-21+deb7u2
ii  zlib1g           1:1.2.7.dfsg-13

Versions of packages git recommends:
ii  less                         444-4
ii  openssh-client [ssh-client]  1:6.0p1-4+deb7u2
ii  patch                        2.6.1-3
ii  rsync                        3.0.9-4

Versions of packages git suggests:
ii  gettext-base                          0.18.1.1-9
pn  git-arch                              <none>
pn  git-cvs                               <none>
pn  git-daemon-run | git-daemon-sysvinit  <none>
pn  git-doc                               <none>
pn  git-el                                <none>
II  git-email                             1:1.7.10.4-1+wheezy1
pn  git-gui                               <none>
II  git-svn                               1:1.7.10.4-1+wheezy1
pn  gitk                                  <none>
pn  gitweb                                <none>

-- no debconf information



Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

--- End Message ---
--- Begin Message ---
This bug is fixed in jessie and later.

Wheezy is no longer supported by Debian (only LTS), so there is no point 
in keeping this bug open.

For users who really need git with this bug fixed in wheezy, there is a 
recent enough git package (without security support) in wheezy-backports.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--- End Message ---

Reply via email to