[boulder.pm] IPC::Shareable

Walter Pienciak walter at frii.com
Fri Jan 21 11:28:28 CST 2000


Hi, Robert,

I saw your earlier question, but made no reply because I didn't have
a specific answer.  I've never used IPC::Shareable.  But maybe a general
answer would be useful, I dunno.

This kind of error drives me bats.  What I usually do is run the command
through truss (or trace or strace or whatever your version of Unix calls
it, and track back from the error text to see what's been happening.

A general comment is that I've found this strategy indispensable when
dealing with commercial binaries with limited documentation or support.

Walter

On Fri, 21 Jan 2000, Robert L. Harris wrote:

> 
> 
> Has anyone worked with IPC::Shareable?  I'm running on a linux-2.2.14
> with perl-5.04.3.  
> 
> 
> Here's the error:
> 
> 
> 
> Uncaught exception from user code:
>         shmget returned undef: No such file or directory at ./encodeit line 119
>         Carp::croak('shmget returned undef: No such file or directory') called at /usr/local/lib/site_perl/IPC/Shareable.pm line 406
>         IPC::Shareable::tie_to_shm('SCALAR', 'rips', 'HASH(0x80c8a2c)') called at /usr/local/lib/site_perl/auto/IPC/Shareable/TIESCALAR.al line 14
>         IPC::Shareable::TIESCALAR('IPC::Shareable', 'rips', 'HASH(0x80c8a2c)') called at ./encodeit line 119
> 
> 
> Where line 119 is:
> 
>   my ($glue)='rips';
>   $rippedhandle = tie($ripped, 'IPC::Shareable', $glue, { destroy => 1 }) || die "\n\ntie failed. :$!:\n\n";
> 
> 
> Any thoughts?
> 
> Thanks,
>   Robert
> 
> :wq!
> ---------------------------------------------------------------------------
> Robert L. Harris                |  Low quality in a product happens.
> Senior System Engineer          |    That doesn't mean it's right and
>   at RnD Consulting.		|      definitely doesn't mean it should
>                                 \_       be accepted.  Require quality.
> 
> http://www.rnd-consulting.com/~nomad
> 
> DISCLAIMER:
>       These are MY OPINIONS ALONE.  I speak for no-one else.
> 
> FYI:
>  perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
> 




More information about the Boulder-pm mailing list