From owner-freebsd-stable@FreeBSD.ORG Thu Dec 15 13:26:05 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E4DC16A452 for ; Thu, 15 Dec 2005 13:26:05 +0000 (GMT) (envelope-from morten@atreides.freenix.no) Received: from freenix.no (atreides.freenix.no [212.33.142.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E19643D53 for ; Thu, 15 Dec 2005 13:26:03 +0000 (GMT) (envelope-from morten@atreides.freenix.no) Received: from atreides.freenix.no (localhost [127.0.0.1]) by freenix.no (8.13.1/8.13.1) with ESMTP id jBFDQ1rb078240 for ; Thu, 15 Dec 2005 14:26:02 +0100 (CET) (envelope-from morten@atreides.freenix.no) Received: (from morten@localhost) by atreides.freenix.no (8.13.1/8.13.1/Submit) id jBFDPuO6078239 for freebsd-stable@freebsd.org; Thu, 15 Dec 2005 14:25:56 +0100 (CET) (envelope-from morten) Date: Thu, 15 Dec 2005 14:25:56 +0100 From: "Morten A. Middelthon" To: freebsd-stable@freebsd.org Message-ID: <20051215132556.GB74188@freenix.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eJnRUKwClWJh1Khz" Content-Disposition: inline X-PGP-Key: http://freenix.no/~morten/pgp.txt X-PGP-Key-FingerPrint: D48B 5C4E 1590 7DE6 08A0 6539 BECC F62E 829F DF6A X-Operating-System: FreeBSD 4.11-RELEASE-p2 X-Warning: So cunning you could brush your teeth with it. User-Agent: Mutt/1.5.11 Subject: shmget errors X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 13:26:05 -0000 --eJnRUKwClWJh1Khz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I've seen this problem discussed before on various mailinglists and forums, but never any real solutions.=20 It seems to happen right after a video player, such as totem or mplayer, has crashed. They might crash for different reasons, but the problem afterwards= is always the same.=20 Mplayer will f.ex give you the following error message: X11 error: BadAccess (attempt to access private resource denied) or if I try to start gvim: (gvim:86376): Gdk-WARNING **: shmget failed: error 12 (Cannot allocate memo= ry) or totem: The program 'totem' received an X Window System error. This probably reflects a bug in the program. The error was 'BadShmSeg (invalid shared segment parameter)'. (Details: serial 31 error_code 166 request_code 147 minor_code 2) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) The only common thing with all these applications is gtk, though different versions: ldd `which mplayer`|grep tk libgtk12.so.2 =3D> /usr/X11R6/lib/libgtk12.so.2 (0x289f2000) ldd `which gvim` | grep tk libgtk-x11-2.0.so.0 =3D> /usr/X11R6/lib/libgtk-x11-2.0.so.0 (0x2819= 7000) ldd `which totem` | grep tk libgtk-x11-2.0.so.0 =3D> /usr/X11R6/lib/libgtk-x11-2.0.so.0 (0x2848= 6000) Seems to me that after a program such mplayer or totem crashes something is left behind which blocks future programs from accessing certain resources. = I'm not a programmer, so that is my very limited analysis so far. OS: FreeBSD 5.4-STABLE (built Nov 16 2005) Running XFree86 4.5.0 with Gnome 2.12.1 and nvidia-driver-1.0.7676_1 All gnome/gtk/glib-libs are up-to-date. --=20 Morten A. Middelthon "I have been Foolish and Deluded, and I am a Bear of No Brain at All."=20 -- Pooh --eJnRUKwClWJh1Khz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDoW7jvsz2LoKf32oRAmYnAJ0eaSUuTut7rjbpJg66N5EHzCny/QCfYGbz dQkVgq4Q4u1Rd0lwcr4s2d0= =duu4 -----END PGP SIGNATURE----- --eJnRUKwClWJh1Khz--