Bug#775744: libapp-stacktrace-perl: FTBFS: Failed 1/4 test programs. 1/6 subtests failed.

Niko Tyni ntyni at debian.org
Tue Dec 6 12:53:15 UTC 2016


Control: tag -1 patch

On Sun, Dec 04, 2016 at 05:35:22PM +0200, Niko Tyni wrote:

> The problem itself seems to be that the gdb macros in
>  lib/App/Stacktrace/perl_backtrace_raw.txt
> cast pointers to the C 'int' type, which is broken on 64-bit
> architectures. For instance, in 'perl_backtrace_5_12_x':
>     set $interpreter = (int) Perl_get_context()
> 
> I suppose it used to work on amd64 because perl used low memory addresses
> so things didn't overflow, but that has changed with the latest perl
> upload, presumably due to gcc PIE changes.

The attached patch makes the test suite pass again for me on amd64.

It should probably be tested on other architectures but one way
to achieve that is to just upload it to experimental or sid.

As noted in the commit message, the thread dumping parts are untested,
and I tried not to touch other code paths than the one we're currently
taking. I might well have got something wrong though; the test suite
is unfortunately not very extensive.

I don't see any rdeps in the archive. Axel: if you are actually using
this module for something, testing there would be very welcome.

Upstream should of course be informed too, though they don't seem
very active (last release was in 2011.)
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Pointers-should-be-long-not-int.patch
Type: text/x-diff
Size: 17836 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20161206/3a3d93c7/attachment-0001.patch>


More information about the pkg-perl-maintainers mailing list