Date: Thu, 15 Dec 2005 14:25:56 +0100 From: "Morten A. Middelthon" <morten@freenix.no> To: freebsd-stable@freebsd.org Subject: shmget errors Message-ID: <20051215132556.GB74188@freenix.no>
next in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051215132556.GB74188>