dancrumb has asked for the wisdom of the Perl Monks concerning the following question:

Oh wise ones,

I am currently running perl 5.8.8 on a server and I'm trying to install 5.14.

I configured it to usethreads and use64bitint and otherwise the defaults it suggested.

make ran without problems, but make test is failing, on

  ../cpan/IPC-SysV/t/ipcsysv.t
  ../cpan/IPC-SysV/t/shm.t
thus:
# ./perl harness ../cpan/IPC-SysV/t/shm.t ../cpan/IPC-SysV/t/ipcsysv.t ../cpan/IPC-SysV/t/shm.t ...... IPC::SharedMem->new failed: Invalid ar +gument at t/shm.t line 54. ../cpan/IPC-SysV/t/shm.t ...... Dubious, test returned 22 (wstat 5632, + 0x1600) No subtests run ../cpan/IPC-SysV/t/ipcsysv.t .. 1/38 shmget failed: Invalid argument a +t t/ipcsysv.t line 100. # Looks like you planned 38 tests but ran 17. # Looks like your test exited with 22 just after 17. ../cpan/IPC-SysV/t/ipcsysv.t .. Dubious, test returned 22 (wstat 5632, + 0x1600) Failed 21/38 subtests Test Summary Report ------------------- ../cpan/IPC-SysV/t/shm.t (Wstat: 5632 Tests: 0 Failed: 0) Non-zero exit status: 22 Parse errors: No plan found in TAP output ../cpan/IPC-SysV/t/ipcsysv.t (Wstat: 5632 Tests: 17 Failed: 0) Non-zero exit status: 22 Parse errors: Bad plan. You planned 38 tests but ran 17. Files=2, Tests=17, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.13 cusr + 0.00 csys = 0.14 CPU) Result: FAIL

Both of these tests are reporting 'Invalid argument', but when I look at the source, I can't see anything that looks invlaid. I'm not really sure how to proceed... any pointers?

Replies are listed 'Best First'.
Re: IPC-SysV problems when upgrading perl.
by dancrumb (Initiate) on Jun 23, 2011 at 02:14 UTC

    Found the answer. The problem was that SHMMAX was set to zero... or, rather, it was set to 137438953472, which was too large and resulted in zero. Thus, all shmgets would fail.

    Setting this to a more sensible value solved the problem