You are not logged in.

#1 2013-02-06 15:06:26

Lord Bo
Member
Registered: 2012-11-11
Posts: 151

[SOLVED] Perl IPC::Shareable fails with: shmget: No such file...

I tried to use community/perl-ipc-shareable, but it seems to be broken and should therefore be removed from community. I dont know, who to address with that, so I posted this issue here. A minimal example:

#!/usr/bin/env perl

use IPC::Shareable;

my $share = "initial";
tie $share, 'IPC::Shareable', 'data',  or die "tie failed\n";
print "hello"

This issues the following message:
IPC::Shareable::SharedMem: shmget: No such file or directory
And quits immediately.

Last edited by Lord Bo (2013-02-07 15:15:14)

Offline

#2 2013-02-06 15:10:15

headkase
Member
From: Canada
Registered: 2011-12-06
Posts: 1,543
Website

Re: [SOLVED] Perl IPC::Shareable fails with: shmget: No such file...

See:

https://bugs.archlinux.org/

File a issue, they are tracked so they actually get fixed without having to bring down the "axe of doom" on a package.


We all make choices, but in the end, our choices make us.

Offline

#3 2013-02-06 19:45:47

Lord Bo
Member
Registered: 2012-11-11
Posts: 151

Re: [SOLVED] Perl IPC::Shareable fails with: shmget: No such file...

I'm sorry for this spam, I was too fast. I just was too lazy to read the whole documentation of IPC::Shareable (and it wasn't explained too easy either). The code from my previous post can be fixed to work correctly:

#!/usr/bin/env perl

use IPC::Shareable;

my $share = "initial";
tie $share, 'IPC::Shareable', 'data', { create => 'true' } or die "tie failed\n";
print "hello"

The only thing wrong about this module, that I definitly know about now, is, that it doesn't behave completely as described (the code from my previous post should fail with "tie failed"). And this is a problem with this perl module, not with the arch package.

Last edited by Lord Bo (2013-02-06 19:51:00)

Offline

#4 2013-02-06 19:56:10

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,725

Re: [SOLVED] Perl IPC::Shareable fails with: shmget: No such file...

Can you mark the thread as solved please and provide a more descriptive title.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

Board footer

Powered by FluxBB