Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 97035
Status: rejected
Priority: 0/
Queue: Imager

People
Owner: Nobody in particular
Requestors: gregoa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From: gregoa [...] cpan.org
Subject: libimager-perl: FTBFS on s390x
Download (untitled) / with headers
text/plain 2.6k
We have the following bug reported to the Debian package of Imager (https://bugs.debian.org/754125): It doesn't seem to be a bug in the packaging, so you may want to take a look. Thanks! ------8<-----------8<-----------8<-----------8<-----------8<----- Package: libimager-perl Version: 0.98+dfsg-2 Severity: serious Your package has failed to build on s390x: https://buildd.debian.org/status/logs.php?pkg=libimager-perl&arch=s390x Excerpt from the log: Failed 215/251 subtests Test Summary Report ------------------- t/10png.t (Wstat: 11 Tests: 36 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 251 tests but ran 36. Files=2, Tests=37, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.16 cusr 0.02 csys = 0.20 CPU) Result: FAIL make[2]: *** [test_dynamic] Error 255 Emilio ------8<-----------8<-----------8<-----------8<-----------8<----- Additionally, I ran t/10png.t in a chroot on an s390x machine with --verbose: ------8<-----------8<-----------8<-----------8<-----------8<----- $ prove -I../blib/lib -I../blib/arch --verbose t/10png.t t/10png.t .. 1..251 ok 1 - must have png format ok 2 - write ok 3 - read png ok 4 - compare saved and original images ok 5 - i_xres: 300 ok 6 - i_yres: 200 ok 7 - i_format: png ok 8 - write tranparent ok 9 - read transparent ok 10 - compare saved and original transparent ok 11 - read transparent paletted image ok 12 - read palette_out image ok 13 - images the same ok 14 - set width limit 149 ok 15 - should fail read due to size limits ok 16 - check message ok 17 - set height limit 149 ok 18 - should fail read due to size limits ok 19 - check message ok 20 - set width limit 150 ok 21 - should succeed - just inside width limit ok 22 - set height limit 150 ok 23 - should succeed - just inside height limit ok 24 - set bytes limit 67499 ok 25 - should fail - too many bytes ok 26 - check error message ok 27 - set bytes limit 67500 ok 28 - should succeed - just inside bytes limit ok 29 - check the image was loaded ok 30 - check image matches ok 31 - test write_multi() callback ok 32 - test write_multi() callback failure ok 33 - check failing close fails ok 34 - check error message ok 35 - check png in read types ok 36 - check png in write types Failed 215/251 subtests Test Summary Report ------------------- t/10png.t (Wstat: 11 Tests: 36 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 251 tests but ran 36. Files=1, Tests=36, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.11 cusr 0.01 csys = 0.16 CPU) Result: FAIL ------8<-----------8<-----------8<-----------8<-----------8<----- Thanks for considering, gregor herrmann, Debian Perl Group
Subject: Re: [rt.cpan.org #97035] libimager-perl: FTBFS on s390x
Date: Tue, 8 Jul 2014 08:30:06 +1000
To: gregor herrmann via RT <bug-Imager [...] rt.cpan.org>
From: Tony Cook <tony [...] develop-help.com>
Download (untitled) / with headers
text/plain 927b
On Mon, Jul 07, 2014 at 04:44:47PM -0400, gregor herrmann via RT wrote: Show quoted text
> We have the following bug reported to the Debian package of Imager > (https://bugs.debian.org/754125): > > It doesn't seem to be a bug in the packaging, so you may want to take > a look. Thanks! >
... Show quoted text
> ok 33 - check failing close fails > ok 34 - check error message > ok 35 - check png in read types > ok 36 - check png in write types > Failed 215/251 subtests > > Test Summary Report > ------------------- > t/10png.t (Wstat: 11 Tests: 36 Failed: 0) > Non-zero wait status: 11 > Parse errors: Bad plan. You planned 251 tests but ran 36. > Files=1, Tests=36, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.11 cusr 0.01 csys = 0.16 CPU) > Result: FAIL
This is a segmentation fault, could I please get a backtrace from it? $ perl Makefile.PL OPTIMIZE=-g $ make $ cd PNG $ gdb --args perl -Mblib t/10png.t ... Show quoted text
gdb> bt
Thanks, Tony
RT-Send-CC: 754125-maintonly [...] bugs.debian.org
Download (untitled) / with headers
text/plain 4.3k
On Mon Jul 07 18:30:19 2014, tony@develop-help.com wrote: (Sorry for the late reply, our bug forwarding script didn't set requestor or cc, so I didn't see your reply.) Show quoted text
> This is a segmentation fault, could I please get a backtrace from it? > > $ perl Makefile.PL OPTIMIZE=-g > $ make > $ cd PNG > $ gdb --args perl -Mblib t/10png.t > ...
> gdb> bt
Unfortunately this doesn't work in the s390x chroot (while it works fine on my local machine): $ gdb --args perl -Mblib t/10png.t GNU gdb (Debian 7.7.1-2) 7.7.1 [..] Reading symbols from perl...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/perl -Mblib t/10png.t Couldn't write registers: Invalid argument. (gdb) Same for every program I try to run under gdb. -- Ah, seems to be https://bugs.debian.org/728705 So let's try the workaround: $ ulimit -c unlimited $ perl -Mblib t/10png.t 1..251 ok 1 - must have png format # Library version 10250 ok 2 - write ok 3 - read png # png average mean square pixel difference: 0 ok 4 - compare saved and original images ok 5 - i_xres: 300 ok 6 - i_yres: 200 ok 7 - i_format: png ok 8 - write tranparent ok 9 - read transparent # png average mean square pixel difference: 0 ok 10 - compare saved and original transparent ok 11 - read transparent paletted image ok 12 - read palette_out image ok 13 - images the same ok 14 - set width limit 149 ok 15 - should fail read due to size limits # file size limit - image width of 150 exceeds limit of 149 ok 16 - check message ok 17 - set height limit 149 ok 18 - should fail read due to size limits # file size limit - image height of 150 exceeds limit of 149 ok 19 - check message ok 20 - set width limit 150 ok 21 - should succeed - just inside width limit ok 22 - set height limit 150 ok 23 - should succeed - just inside height limit ok 24 - set bytes limit 67499 ok 25 - should fail - too many bytes # file size limit - storage size of 67500 exceeds limit of 67499 ok 26 - check error message ok 27 - set bytes limit 67500 ok 28 - should succeed - just inside bytes limit ok 29 - check the image was loaded ok 30 - check image matches ok 31 - test write_multi() callback ok 32 - test write_multi() callback failure # closecb called ok 33 - check failing close fails ok 34 - check error message ok 35 - check png in read types ok 36 - check png in write types Segmentation fault (core dumped) $ gdb perl core [..] Core was generated by `perl -Mblib t/10png.t'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00000000fcef2068 in ?? () (gdb) bt #0 0x00000000fcef2068 in ?? () #1 0x000003fffcee132e in png_error () from /lib/s390x-linux-gnu/libpng12.so.0 #2 0x000003fffcee169a in png_chunk_error () from /lib/s390x-linux-gnu/libpng12.so.0 #3 0x000003fffcecb480 in ?? () from /lib/s390x-linux-gnu/libpng12.so.0 #4 0x000003fffcecb84a in ?? () from /lib/s390x-linux-gnu/libpng12.so.0 #5 0x000003fffced56cc in png_read_info () from /lib/s390x-linux-gnu/libpng12.so.0 #6 0x000003fffcef2d66 in i_readpng_wiol (ig=0x82af2840, flags=0) at impng.c:362 #7 0x000003fffcef0da4 in XS_Imager__File__PNG_i_readpng_wiol (my_perl=0x822a5010, cv=0x82aba5a0) at PNG.c:195 #8 0x000003fffd37a4fa in Perl_pp_entersub () from /usr/lib/libperl.so.5.18 #9 0x000003fffd3713a8 in Perl_runops_standard () from /usr/lib/libperl.so.5.18 #10 0x000003fffd2f7d3a in perl_run () from /usr/lib/libperl.so.5.18 #11 0x0000000080000fa2 in main () With perl-debug installed: (gdb) bt #0 0x00000000fcef2068 in ?? () #1 0x000003fffcee132e in png_error () from /lib/s390x-linux-gnu/libpng12.so.0 #2 0x000003fffcee169a in png_chunk_error () from /lib/s390x-linux-gnu/libpng12.so.0 #3 0x000003fffcecb480 in ?? () from /lib/s390x-linux-gnu/libpng12.so.0 #4 0x000003fffcecb84a in ?? () from /lib/s390x-linux-gnu/libpng12.so.0 #5 0x000003fffced56cc in png_read_info () from /lib/s390x-linux-gnu/libpng12.so.0 #6 0x000003fffcef2d66 in i_readpng_wiol (ig=0x82af2840, flags=0) at impng.c:362 #7 0x000003fffcef0da4 in XS_Imager__File__PNG_i_readpng_wiol (my_perl=0x822a5010, cv=0x82aba5a0) at PNG.c:195 #8 0x000003fffd37a4fa in Perl_pp_entersub (my_perl=0x822a5010) at pp_hot.c:2888 #9 0x000003fffd3713a8 in Perl_runops_standard (my_perl=0x822a5010) at run.c:42 #10 0x000003fffd2f7d3a in S_run_body (oldscope=1, my_perl=0x822a5010) at perl.c:2467 #11 perl_run (my_perl=0x822a5010) at perl.c:2383 #12 0x0000000080000fa2 in main (argc=3, argv=0x3ffffb4dcc8, env=0x3ffffb4dce8) at perlmain.c:114 Cheers, gregor
Subject: Bug#754125: Info received for maintainer only ([rt.cpan.org #97035] libimager-perl: FTBFS on s390x)
Date: Sun, 13 Jul 2014 13:24:12 +0000
To: bug-Imager [...] rt.cpan.org
From: owner [...] bugs.debian.org (Debian Bug Tracking System)
Download (untitled) / with headers
text/plain 833b
Thank you for the additional information you have supplied regarding this Bug report. This is an automatically generated reply to let you know your message has been received. Your message has been forwarded to the package maintainers (but not other interested parties, as you requested) for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org> If you wish to submit further information on this problem, please send it to 754125-maintonly@bugs.debian.org. Please do not send mail to owner@bugs.debian.org unless you wish to report a problem with the Bug-tracking system. -- 754125: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754125 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
CC: 754125-maintonly [...] bugs.debian.org
Subject: Re: [rt.cpan.org #97035] libimager-perl: FTBFS on s390x
Date: Sun, 13 Jul 2014 20:12:38 +0200
To: gregor herrmann via RT <bug-Imager [...] rt.cpan.org>
From: Aurelien Jarno <aurelien [...] aurel32.net>
On Sun, Jul 13, 2014 at 09:11:57AM -0400, gregor herrmann via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=97035 > > > On Mon Jul 07 18:30:19 2014, tony@develop-help.com wrote: > > (Sorry for the late reply, our bug forwarding script didn't set requestor or > cc, so I didn't see your reply.) >
> > This is a segmentation fault, could I please get a backtrace from it? > > > > $ perl Makefile.PL OPTIMIZE=-g > > $ make > > $ cd PNG > > $ gdb --args perl -Mblib t/10png.t > > ...
> > gdb> bt
> > Unfortunately this doesn't work in the s390x chroot (while it works fine on > my local machine): > > $ gdb --args perl -Mblib t/10png.t > GNU gdb (Debian 7.7.1-2) 7.7.1 > [..] > Reading symbols from perl...(no debugging symbols found)...done. > (gdb) run > Starting program: /usr/bin/perl -Mblib t/10png.t > Couldn't write registers: Invalid argument. > (gdb) > > Same for every program I try to run under gdb. -- Ah, seems to be > https://bugs.debian.org/728705 > > So let's try the workaround: > > $ ulimit -c unlimited > $ perl -Mblib t/10png.t > 1..251 > ok 1 - must have png format > # Library version 10250 > ok 2 - write > ok 3 - read png > # png average mean square pixel difference: 0 > ok 4 - compare saved and original images > ok 5 - i_xres: 300 > ok 6 - i_yres: 200 > ok 7 - i_format: png > ok 8 - write tranparent > ok 9 - read transparent > # png average mean square pixel difference: 0 > ok 10 - compare saved and original transparent > ok 11 - read transparent paletted image > ok 12 - read palette_out image > ok 13 - images the same > ok 14 - set width limit 149 > ok 15 - should fail read due to size limits > # file size limit - image width of 150 exceeds limit of 149 > ok 16 - check message > ok 17 - set height limit 149 > ok 18 - should fail read due to size limits > # file size limit - image height of 150 exceeds limit of 149 > ok 19 - check message > ok 20 - set width limit 150 > ok 21 - should succeed - just inside width limit > ok 22 - set height limit 150 > ok 23 - should succeed - just inside height limit > ok 24 - set bytes limit 67499 > ok 25 - should fail - too many bytes > # file size limit - storage size of 67500 exceeds limit of 67499 > ok 26 - check error message > ok 27 - set bytes limit 67500 > ok 28 - should succeed - just inside bytes limit > ok 29 - check the image was loaded > ok 30 - check image matches > ok 31 - test write_multi() callback > ok 32 - test write_multi() callback failure > # closecb called > ok 33 - check failing close fails > ok 34 - check error message > ok 35 - check png in read types > ok 36 - check png in write types > Segmentation fault (core dumped) > > $ gdb perl core > [..] > Core was generated by `perl -Mblib t/10png.t'. > Program terminated with signal SIGSEGV, Segmentation fault. > #0 0x00000000fcef2068 in ?? () > (gdb) bt > #0 0x00000000fcef2068 in ?? () > #1 0x000003fffcee132e in png_error () from /lib/s390x-linux-gnu/libpng12.so.0 > #2 0x000003fffcee169a in png_chunk_error () from /lib/s390x-linux-gnu/libpng12.so.0 > #3 0x000003fffcecb480 in ?? () from /lib/s390x-linux-gnu/libpng12.so.0 > #4 0x000003fffcecb84a in ?? () from /lib/s390x-linux-gnu/libpng12.so.0 > #5 0x000003fffced56cc in png_read_info () from /lib/s390x-linux-gnu/libpng12.so.0 > #6 0x000003fffcef2d66 in i_readpng_wiol (ig=0x82af2840, flags=0) at impng.c:362 > #7 0x000003fffcef0da4 in XS_Imager__File__PNG_i_readpng_wiol (my_perl=0x822a5010, cv=0x82aba5a0) at PNG.c:195 > #8 0x000003fffd37a4fa in Perl_pp_entersub () from /usr/lib/libperl.so.5.18 > #9 0x000003fffd3713a8 in Perl_runops_standard () from /usr/lib/libperl.so.5.18 > #10 0x000003fffd2f7d3a in perl_run () from /usr/lib/libperl.so.5.18 > #11 0x0000000080000fa2 in main () > > With perl-debug installed: > > (gdb) bt > #0 0x00000000fcef2068 in ?? () > #1 0x000003fffcee132e in png_error () from /lib/s390x-linux-gnu/libpng12.so.0 > #2 0x000003fffcee169a in png_chunk_error () from /lib/s390x-linux-gnu/libpng12.so.0 > #3 0x000003fffcecb480 in ?? () from /lib/s390x-linux-gnu/libpng12.so.0 > #4 0x000003fffcecb84a in ?? () from /lib/s390x-linux-gnu/libpng12.so.0 > #5 0x000003fffced56cc in png_read_info () from /lib/s390x-linux-gnu/libpng12.so.0 > #6 0x000003fffcef2d66 in i_readpng_wiol (ig=0x82af2840, flags=0) at impng.c:362 > #7 0x000003fffcef0da4 in XS_Imager__File__PNG_i_readpng_wiol (my_perl=0x822a5010, cv=0x82aba5a0) at PNG.c:195 > #8 0x000003fffd37a4fa in Perl_pp_entersub (my_perl=0x822a5010) at pp_hot.c:2888 > #9 0x000003fffd3713a8 in Perl_runops_standard (my_perl=0x822a5010) at run.c:42 > #10 0x000003fffd2f7d3a in S_run_body (oldscope=1, my_perl=0x822a5010) at perl.c:2467 > #11 perl_run (my_perl=0x822a5010) at perl.c:2383 > #12 0x0000000080000fa2 in main (argc=3, argv=0x3ffffb4dcc8, env=0x3ffffb4dce8) at perlmain.c:114
A quick debugging seems to show the problem is on the libpng side. Rebuilding it makes the problem disappear. It looks like it is due to the same issue we are doing this transition, ie the libpng structure expose a jmp_buf structure. I don't really now what to do... -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net
CC: bug-Imager [...] rt.cpan.org
Subject: Re: Bug#754125: [rt.cpan.org #97035] libimager-perl: FTBFS on s390x
Date: Mon, 14 Jul 2014 00:36:03 +0200
To: Aurelien Jarno <aurelien [...] aurel32.net>, 754125-maintonly [...] bugs.debian.org
From: gregor herrmann <gregoa [...] debian.org>
Download (untitled) / with headers
text/plain 1.8k
On Sun, 13 Jul 2014 20:12:38 +0200, Aurelien Jarno wrote: Show quoted text
> > (gdb) bt > > #0 0x00000000fcef2068 in ?? () > > #1 0x000003fffcee132e in png_error () from /lib/s390x-linux-gnu/libpng12.so.0 > > #2 0x000003fffcee169a in png_chunk_error () from /lib/s390x-linux-gnu/libpng12.so.0 > > #3 0x000003fffcecb480 in ?? () from /lib/s390x-linux-gnu/libpng12.so.0 > > #4 0x000003fffcecb84a in ?? () from /lib/s390x-linux-gnu/libpng12.so.0 > > #5 0x000003fffced56cc in png_read_info () from /lib/s390x-linux-gnu/libpng12.so.0 > > #6 0x000003fffcef2d66 in i_readpng_wiol (ig=0x82af2840, flags=0) at impng.c:362 > > #7 0x000003fffcef0da4 in XS_Imager__File__PNG_i_readpng_wiol (my_perl=0x822a5010, cv=0x82aba5a0) at PNG.c:195 > > #8 0x000003fffd37a4fa in Perl_pp_entersub (my_perl=0x822a5010) at pp_hot.c:2888 > > #9 0x000003fffd3713a8 in Perl_runops_standard (my_perl=0x822a5010) at run.c:42 > > #10 0x000003fffd2f7d3a in S_run_body (oldscope=1, my_perl=0x822a5010) at perl.c:2467 > > #11 perl_run (my_perl=0x822a5010) at perl.c:2383 > > #12 0x0000000080000fa2 in main (argc=3, argv=0x3ffffb4dcc8, env=0x3ffffb4dce8) at perlmain.c:114
> > A quick debugging seems to show the problem is on the libpng side. > Rebuilding it makes the problem disappear.
Thanks for looking into this further! Show quoted text
> It looks like it is due to > the same issue we are doing this transition, ie the libpng structure > expose a jmp_buf structure. I don't really now what to do...
So I guess the CPAN RT ticket can be closed, this is not a problem in Imager but some nice mess we have in Debian :/ Sorry for the noise, Tony. Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Neil Young: Heart Of Gold
Download signature.asc
application/pgp-signature 949b

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 755b
On Sun Jul 13 18:36:26 2014, gregoa@debian.org wrote: Show quoted text
> On Sun, 13 Jul 2014 20:12:38 +0200, Aurelien Jarno wrote:
> > A quick debugging seems to show the problem is on the libpng side. > > Rebuilding it makes the problem disappear.
> > Thanks for looking into this further! >
> > It looks like it is due to > > the same issue we are doing this transition, ie the libpng structure > > expose a jmp_buf structure. I don't really now what to do...
> > So I guess the CPAN RT ticket can be closed, this is not a problem in > Imager but some nice mess we have in Debian :/ > > Sorry for the noise, Tony.
Thanks, I'll admit I couldn't see any way to resolve this from my end - only tests changed in Imager's PNG code between 0.98 and 0.99. Closing. Tony


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.