Article View: linux.debian.bugs.rc
Article #906Bug#1146517: libipc-shareable-perl: FTBFS on ppc64el and ppc64: shm_segments() reads the wrong field of struct shmid_ds
From: 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
Technical Details
Message-ID:
<NPAdj-6lMu-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.szaf.org!news.datentrampelpfad.de!news.imp.ch!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<NyYlI-eNUF-3@gated-at.bofh.it> <NyYlI-eNUF-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.szaf.org!news.datentrampelpfad.de!news.imp.ch!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Niko Tyni <ntyni@debian.org> Newsgroups: linux.debian.bugs.rc Subject: Bug#1146517: libipc-shareable-perl: FTBFS on ppc64el and ppc64: shm_segments() reads the wrong field of struct shmid_ds Date: Sun, 18 Oct 2026 16:40:01 +0200 Message-ID: <NPAdj-6lMu-3@gated-at.bofh.it> References: <NyYlI-eNUF-3@gated-at.bofh.it> <NyYlI-eNUF-3@gated-at.bofh.it> X-Original-To: Edmund Lodewijks <edmund@proteamail.com>, 1146517@bugs.debian.org X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Sun Oct 18 14:33:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Niko Tyni <ntyni@debian.org>, 1146517@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-perl-maintainers@lists.alioth.debian.org X-Debian-Pr-Message: followup 1146517 X-Debian-Pr-Package: src:libipc-shareable-perl X-Debian-Pr-Keywords: ftbfs patch upstream X-Debian-Pr-Source: libipc-shareable-perl MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-User: ntyni X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/834937 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 46 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 18 Oct 2026 17:31:44 +0300 X-Original-Message-ID: <atTYUAA7qx53K2Nu@app-dd> X-Original-References: <92118a10-1f95-467e-87e7-573f2f20610b@proteamail.com> <92118a10-1f95-467e-87e7-573f2f20610b@proteamail.com>