[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 'Cannot allocate memory' during autopkgtest



On Mon, 3 Dec 2018 at 11:57, Dylan Aïssi <daissi@debian.org> wrote:
> Le lun. 3 déc. 2018 à 10:41, Andreas Tille <andreas@an3as.eu> a écrit :
> > No objection against the patch but I wonder what else might be
> > broken if a
> >    popen '/usr/bin/which 'uname'
> > will cause a problem with memory allocation.
>
> It's the same for me, no problem with this patch.
> But, quite strange that sessionInfo() fails... it should not.

Seeing this problem also made me very uneasy, but I was able to
reproduce it locally in a 64-bit VM with only 2GB RAM, and increasing
the memory to 4GB or enabling swap made the problem go away.  So I
think it really is just a case of running out of memory.

Running sessionInfo() before creating the vignette is fine.  I did try
inserting a call to gc() before sessionInfo(), and fiddling with the
value of R_MAX_VSIZE, but neither helped.


Reply to: