From owner-freebsd-perl@FreeBSD.ORG Tue Nov 15 10:15:37 2005 Return-Path: X-Original-To: freebsd-perl@freebsd.org Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1ED8916A41F for ; Tue, 15 Nov 2005 10:15:37 +0000 (GMT) (envelope-from heiko@wecos.de) Received: from mail.terminmarktwelt.de (mail.terminmarktwelt.de [217.6.66.203]) by mx1.FreeBSD.org (Postfix) with SMTP id 0E2E343D46 for ; Tue, 15 Nov 2005 10:15:35 +0000 (GMT) (envelope-from heiko@wecos.de) Received: (qmail 14193 invoked by uid 98); 14 Nov 2005 13:28:54 +0100 Received: from 192.168.168.242 by mail.terminmarktwelt.de (envelope-from , uid 82) with qmail-scanner-1.25 ( Clear:RC:1(192.168.168.242):. Processed in 0.05767 secs); 14 Nov 2005 12:28:54 -0000 X-Qmail-Scanner-Mail-From: heiko@wecos.de via mail.terminmarktwelt.de X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.168.242):. Processed in 0.05767 secs) Received: from unknown (HELO ?192.168.168.242?) (192.168.168.242) by 192.168.168.203 with SMTP; 14 Nov 2005 13:28:54 +0100 From: Heiko Weber Organization: Wecos To: Anton Berezin Date: Mon, 14 Nov 2005 13:29:13 +0100 User-Agent: KMail/1.8.2 References: <200511130055.20371.heiko@wecos.de> <20051114085811.GB68946@heechee.tobez.org> In-Reply-To: <20051114085811.GB68946@heechee.tobez.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511141329.13933.heiko@wecos.de> Cc: freebsd-perl@freebsd.org Subject: Re: shared memory, perl, FreebSD 6 X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2005 10:15:37 -0000 Am Montag, 14. November 2005 09:58 schrieb Anton Berezin: > On Sun, Nov 13, 2005 at 12:55:20AM +0100, Heiko Weber wrote: > > I have problem using shared memory with perl. I tried p5-IPC-ShareLite: > > > > Segmentation fault (core dumped) > > *** Error code 139 > > > > then I tried p5-IPC-Cache: > > > > Segmentation fault (core dumped) > > *** Error code 139 > > A gdb trace (gdb /usr/local/bin/perl perl.core ; bt) would be useful. > Hi Anton, here it is (of p5-IPC-ShareLite): www# gdb /usr/local/bin/perl perl5.8.7.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)... warning: core file may not match specified executable file. Core was generated by `perl5.8.7'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done. Loaded symbols for /lib/libm.so.4 Reading symbols from /lib/libcrypt.so.3...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypt.so.3 Reading symbols from /lib/libutil.so.5...(no debugging symbols found)...done. Loaded symbols for /lib/libutil.so.5 Reading symbols from /usr/lib/libpthread.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libpthread.so.2 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from blib/arch/auto/IPC/ShareLite/ShareLite.so...(no debugging symbols found)...done. Loaded symbols for blib/arch/auto/IPC/ShareLite/ShareLite.so Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x280f5961 in Perl_sv_usepvn () from /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so [New LWP 100148] (gdb) where #0 0x280f5961 in Perl_sv_usepvn () from /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so #1 0x282b070b in XS_IPC__ShareLite_read_share () from blib/arch/auto/IPC/ShareLite/ShareLite.so #2 0x280f1360 in Perl_pp_entersub () from /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so #3 0x280e9ef5 in Perl_runops_standard () from /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so #4 0x28096f3e in perl_run () from /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so #5 0x0804902e in main () > Also, are you sure that you have SYSVSHM compiled into your kernel? > www# sysctl -a | grep shm kern.ipc.shmmax: 33554432 kern.ipc.shmmin: 1 kern.ipc.shmmni: 192 kern.ipc.shmseg: 128 kern.ipc.shmall: 8192 kern.ipc.shm_use_phys: 0 kern.ipc.shm_allow_removed: 0 I was able to create semaphore and shared memory segments with a small C-Programm, and then I used ipcs/ipcrm to view/remove them. Heiko -- Heiko Weber : heiko@wecos.de Tel. +49 (4169) 91000 : Fax +49 (4169) 919033 webmaster@terminmarktwelt.de