Re: publicfile on OpenBSD

David Benfell <[email protected]> Mon, 22 Apr 2002 23:12:52 -0700
Newsgroups gmane.comp.djb.publicfile
Message-ID <[email protected]>
On Mon, 22 Apr 2002 22:34:03 -0700, David Benfell wrote:
> On Mon, 22 Apr 2002 16:00:27 -0400, Paul Jarc wrote:
> > David Benfell <[email protected]> wrote:
> > > I have installed publicfile (unpatched) on an OpenBSD 3.0 system.  I
> > > tried starting it, but all I get are "/usr/libexec/ld.so: tcpserver:
> > > libc.so.28.0: Cannot allocate memory" errors, repeated every second.
> > >
> > > Looking on the web, I saw a bug report filed with OpenBSD on this
> > > issue, to which they responded by saying to raise the softlimit.
> > 
> > You could remove the -d option completely.  Then if you still get this
> > error, it means either you really don't have enough memory, or there
> > is a limit being set earlier.  If it works without -d, you could try
> > to find a value that works, or you could do without it.  The risk with
> > that is that *if* there is an exploit of some kind in publicfile, then
> > an attacker might be able to use all your memory.
> > 
> That worked.  Thanks!
> 
> Is there any shortcut to finding out how much memory it actually
> needs?
> 
Someone suggested to me, off list, to try -d350000.  This worked,
though I have to wonder why this value needs to be so much higher
on OpenBSD than on Linux.  Thanks!

-- 
David Benfell, LCP
[email protected]
---
Resume available at http://www.parts-unknown.org/resume.html
signature.asc (application/pgp-signature, 524 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iQEXAwUBPMT7ZHw5zqzgtjVOFAM3TAQAqODnKcYalAu5jjmLyY5zj2p+pLnHRpXV
QV/hz8nEIt2NAmJLyaGZy82Y4aAdbvhsytdULu20f+78EpFmU7C2txEKyuStjsvQ
SoVyr6vp00ukuGflY2x74Ol5WcIJTgDLLj0ovBLznXUlyqGldJaJarIP6fpCPUwV
JVUyxoTQkPMD/RjHd7NYArPfNttIpkc+BfYZTG/7RcpWoS3j5NP2K+n3HBNhFtIb
THu8gy6BjhLSSbf/9820VIufiy6KkyKZPMwRxMq/LPZZQN90FRnB8jYPZVSzyEQi
Yq/q0+IIRNL39eb2nnlS+w/MIERwqDGd3DRV1JwtJu3RaYc435GBAFkj
=kUNL
-----END PGP SIGNATURE-----