New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shmget limited to 32 bit segment size on 64 bit OS #9685
Comments
From @mhxCreated by mhx@cpan.orgThis was originally reported as cpan #44182 for IPC::SysV. But the Quoting the original bug report:
Perl Info
|
@mhx - Status changed from 'new' to 'open' |
@mhx - Status changed from 'open' to 'new' |
@mhx - Status changed from 'new' to 'open' |
@mhx - Status changed from 'open' to 'new' |
From @mhxAttaching test script from original report. |
From @mhx |
From @mhxCould you please try to build the development version of perl http://perl5.git.perl.org/perl.git/blob/HEAD:/pod/perlhack.pod Thanks, |
From @mhxdoio.c.diff--- doio.c.orig 2009-03-16 10:25:55.000000000 +0100
+++ doio.c 2009-03-16 10:28:46.000000000 +0100
@@ -1981,7 +1981,7 @@
{
dVAR;
const key_t key = (key_t)SvNVx(*++mark);
- const I32 n = (optype == OP_MSGGET) ? 0 : SvIVx(*++mark);
+ SV *nsv = optype == OP_MSGGET ? NULL : *++mark;
const I32 flags = SvIVx(*++mark);
PERL_ARGS_ASSERT_DO_IPCGET;
@@ -1996,11 +1996,11 @@
#endif
#ifdef HAS_SEM
case OP_SEMGET:
- return semget(key, n, flags);
+ return semget(key, (int) SvIV(nsv), flags);
#endif
#ifdef HAS_SHM
case OP_SHMGET:
- return shmget(key, n, flags);
+ return shmget(key, (size_t) SvUV(nsv), flags);
#endif
#if !defined(HAS_MSG) || !defined(HAS_SEM) || !defined(HAS_SHM)
default:
|
@mhx - Status changed from 'new' to 'open' |
From ssgo@strastar.comDear Marcus I had compiled perl development version 5.11 with patch file which you gave and test again with "shmsizetest.pl" script which make more than 2G byte It was successfull to create 20G byte with default configuration of SysV on Thanks your patch Best regards -----Original Message----- Could you please try to build the development version of perl with the http://perl5.git.perl.org/perl.git/blob/HEAD:/pod/perlhack.pod Thanks, |
From @mhxFixed by the following change: http://perl5.git.perl.org/perl.git/commitdiff/c331296618a8003690577e0901fd07183a76094e |
@mhx - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#63924 (status was 'resolved')
Searchable as RT63924$
The text was updated successfully, but these errors were encountered: