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

Bug#234452: marked as done ([libx11-6]: libX11.so.6: failed to map segment from shared object: Cannot allocate memory)



Your message dated Mon, 22 Mar 2004 15:33:23 -0500
with message-id <20040322203323.GD10952@deadbeast.net>
and subject line Bug#234452: Acknowledgement ([libx11-6]: libX11.so.6: failed to map segment from shared object: Cannot allocate memory)
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 23 Feb 2004 22:58:32 +0000
>From sender@24x7linux.com Mon Feb 23 14:58:32 2004
Return-path: <sender@24x7linux.com>
Received: from 217-124-46-135.dialup.nuria.telefonica-data.net (dardhal.mired.net) [217.124.46.135] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AvP1s-0001qe-00; Mon, 23 Feb 2004 14:58:26 -0800
Received: by dardhal.mired.net (Postfix, from userid 1000)
	id D973DC482; Mon, 23 Feb 2004 23:57:31 +0100 (CET)
Date: Mon, 23 Feb 2004 23:57:31 +0100
From: Jose Luis Domingo Lopez <debian@24x7linux.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: [libx11-6]: libX11.so.6: failed to map segment from shared object: Cannot allocate memory
Message-ID: <20040223225731.GA2829@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.5.5.1+cvs20040105i
Content-Transfer-Encoding: quoted-printable
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_02_22 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 
	version=2.60-bugs.debian.org_2004_02_22
X-Spam-Level: 

Package: libx11-6
Version: 4.3.0-2
Severity: normal

Hello:

I have updated libx11-6 to version 4.3.0-2 a couple of days ago, and I
have just realized that some programs have stopped working. For example,
JRE 1.4.2 doesn't work anymore, if fails both launching standalone
programs as well as running Java applets from a web browser (tried
Mozilla Firefox 0.8).

I also updated several other packages at the same time , so maybe the
problem lies elsewhere, but things like VMware have also started giving
similar problems about "shared" memory. I have tried those programs with
known-to-work kernel versions and the problem still remains.

I get the following error trying to start a Java graphical application
(http://a104.g.akamai.net/f/104/3242/15m/www.aeat.es/padres/ret/2004/desc=
arga/ret4100.bin)
java.lang.UnsatisfiedLinkError: /opt/j2re1.4.2/lib/i386/libawt.so: libX11=
.so.6: failed to map segment from shared object: Cannot allocate memory

Another Java application that is giving problems and worked before the
upgrade is the following:
http://a104.g.akamai.net/7/104/3242/v004/www.aeat.es/padres/jret/2003/Ret=
enciones2003.jar

This time the error I get is the following:
Error occurred during initialization of VM
Could not reserve enough space for object heap

