Date: Mon, 14 Nov 2005 13:29:13 +0100 From: Heiko Weber <heiko@wecos.de> To: Anton Berezin <tobez@tobez.org> Cc: freebsd-perl@freebsd.org Subject: Re: shared memory, perl, FreebSD 6 Message-ID: <200511141329.13933.heiko@wecos.de> In-Reply-To: <20051114085811.GB68946@heechee.tobez.org> References: <200511130055.20371.heiko@wecos.de> <20051114085811.GB68946@heechee.tobez.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511141329.13933.heiko>