You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2023/01/20 00:26:58 UTC
[Bug 66435] New: APR_USE_SHMEM_MMAP_SHM fails on AIX
https://bz.apache.org/bugzilla/show_bug.cgi?id=66435
Bug ID: 66435
Summary: APR_USE_SHMEM_MMAP_SHM fails on AIX
Product: APR
Version: HEAD
Hardware: PC
OS: AIX
Status: NEW
Severity: normal
Priority: P2
Component: APR
Assignee: bugs@apr.apache.org
Reporter: covener@gmail.com
Target Milestone: ---
The portable for for SHM shared memory is: shm_open, ftruncate, mmap.
In APR, apr_file_truncate is used for ftruncate, but it introduces an lseek()
that fails on at least AIX.
AIX lseek manual:
If the FileDescriptor parameter refers to a shared memory
object, the lseek subroutine fails with EINVAL.
...
EINVAL
The resulting offset would be greater than the maximum
offset allowed for the file or device associated with FileDescriptor.
The lseek subroutine was used with a file
descriptor obtained from a call to the shm_open subroutine.
For now, the decision to prefer APR_USE_SHMEM_MMAP_SHM is overridden in
configure.in, but ideally it would work on AIX and somehow forego or ignore the
lseek error.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
[Bug 66435] APR_USE_SHMEM_MMAP_SHM fails on AIX
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66435
--- Comment #2 from Eric Covener <co...@gmail.com> ---
(In reply to Joe Orton from comment #1)
> It looks unnecessary to use an apr_file_t wrapper there at all, how about:
> https://github.com/apache/apr/pull/38
looks simpler and maybe saves another unknown platform. Works for me w/ the
configure.in override removed.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
[Bug 66435] APR_USE_SHMEM_MMAP_SHM fails on AIX
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66435
--- Comment #1 from Joe Orton <jo...@redhat.com> ---
It looks unnecessary to use an apr_file_t wrapper there at all, how about:
https://github.com/apache/apr/pull/38
?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org