Doing a "strace" of the above command (strace /opt/j2re1.4.2/bin/java
-jar Retenciones2003.jar) I see the place where it fails:
[...]
mmap2(NULL, 33554432, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANO=
NYMOUS|MAP_NORESERVE, -1, 0) =3D 0x423b9000
mmap2(0x423b9000, 163840, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP=
_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0x423b9000
mmap2(NULL, 524288, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONY=
MOUS|MAP_NORESERVE, -1, 0) =3D 0x443b9000
mmap2(0x443b9000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_F=
IXED|MAP_ANONYMOUS, -1, 0) =3D 0x443b9000
mmap2(NULL, 163840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, =
0) =3D 0x44439000
gettimeofday({1077575870, 814655}, NULL) =3D 0
gettimeofday({1077575870, 814787}, NULL) =3D 0
gettimeofday({1077575870, 816787}, NULL) =3D 0
gettimeofday({1077575870, 816896}, NULL) =3D 0
gettimeofday({1077575870, 816989}, NULL) =3D 0
mmap2(NULL, 134217728, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_AN=
ONYMOUS|MAP_NORESERVE, -1, 0) =3D -1 ENOMEM (Cannot allocate memory)
write(1, "Error occurred during initializa"..., 43Error occurred during i=
nitialization of VM
) =3D 43


It seems that the process is trying to map a 128 MiB segment of memory,
but it fails. Values for /proc/sys/kernel/shm* have been always the
same, no changes here since the time applications worked.

If I try to start a VM from VMware I get this other error:
Cannot attach shared memory segment: Cannot allocate memory.
Failed to initialize SVGA device.

(I know VMware is not free software, there is no source code available
 and as a kernel module, you cannot trust what goes on behind the scenes
 when these modules are loaded, but I present this data here in the hope
 it does help identify the problem. Please take into account that the
 described problem with Java applications happen even with no VMware
 modules loaded, so VMware seems innocent this time :-)


This is when I assign 172 MiB of the host OS RAM to the virtual machine,
if I assing just 128 MiB the VM boots and runs OK.

Debian Sid installed, but not all packages updated to last versions
Linux kernel 2.6.3 compiled with Debian gcc 3.2.3 20030415
libc6 2.3.2.ds1-11, JRE 1.4.2 from SUN

Please disregard this bug report if I am completely misguided about this=20
problem, and sorry for the inconvenience if that is the case.

Keep up the good work !

--
Jos=E9 Luis Domingo L=F3pez
Linux Registered User #189436     Debian Linux Sid (Linux 2.6.2-bk3)

---------------------------------------
Received: (at 234452-done) by bugs.debian.org; 22 Mar 2004 20:33:26 +0000
>From branden@deadbeast.net Mon Mar 22 12:33:26 2004
Return-path: <branden@deadbeast.net>
Received: from dhcp065-026-182-085.indy.rr.com (redwald.deadbeast.net) [65.26.182.85] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1B5W6w-0002z8-00; Mon, 22 Mar 2004 12:33:26 -0800
Received: by redwald.deadbeast.net (Postfix, from userid 1000)
	id 2E3AD64140; Mon, 22 Mar 2004 15:33:23 -0500 (EST)
Date: Mon, 22 Mar 2004 15:33:23 -0500
From: Branden Robinson <branden@debian.org>
To: 234452-done@bugs.debian.org
Subject: Re: Bug#234452: Acknowledgement ([libx11-6]: libX11.so.6: failed to map segment from shared object: Cannot allocate memory)
Message-ID: <20040322203323.GD10952@deadbeast.net>
References: <20040223225731.GA2829@localhost> <handler.234452.B.10775771127233.ack@bugs.debian.org> <[🔎] 20040321205507.GA1926@localhost>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="48TaNjbzBVislYPb"
Content-Disposition: inline
In-Reply-To: <[🔎] 20040321205507.GA1926@localhost>
Mail-Copies-To: nobody
X-No-CC: I subscribe to this list; do not CC me on replies.
User-Agent: Mutt/1.5.5.1+cvs20040105i
Delivered-To: 234452-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_12 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_12
X-Spam-Level: 


--48TaNjbzBVislYPb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 21, 2004 at 09:55:07PM +0100, Jose Luis Domingo Lopez wrote:
> It seems the problem was elsewhere, because I have not upgraded the
> package libx11-6 from version 4.3.0-2 to anything higher, and now Java
> applications work without problem. The JRE 1.4.2 is exactly the same as
> before, it wasn't even reinstalled.
>=20
> Installed libc6 is still at version 2.3.2.ds1-11 (the same used before),
> _but_ the linux kernel was recompiled and now is version 2.6.4 (compiled
> using the same gcc version 3.2.3-0).
>=20
> I have re-tested the problem with the previous kernel versions
> (2.6.2-bk3  and 2.6.3) and it works, where previously it failed. I can't
> think of a good reason for this, but since I initially reported the
> problem I have updated some packages, but since I don't know the exact
> day where the reported problem disappeared I can't suggest a specific
> package responsible for the fix.
>=20
> So the bug doesn't happen for me anymore, and maybe the bug is gone.
>=20
> Hope it helps, and sorry for the inconvenience.

Closing as unreproducible per submitter.

Thanks for following up!

--=20
G. Branden Robinson                |     No math genius, eh?  Then perhaps
Debian GNU/Linux                   |     you could explain to me where you
branden@debian.org                 |     got these...       PENROSE TILES!
http://people.debian.org/~branden/ |     -- Stephen R. Notley

--48TaNjbzBVislYPb
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iEYEARECAAYFAkBfTZIACgkQ6kxmHytGonxmigCgjF/gvIGfo5R7DpBb851aElrs
V6EAnivV82gINKhD9/uIaD9epiJXp9PS
=qjGx
-----END PGP SIGNATURE-----

--48TaNjbzBVislYPb--



Reply to: