From owner-freebsd-current Sat Jun 5 14:18:10 1999 Delivered-To: freebsd-current@freebsd.org Received: from devils.int.maquina.com (rcu127.rnl.ist.utl.pt [193.136.154.127]) by hub.freebsd.org (Postfix) with ESMTP id BE84114F37 for ; Sat, 5 Jun 1999 14:18:02 -0700 (PDT) (envelope-from gabriel@maquina.com) Received: from localhost (gabriel@localhost) by devils.int.maquina.com (8.9.3/8.9.3) with ESMTP id WAA12518 for ; Sat, 5 Jun 1999 22:18:00 +0100 (WEST) (envelope-from gabriel@maquina.com) X-Authentication-Warning: devils.int.maquina.com: gabriel owned process doing -bs Date: Sat, 5 Jun 1999 22:17:59 +0100 (WEST) From: Jose Gabriel Marcelino X-Sender: gabriel@devils.int.maquina.com To: freebsd-current@freebsd.org Subject: Gtk trouble.. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! Since upgrading to the gtk-1.2 ports I've been having some problems with programs compiled with it (like Gimp or e-conf) If I run them as a regular user I get the following errors during startup or during execution at random intervals (sometimes it takes longer than other times..) However if I run them as root everything works perfectly. ---- DUMP HERE devils% gimp Message: Passed serialization test IMLIB ERROR: SHM can't attach SHM Segment for Shared Pixmap mask Wrapper Falling back on Shared XImages Imlib ERROR: SHM can't attach SHM Segment for Shared XImage mask Falling back on XImages Gdk-ERROR **: BadAccess (attempt to access private resource denied) serial 2147 error_code 10 request_code 129 minor_code 1 aborting... gimp terminated: sigabrt caught Gdk-ERROR (recursed) **: BadShmSeg (invalid shared segment parameter) serial 2148 error_code 128 request_code 129 minor_code 5 aborting... gimp terminated: sigabrt caught ---- END DUMP I also noticed that the shared memory blocks are not released after this crash so they tend to use up resources. ---- BEGIN DUMP (gimp started without any previously assigned shm blocks) devils% ipcs Message Queues: T ID KEY MODE OWNER GROUP Shared Memory: T ID KEY MODE OWNER GROUP m 14090246 0 --rwarwarwa gabriel gabriel m 2424839 0 --rwarwarwa gabriel gabriel m 131080 0 --rwarwarwa gabriel gabriel Semaphores: T ID KEY MODE OWNER GROUP ---- END DUMP My 4.0-CURRENT (Jun 3) kernel conf has the following SYSV options options SYSVSHM options SYSVMSG options SYSVSEM options SHMMAX=(SHMMAXPGS*PAGE_SIZE+1) options SHMMAXPGS=4097 (The SHMMAX options were added when trying to fix the problem, but weren't useful) ktrace shows the problem starting: ---- BEGIN DUMP 12319 gimp CALL shmsys(0x3,0,0x40,0x3ff) 12319 gimp RET shmsys 2555913/0x270009 12319 gimp CALL shmsys(0,0x270009,0,0) 12319 gimp RET shmsys 805814272/0x3007c000 12319 gimp CALL shmsys(0x3,0,0x40,0x3ff) 12319 gimp RET shmsys 131083/0x2000b 12319 gimp CALL shmsys(0,0x2000b,0,0) 12319 gimp RET shmsys -1 errno 24 Too many open files <<< 12319 gimp CALL write(0x2,0xbfbfcc10,0x49) 12319 gimp GIO fd 2 wrote 73 bytes "IMLIB ERROR: SHM can't attach SHM Segment for Shared Pixmap mask Wrapp\ er " 12319 gimp RET write 73/0x49 12319 gimp CALL write(0x2,0xbfbfcc08,0x2c) 12319 gimp GIO fd 2 wrote 44 bytes " Falling back on Shared XImages " ---- END DUMP I tried playing around with the maxfiles in sysctl (kern.maxfiles and kern.maxfilesperproc) but to no effect :-\ I've sincerily run out of ideas :-( Can anyone help me fix this? Is this a limit problem?? How can I increase it? My full kernel conf file is at: http://www.maquina.com/pessoas/gabriel/DEVILS Thanks Jose Marcelino To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message