Thread View: linux.debian.bugs.rc
3 messages
3 total messages
Started by Niko Tyni
Sun, 18 Oct 2026 14:40
Bug#1146517: libipc-shareable-perl: FTBFS on ppc64el and ppc64: shm_segments() reads the wrong field of struct shmid_ds
Author: Niko Tyni
Date: Sun, 18 Oct 2026 14:40
Date: Sun, 18 Oct 2026 14:40
46 lines
3913 bytes
3913 bytes
On Wed, Sep 02, 2026 at 08:56:25PM +0200, Edmund Lodewijks wrote: > Source: libipc-shareable-perl > Version: 1.19-1 > Severity: serious > Tags: ftbfs patch upstream > Justification: fails to build from source > Forwarded: https://github.com/stevieb9/ipc-shareable/issues/66 > X-Debbugs-Cc: gregoa@debian.org > > > 1.19-1 fails to build on ppc64el and ppc64, and builds everywhere else: > > https://buildd.debian.org/status/package.php?p=libipc-shareable-perl > https://buildd.debian.org/status/logs.php?pkg=libipc-shareable-perl&arch=ppc64el > > t/72-shm_segments.t (Wstat: 6912 Tests: 47 Failed: 27) > t/74-seg_map.t (Wstat: 512 Tests: 12 Failed: 2) > > lib/IPC/Shareable.pm unpacks struct shmid_ds at a hard-coded offset for > shm_segsz, assuming the asm-generic field order. PowerPC puts the three > time fields first, so on ppc64el/ppc64 the offset lands on shm_atime; > the oversized value makes the following shmread() fail and the segment > never reaches %segments. IPC/Shareable/SharedMem.pm has the same bug in > stat(). > > Reported upstream as #66, together with an alternative that drops the > offset tables entirely and reads the fields through IPC::SysV's XS > instead. Upstream has not replied yet, so the attached minimal fix is > what I would suggest for Debian; it is the least likely to conflict with > whichever route upstream takes. Hi, thanks for looking at these issues. FWIW I think the IPC::SharedMem approach looks like the right thing to do here. I also agree with Gregor that the 'IPC::SharedMem::stat'->new->unpack($data) part in the patch looks a bit out of place and should probably be replaced with a call to IPC::SharedMem::stat() that does the same thing. Upstream would probably find it easier to untangle all this with separate actual pull requests rather than a patch dump with two different approaches. Hope this helps a bit, sorry for just another drive by contribution. -- Niko Tyni ntyni@debian.org
Bug#1146517: libipc-shareable-perl: FTBFS on ppc64el and ppc64: shm_segments() reads the wrong field of struct shmid_ds
Author: gregor herrmann
Date: Wed, 21 Oct 2026 19:10
Date: Wed, 21 Oct 2026 19:10
64 lines
5528 bytes
5528 bytes
------------=_1792609268-9717-25
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
On Mon, 19 Oct 2026 15:55:21 +0200, Edmund Lodewijks wrote:
>On 2026/10/18 16:31, Niko Tyni wrote:
>>FWIW I think the IPC::SharedMem approach looks like the right thing to do here.
>>I also agree with Gregor that the 'IPC::SharedMem::stat'->new->unpack($data)
>>part in the patch looks a bit out of place and should probably be replaced
>>with a call to IPC::SharedMem::stat() that does the same thing.
>As for the Debian situation, I am not sure what should be done. Gregor
>feels for taking the one patch idea (minimal), you think the other one
>would be the right thing to do, but perhaps only after a change.
If Niko suggests to go the IPC::SharedMem path (and if we have one
clear upstream pull request that can be converted to a clean Debian
patch) I'm happy to go this way -- that's why I asked for additional
opinions from people who understand the situation better than me :)
(Thanks Niko!)
>Alternatively - just as a question - that architecture could just be
>disabled for this package? Would that break any deployments that we
>know of?
That's a very last-resort option; and breakage also occurs one other
(non-release but still) architectures.
Cheers,
gregor
--
.''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org
: :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
`. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
`-
------------=_1792609268-9717-25
Content-Type: application/pgp-signature; name="signature.asc"
Content-Disposition: inline; filename="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: Digital Signature
-----BEGIN PGP SIGNATURE-----
iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmrZC/RfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qgaaWQ//d9rgPBaW+SPa2/XXcF/O98Is307LuhZ5ToNKzni1chczx6O6oiy4q/HJ
0FZWr7rnWa2YYgZFbmmQ17sT3+uHtxb2v0o5QE0RchiHYuy3wvDKtjdXM9IhyZqe
ZgIHzmvKiKaJ23ya1lTPMZfxKYdN4Gx3W8YmkafWHNhm7wMJcBqqK/ZkFtcne+38
EtbCUkjjDp45lSBjf4LolXxAZDaDePkjPU+vlJnUhYJactWkCTlRC257hGmOJ0b3
r9XNpeyc8xfQCMfKRw7pew3rOOX5a++AGgSXyDGtNX4GuXrI6we8q0Wp5WbjGM+R
HDbAllcrHTwUAwTJLXglqF4n9v1IavM6TAxuTUA2feLvEityZU4ytATYlUxE7tON
mjTm4YlYUo3JksQHuT9zsTqMRLBM8r/HtDI7fvQUWkLsQ9QSRJbusqr7qnubyGx0
gKl1fE9LfyZjQ9J386fQZnmfAIWf1uExpwrYuRSh2BjX1HxhfUdwNumNELji/VGF
YVQ6M563YQT2TvTop+cz4KvO6YmASvTkQ0q2BveADj0cJt263L6tMW+dkCx3ubDT
N2VpAa8qdFVZOB9fCx8cY7+z1UtNZKEQOmnZLZYO0ipjMtGDwL3bD5tkdkZs9oB1
JwJh60GwDwzUdXfVpIVy716Qcq/AZvvzdKtCIcmQAQqI+fxJe1o=
=aAv2
-----END PGP SIGNATURE-----
------------=_1792609268-9717-25--
Bug#1146517: libipc-shareable-perl: FTBFS on ppc64el and ppc64: shm_segments() reads the wrong field of struct shmid_ds
Author: Niko Tyni
Date: Sat, 24 Oct 2026 08:00
Date: Sat, 24 Oct 2026 08:00
39 lines
4097 bytes
4097 bytes
On Wed, Oct 21, 2026 at 09:00:59PM +0200, gregor herrmann wrote: > On Mon, 19 Oct 2026 15:55:21 +0200, Edmund Lodewijks wrote: > > > On 2026/10/18 16:31, Niko Tyni wrote: > > > FWIW I think the IPC::SharedMem approach looks like the right thing to do here. > > > I also agree with Gregor that the 'IPC::SharedMem::stat'->new->unpack($data) > > > part in the patch looks a bit out of place and should probably be replaced > > > with a call to IPC::SharedMem::stat() that does the same thing. > > As for the Debian situation, I am not sure what should be done. Gregor > > feels for taking the one patch idea (minimal), you think the other one > > would be the right thing to do, but perhaps only after a change. > > If Niko suggests to go the IPC::SharedMem path (and if we have one clear > upstream pull request that can be converted to a clean Debian patch) I'm > happy to go this way -- that's why I asked for additional opinions from > people who understand the situation better than me :) Yeah we don't really disagree on anything here :) Perhaps a way forward would be - minimal changes in unstable: add the special case struct offsets for ppc - try out the IPC::SharedMem approach in experimental - if /when all goes well in experimental, make an upstream PR for the IPC::SharedMem changes - hopefully switch to IPC::SharedMem in unstable too later, preferably via an upstream release of course I don't think this will be all that hard, Edmund has done the heavy lifting already. But yeah some attention to details will be needed. I'll try to tackle this eventually if Gregor (or someone else) doesn't beat me to it. Unfortunately my availability is rather limited nowadays and I've got some other things on my plate as well. -- Niko
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads