From owner-freebsd-perl@FreeBSD.ORG Mon Nov 14 08:58:13 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 7995416A41F for ; Mon, 14 Nov 2005 08:58:13 +0000 (GMT) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [217.157.39.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CA9F43D73 for ; Mon, 14 Nov 2005 08:58:12 +0000 (GMT) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id 26E7A125420; Mon, 14 Nov 2005 09:58:11 +0100 (CET) Date: Mon, 14 Nov 2005 09:58:11 +0100 From: Anton Berezin To: Heiko Weber Message-ID: <20051114085811.GB68946@heechee.tobez.org> References: <200511130055.20371.heiko@wecos.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200511130055.20371.heiko@wecos.de> User-Agent: Mutt/1.4.2.1i X-Powered-By: FreeBSD http://www.freebsd.org/ 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: Mon, 14 Nov 2005 08:58:13 -0000 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. Also, are you sure that you have SYSVSHM compiled into your kernel? \Anton. -- An undefined problem has an infinite number of solutions. -- Robert A. Humphrey From owner-freebsd-perl@FreeBSD.ORG Mon Nov 14 09:00:45 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 2113B16A41F for ; Mon, 14 Nov 2005 09:00:45 +0000 (GMT) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [217.157.39.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id B476143D46 for ; Mon, 14 Nov 2005 09:00:44 +0000 (GMT) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id E70C6125421; Mon, 14 Nov 2005 10:00:43 +0100 (CET) Date: Mon, 14 Nov 2005 10:00:43 +0100 From: Anton Berezin To: Heiko Weber Message-ID: <20051114090043.GC68946@heechee.tobez.org> References: <200511130055.20371.heiko@wecos.de> <20051114085811.GB68946@heechee.tobez.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051114085811.GB68946@heechee.tobez.org> User-Agent: Mutt/1.4.2.1i X-Powered-By: FreeBSD http://www.freebsd.org/ 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: Mon, 14 Nov 2005 09:00:45 -0000 >> > 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. >> Also, are you sure that you have SYSVSHM compiled into your kernel? >Hello, this is the qconfirm mail-handling program. One or more messages >from you are being held because your address was not recognized. > >To release your pending message(s) for delivery, please reply to this >request. Your reply will not be read, so an empty message is fine. Okay, tough luck to you then. \Anton. -- An undefined problem has an infinite number of solutions. -- Robert A. Humphrey From owner-freebsd-perl@FreeBSD.ORG Mon Nov 14 11:04:18 2005 Return-Path: X-Original-To: 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 4537916A41F for ; Mon, 14 Nov 2005 11:04:18 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2CFC43D58 for ; Mon, 14 Nov 2005 11:04:17 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAEB4GDc075357 for ; Mon, 14 Nov 2005 11:04:16 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAEB4GZS075351 for perl@freebsd.org; Mon, 14 Nov 2005 11:04:16 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 14 Nov 2005 11:04:16 GMT Message-Id: <200511141104.jAEB4GZS075351@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: perl@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 14 Nov 2005 11:04:18 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/03/03] ports/63670 perl lang/perl5.8: 'Unable to read from thread o [2005/10/24] ports/87933 perl p5-Mail-SpamAssassin-3.1.0_3 missing depe 2 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/06/11] ports/82151 perl [PATCH] mail/p5-Mail-SpamAssassin: instal o [2005/10/20] ports/87716 perl update net/p5-Net-SSH-Perl o [2005/11/12] ports/88901 perl mail/p5-Mail-SpamAssassin: allow spampd t 3 problems total. From owner-freebsd-perl@FreeBSD.ORG Mon Nov 14 14:45:58 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 6062E16A41F; Mon, 14 Nov 2005 14:45:58 +0000 (GMT) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [217.157.39.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0EFE43D46; Mon, 14 Nov 2005 14:45:57 +0000 (GMT) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id 8970F125421; Mon, 14 Nov 2005 15:45:55 +0100 (CET) Date: Mon, 14 Nov 2005 15:45:55 +0100 From: Anton Berezin To: Heiko Weber Message-ID: <20051114144555.GG68946@heechee.tobez.org> References: <200511130055.20371.heiko@wecos.de> <20051114085811.GB68946@heechee.tobez.org> <200511141329.13933.heiko@wecos.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200511141329.13933.heiko@wecos.de> User-Agent: Mutt/1.4.2.1i X-Powered-By: FreeBSD http://www.freebsd.org/ Cc: mat@freebsd.org, 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: Mon, 14 Nov 2005 14:45:58 -0000 On Mon, Nov 14, 2005 at 01:29:13PM +0100, Heiko Weber wrote: > 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 [Mathieu, are you paying attention? :-) ] Ok. The following patch should fix the problem with p5-IPC-ShareLite. You should cd /usr/ports/devel/p5-IPC-ShareLite ; make clean. Then copy the patch to files/patch-sharelite.c. Then rebuild. --- sharelite.c.orig Mon Nov 14 15:37:08 2005 +++ sharelite.c Mon Nov 14 15:37:41 2005 @@ -1,3 +1,7 @@ +#include "EXTERN.h" +#include "perl.h" +#include "XSUB.h" + #include #include #include @@ -151,7 +155,7 @@ Node *_add_segment(Share *share) { Node *node; int flags; - if ((node = (Node *) malloc(sizeof(Node))) == NULL) + if ((node = (Node *) safemalloc(sizeof(Node))) == NULL) return NULL; node->next = NULL; @@ -196,7 +200,7 @@ int _detach_segments(Node *node) { while(node != NULL) { next_node = node->next; if (shmdt((char *) node->shmaddr) < 0) return -1; - free(node); + safefree(node); node = next_node; } return 0; @@ -329,7 +333,7 @@ int read_share(Share *share, char **data node = share->head; left = length = node->shmaddr->length; - if ((pos = *data = (char *) malloc( length )) == NULL) + if ((pos = *data = (char *) safemalloc( length )) == NULL) return -1; while(left) { @@ -379,7 +383,7 @@ again: segment_size = SHM_SEGMENT_SIZE; } - if ((node = (Node *) malloc(sizeof(Node))) == NULL) + if ((node = (Node *) safemalloc(sizeof(Node))) == NULL) return NULL; if ((node->shmid = shmget(key, segment_size, flags)) < 0) return NULL; @@ -387,7 +391,7 @@ again: return NULL; node->next = NULL; - if ((share = (Share *) malloc(sizeof(Share))) == NULL) + if ((share = (Share *) safemalloc(sizeof(Share))) == NULL) return NULL; share->key = key; share->next_key = key + 1; @@ -460,7 +464,7 @@ int destroy_share (Share *share, int rmi return -1; } - free(share); + safefree(share); return 0; } The problem is that by default perl is built with its own version of malloc. (The other solution would be to rebuild your perl with -DWITHOUT_PERL_MALLOC, but that is not a particularly good solution in general, since Perl malloc is heavily optimized to multiple reallocations, while FreeBSD system malloc is not). Normally, this is not a problem for Perl XS modules. Normally, it is not even a problem for Perl XS modules that are using 3rd-party C or C++ libraries. It is only a problem when the XS part (or one of the libraries/objects it is using) uses system malloc and then passes those pointers back to perl. The whole thing becomes acutely unhappy when it tries to free() stuff which was allocated using a different malloc library. Hence the coredump. I have not looked at the other module you had a problem with, but I won't be surprized to find a similar bug. Hope this helps, Cheers, \Anton. -- An undefined problem has an infinite number of solutions. -- Robert A. Humphrey From owner-freebsd-perl@FreeBSD.ORG Mon Nov 14 14:50:02 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 29E1516A41F for ; Mon, 14 Nov 2005 14:50:02 +0000 (GMT) (envelope-from mat@FreeBSD.org) Received: from plouf.absolight.net (plouf.absolight.net [193.30.224.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE33343D46 for ; Mon, 14 Nov 2005 14:50:01 +0000 (GMT) (envelope-from mat@FreeBSD.org) Received: from andromede.in.absolight.net (andromede.in.absolight.net [193.30.224.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by plouf.absolight.net (Postfix) with ESMTP id 6FA504A9C2B; Mon, 14 Nov 2005 15:50:00 +0100 (CET) Date: Mon, 14 Nov 2005 15:49:56 +0100 From: Mathieu Arnold To: Anton Berezin , Heiko Weber Message-ID: <81682D8A04B4697115D22E17@[192.168.9.2]> In-Reply-To: <20051114144555.GG68946@heechee.tobez.org> References: <200511130055.20371.heiko@wecos.de> <20051114085811.GB68946@heechee.tobez.org> <200511141329.13933.heiko@wecos.de> <20051114144555.GG68946@heechee.tobez.org> X-Mailer: Mulberry/4.0.4 (Win32) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="==========A30DC7C4344E6CFCBD94==========" 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: Mon, 14 Nov 2005 14:50:02 -0000 --==========A30DC7C4344E6CFCBD94========== Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline +-le 14/11/2005 15:45 +0100, Anton Berezin a dit : | On Mon, Nov 14, 2005 at 01:29:13PM +0100, Heiko Weber wrote: |> 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 | | [Mathieu, are you paying attention? :-) ] Yes, I am, see, I just made a commit today, after a few months of silence :-) | I have not looked at the other module you had a problem with, but I | won't be surprized to find a similar bug. I'll wait to see if it fixes the problem for both of you, and I'll commit the patch :-) -- Mathieu Arnold --==========A30DC7C4344E6CFCBD94========== Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) iD8DBQFDeKQWJqR8av5thQ8RAlWBAKCjjKpWKLllVEGSuvrHyaetTUdYxwCdGUTV JBtWIpDs0cf/EtAoNSrySaA= =/F1t -----END PGP SIGNATURE----- --==========A30DC7C4344E6CFCBD94==========-- From owner-freebsd-perl@FreeBSD.ORG Mon Nov 14 23:31:36 2005 Return-Path: X-Original-To: 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 94B3F16A420; Mon, 14 Nov 2005 23:31:36 +0000 (GMT) (envelope-from irvineez@myquickmail.com) Received: from e176131019.adsl.alicedsl.de (e176131019.adsl.alicedsl.de [85.176.131.19]) by mx1.FreeBSD.org (Postfix) with SMTP id 84D9243D66; Mon, 14 Nov 2005 23:31:33 +0000 (GMT) (envelope-from irvineez@myquickmail.com) Received: from 216.143.228.2 by STCTW0002.nexstar.com with SMTP (SMTP Relay); Tue, 15 Nov 2005 04:29:31 +0500 X-Server-Uuid: 0M740IEZ-GQ24-159T-NP3B-3OW400A82969 Received: from stcmail002.nexstarfinancial.com ([172.16.1.7]) by stcmbrg002.nexstarfinancial.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 15 Nov 2005 00:23:31 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Mon, 14 Nov 2005 15:31:31 -0800 Message-ID: <82797B31114CB84F2301CA4BFC76EC4308E4F555irvineez@myquickmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Whats up , This website just got me laid,,, manatee Thread-Index: MmKd2eXoqOsTog/2SnSYdSUj10KKPFURZMNL From: "Jeff Winkler" To: ons@freebsd.org, cvs-ports@freebsd.org, sd-newbies@freebsd.org, perl@freebsd.org, cvs-committers@freebsd.org X-OriginalArrivalTime: Mon, 14 Nov 2005 15:31:31 -0800 (UTC) FILETIME=[C1HM2534:51C6E5BZ] X-WSS-ID: 3F8899CA9ZS8826551-01-09 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Cc: Subject: Whats up , This website just got me laid,,, manatee 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: Mon, 14 Nov 2005 23:31:36 -0000 Dude you wont believe it but, I got laid from a chick I found on this website. I didnt believe it myself at first. But then since it cost almost nothing I tried it. A few chats, a couple emails, and one phone conversation later, there I was nailing Amber in a hotel. It was that easy, and no strings attached, I made sure she wanted the same thing as I did first. I wouldnt waste time, there are people looking for action all over the place now. http://mtvnsh.connectwithfuntime.com/gaac/ QSTwxALFGRU9GNuWJSwvnR-getnitonnow.com/getofflist/ From owner-freebsd-perl@FreeBSD.ORG Tue Nov 15 10:12:24 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 3EFB216A420 for ; Tue, 15 Nov 2005 10:12:24 +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 D8D8143D5A for ; Tue, 15 Nov 2005 10:12:18 +0000 (GMT) (envelope-from heiko@wecos.de) Received: (qmail 20262 invoked by uid 98); 14 Nov 2005 16:25:36 +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.321845 secs); 14 Nov 2005 15:25:36 -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.321845 secs) Received: from unknown (HELO ?192.168.168.242?) (192.168.168.242) by 192.168.168.203 with SMTP; 14 Nov 2005 16:25:35 +0100 From: Heiko Weber Organization: Wecos To: Anton Berezin Date: Mon, 14 Nov 2005 16:26:01 +0100 User-Agent: KMail/1.8.2 References: <200511130055.20371.heiko@wecos.de> <200511141329.13933.heiko@wecos.de> <20051114144555.GG68946@heechee.tobez.org> In-Reply-To: <20051114144555.GG68946@heechee.tobez.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200511141626.01504.heiko@wecos.de> Cc: mat@freebsd.org, 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:12:24 -0000 Am Montag, 14. November 2005 15:45 schrieb Anton Berezin: > --- sharelite.c.orig=A0=A0=A0=A0Mon Nov 14 15:37:08 2005 > +++ sharelite.c=A0Mon Nov 14 15:37:41 2005 > ... Hi \Anton, thank you very much, that fixed my problem. With that knowlegde it should b= e=20 no problem to fix other perl-ports as well. Great job ! Best regards Heiko =2D-=20 Heiko Weber : heiko(at)wecos.de 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