elinks mmap/munmap loop
Ismael Bouya <[email protected]> Mon, 4 Nov 2013 20:53:33 +0100
| Newsgroups | gmane.comp.web.elinks.user |
|---|---|
| Message-ID | <[email protected]> |
--===============0970874018==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62"
Content-Disposition: inline
--+QahgC5+KEYLbs62
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
I'm writing to report a bug that I found in elinks on one of my machine
(I cannot reproduce it on all computers)
I compiled the "master" commit of elinks
(a3751107033599b835eaafa61177c8d4dda4b7ef) with
=2E/configure --prefix=3D/usr --mandir=3D/usr/share/man \
--sysconfdir=3D/etc \
--disable-smb --without-x --enable-cgi \
--enable-leds --enable-256-colors --enable-html-highlight \
--with-zlib
make
and it ends up in a program that doesn't run:
As soon as I start elinks, an strace of the program shows an infinite
loop of mmap/munmap:
----------
mmap(NULL, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)=
=3D 0x304823a4000
munmap(0x304823a4000, 2097152) =3D 0
mmap(0x30482400000, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOU=
S, -1, 0) =3D 0x304824a4000
munmap(0x304824a4000, 1048576) =3D 0
mmap(NULL, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)=
=3D 0x304823a4000
munmap(0x304823a4000, 2097152) =3D 0
----------
Any idea where it comes from?
I don't know where to look for the error, since I have two computers with
similar configuration (both run archlinux) and one of them works without
problem while the other fails.
NB: it looks like lua_strlen has been depreciated for lua_rawlen so I
also had to change it in scripting/lua/hooks.c
Thanks!
--=20
Ismael
--+QahgC5+KEYLbs62
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlJ3+z0ACgkQbQyv/dsc/pAeygCfZWNBKFY5akbKdZ+dTFFg+fij
vOIAn3p1UBmAuldHtFc1LBprZu/OpecH
=//UW
-----END PGP SIGNATURE-----
--+QahgC5+KEYLbs62--
--===============0970874018==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
elinks-users mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-users
--===============0970874018==--