Bug 1170831 - GCC 10: netpbm build fails on i586
GCC 10: netpbm build fails on i586
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Petr Gajdos
E-mail List
:
Depends on:
Blocks: 1157217
  Show dependency treegraph
 
Reported: 2020-04-29 14:00 UTC by Martin Liška
Modified: 2020-05-04 13:20 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2020-04-29 14:00:22 UTC
Fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:N/netpbm/standard/i586

with:

[  123s] == pbm-misc-converters.test ==
[  123s] pbmtoibm23xx: opening 'testgrid.pbm'
[  123s] pbm-misc-converters.test: FAILURE
Comment 1 Petr Gajdos 2020-04-30 13:22:14 UTC
with -O0
~~~~~~~~

netpbm-10.90.1/test # gdb --args pbmtonokia -fmt NPM  testgrid.pbm

$ pbmtonokia -fmt NPM  testgrid.pbm | cksum 
2602382240 43
$ pbmtonokia -fmt NPM  testgrid.pbm | cksum 
2602382240 43
$ pbmtonokia -fmt NPM  testgrid.pbm | cksum 
2602382240 43
$ pbmtonokia -fmt NPM  testgrid.pbm | cksum 
2602382240 43
$

Breakpoint 1, convertToNpm (image=0x1150, cols=14, rows=16, text=0xf7f6e700 <main_arena> "", ofP=0xf7f6de44) at pbmtonokia.c:396
396	             FILE *       const ofP) {
(gdb) n
402	    if (text) 
(gdb) p text
$1 = 0x0
(gdb) n
405	        len = 0;
(gdb) n
409	    header[       0] = 'N';
(gdb) n
410	    header[       1] = 'P';
(gdb) 
411	    header[       2] = 'M';
(gdb) 
412	    header[       3] = 0;
(gdb) 
413	    header[       4] = len;
(gdb) 
414	    header[       5] = 0;
[..]

with -O2
~~~~~~~~
$ pbmtonokia -fmt NPM  testgrid.pbm | cksum 
480016097 43
$ pbmtonokia -fmt NPM  testgrid.pbm | cksum 
2986307830 43
$ pbmtonokia -fmt NPM  testgrid.pbm | cksum 
1817142158 43
$ pbmtonokia -fmt NPM  testgrid.pbm | cksum 
3139122437 43
$ pbmtonokia -fmt NPM  testgrid.pbm | cksum 
2609830595 43
$ pbmtonokia -fmt NPM  testgrid.pbm | cksum 
3240912281 43
$

$ pbmtonokia -fmt NPM  testgrid.pbm
NPMsª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿü
$ pbmtonokia -fmt NPM  testgrid.pbm
NPMSª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿü
$ pbmtonokia -fmt NPM  testgrid.pbm
NPMùª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿü
$ pbmtonokia -fmt NPM  testgrid.pbm
NPMÀª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿü
$

Fourth char is varying.

$ valgrind  -q pbmtonokia -fmt NPM testgrid.pbm
==30701== Conditional jump or move depends on uninitialised value(s)
==30701==    at 0x490F689: _IO_file_overflow@@GLIBC_2.1 (in /lib/libc-2.31.so)
==30701==    by 0x49108AA: _IO_default_xsputn (in /lib/libc-2.31.so)
==30701==    by 0x490E789: _IO_file_xsputn@@GLIBC_2.1 (in /lib/libc-2.31.so)
==30701==    by 0x4902409: fwrite (in /lib/libc-2.31.so)
==30701==    by 0x109C35: UnknownInlinedFun (pbmtonokia.c:424)
==30701==    by 0x109C35: main (pbmtonokia.c:491)
==30701== 
==30701== Syscall param write(buf) points to uninitialised byte(s)
==30701==    at 0x4973512: write (in /lib/libc-2.31.so)
==30701==    by 0x490E08A: _IO_file_write@@GLIBC_2.1 (in /lib/libc-2.31.so)
==30701==    by 0x490D1A6: new_do_write (in /lib/libc-2.31.so)
==30701==    by 0x490F2B6: _IO_do_write@@GLIBC_2.1 (in /lib/libc-2.31.so)
==30701==    by 0x490F6F6: _IO_file_overflow@@GLIBC_2.1 (in /lib/libc-2.31.so)
==30701==    by 0x4911251: _IO_flush_all (in /lib/libc-2.31.so)
==30701==    by 0x4911412: _IO_cleanup (in /lib/libc-2.31.so)
==30701==    by 0x48C9431: __run_exit_handlers (in /lib/libc-2.31.so)
==30701==    by 0x48C94E2: exit (in /lib/libc-2.31.so)
==30701==    by 0x48AFCD1: (below main) (in /lib/libc-2.31.so)
==30701==  Address 0x4b4cd0d is 5 bytes inside a block of size 1,024 alloc'd
==30701==    at 0x4836680: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==30701==    by 0x4900D9A: _IO_file_doallocate (in /lib/libc-2.31.so)
==30701==    by 0x491072C: _IO_doallocbuf (in /lib/libc-2.31.so)
==30701==    by 0x490F798: _IO_file_overflow@@GLIBC_2.1 (in /lib/libc-2.31.so)
==30701==    by 0x490E74F: _IO_file_xsputn@@GLIBC_2.1 (in /lib/libc-2.31.so)
==30701==    by 0x4902409: fwrite (in /lib/libc-2.31.so)
==30701==    by 0x109C35: UnknownInlinedFun (pbmtonokia.c:424)
==30701==    by 0x109C35: main (pbmtonokia.c:491)
==30701== 
NPMª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿüª¨ÿ
$

Breakpoint 1, convertToNpm (ofP=<optimized out>, text=0x0, rows=16, cols=14, image=0x5655cae0) at pbmtonokia.c:402
402	    if (text) 
(gdb) p text
$1 = 0x0
(gdb) n
495	freeCmdline(cmdline);
(gdb) 

When one continues with 's' on 402:

Breakpoint 1, convertToNpm (ofP=<optimized out>, text=0x0, rows=16, cols=14, image=0x5655cae0) at pbmtonokia.c:402
402	    if (text) 
(gdb) s
convertToNpm (ofP=0xf7f7dce0 <_IO_2_1_stdout_>, text=0x0, rows=16, cols=14, image=0x5655cae0) at pbmtonokia.c:412
412	    header[       3] = 0;
(gdb) n
415	    memcpy(&header[5], text, len);
(gdb) n
416	    header[ 6 + len] = cols;
(gdb) n
417	    header[ 7 + len] = rows;
(gdb) n
424	    fwrite(header, 11 + len, 1, ofP);


Some code seem to be optimized away? For example 
header[       4] = len;
?

The relevant function is (pbmtonokia.c):

static void
convertToNpm(bit **       const image,
             unsigned int const cols,
             unsigned int const rows,
             const char * const text,
             FILE *       const ofP) {

    unsigned int row;
    char header[132];
    size_t len;

    if (text)
        len = strlen(text);
    else
        len = 0;

    /* header and optional text */

    header[       0] = 'N';
    header[       1] = 'P';
    header[       2] = 'M';
    header[       3] = 0;
    header[       4] = len;
    header[       5] = 0;
    memcpy(&header[5], text, len);
    header[ 6 + len] = cols;
    header[ 7 + len] = rows;
    header[ 8 + len] = 1;
    header[ 9 + len] = 1;
    header[10 + len] = 0; /* unknown */

    assert(10 + len < sizeof(header));

    fwrite(header, 11 + len, 1, ofP);

    /* image: stream of bits, each row padded to a byte boundary
       inspired by gnokii/common/gsm-filesystems.c
     */
    for (row = 0; row < rows; row++) {
        unsigned int byteNumber;
        int bitNumber;
        char buffer[32];  /* picture messages are (always?) 72 x 28 */
        unsigned int col;

        byteNumber = 0;
        bitNumber = 7;

        memset(buffer, 0, sizeof(buffer));

        for (col = 0; col < cols; ++col) {
            if (image[row][col] == PBM_BLACK)
                buffer[byteNumber] |= (1 << bitNumber);
            --bitNumber;
            if (bitNumber < 0 && col < (cols - 1)) {
                bitNumber = 7;
                ++byteNumber;
            }
        }
        fwrite(buffer, byteNumber + 1, 1, ofP);
    }
}
Comment 2 Petr Gajdos 2020-04-30 13:22:57 UTC
Do you have any hint in which direction I should look?
Comment 3 Martin Liška 2020-04-30 13:48:37 UTC
I've got it. It's:

LD_LIBRARY_PATH=../../package/lib/ ./pbmtonokia -fmt NPM  ../../test/testgrid.pbm
pbmtonokia.c:415:5: runtime error: null pointer passed as argument 2, which is declared to never be null
    #0 0x565589c9 in convertToNpm /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/pbm/pbmtonokia.c:415
    #1 0x565589c9 in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/pbm/pbmtonokia.c:491
    #2 0xf7907cc5 in __libc_start_main (/lib/libc.so.6+0x1ecc5)
    #3 0x56558d20 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/pbm/pbmtonokia+0x3d20)

It's with UBSAN sanitizer.
Comment 4 Martin Liška 2020-04-30 13:56:37 UTC
I'm going to add you build_ubsan to spec file and make a submit request soon.
Comment 5 Martin Liška 2020-04-30 14:17:52 UTC
I've just done SR#799270 and I see for ubsan_build=1:

[   51s] 
[   51s] == pamhue.test ==
[   51s] pamhue.test: SUCCESS
[   51s] 
[   51s] == pbmclean.test ==
[   51s] pbmclean.c:233:38: runtime error: left shift of 255 by 29 places cannot be represented in type 'int'
[   51s]     #0 0x5655993d in setSample /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/editor/pbmclean.c:233
[   51s]     #1 0x5655993d in cleanrow /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/editor/pbmclean.c:306
[   51s]     #2 0x5655993d in cleanSimple /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/editor/pbmclean.c:425
[   51s]     #3 0x5655993d in pbmclean /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/editor/pbmclean.c:787
[   51s]     #4 0x5655993d in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/editor/pbmclean.c:808
--
[   81s] == eyuvtoppm.test ==
[   81s] eyuvtoppm.test: SUCCESS
[   81s] 
[   81s] == pbm-misc-converters.test ==
[   81s] pbmtoibm23xx: opening 'testgrid.pbm'
[   81s] pbmtonokia.c:415:5: runtime error: null pointer passed as argument 2, which is declared to never be null
[   81s]     #0 0x565583b0 in convertToNpm /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/pbm/pbmtonokia.c:415
[   81s]     #1 0x565583b0 in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/pbm/pbmtonokia.c:491
[   81s]     #2 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   81s]     #3 0x565584b0 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pbmtonokia+0x34b0)
[   81s] 
--
[   83s] 
[   83s] == cis-roundtrip.test ==
[   83s] cis-roundtrip.test: SUCCESS
[   83s] 
[   83s] == cmuw-roundtrip.test ==
[   83s] pmfileio.c:653:26: runtime error: left shift of 241 by 24 places cannot be represented in type 'int'
[   83s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   83s]     #1 0x565561b5 in readCmuwmHeader /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/pbm/cmuwmtopbm.c:49
[   83s]     #2 0x565561b5 in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/pbm/cmuwmtopbm.c:93
[   83s]     #3 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   83s]     #4 0x56556520 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/cmuwmtopbm+0x1520)
--
[   84s] ppmtoilbm: maxval is not 255 - automatically rescaling colors
[   84s] ilbmtoppm: input is a deep (24-bit) ILBM
[   84s] ilbm-roundtrip.test: SUCCESS
[   84s] 
[   84s] == jbig-roundtrip.test ==
[   84s] jbig.c:2608:36: runtime error: left shift of 255 by 24 places cannot be represented in type 'long int'
[   84s]     #0 0x5656336c in jbg_dec_in /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/jbig/jbig.c:2608
[   84s]     #1 0x5656336c in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/jbig/jbigtopnm.c:240
[   84s]     #2 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #3 0x56563510 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/jbigtopnm+0xe510)
[   84s] 
[   84s] jbig.c:2608:36: runtime error: left shift of 255 by 24 places cannot be represented in type 'long int'
[   84s]     #0 0x5656336c in jbg_dec_in /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/jbig/jbig.c:2608
[   84s]     #1 0x5656336c in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/jbig/jbigtopnm.c:240
[   84s]     #2 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #3 0x56563510 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/jbigtopnm+0xe510)
[   84s] 
--
[   84s] jpeg2k-roundtrip.test: NOT TESTABLE
[   84s] 
[   84s] == leaf-roundtrip.test ==
[   84s] ppmtoleaf: Computing colormap...
[   84s] ppmtoleaf:   ... Done.  24-bit true color 257 color image.
[   84s] pmfileio.c:653:26: runtime error: left shift of 137 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0x5655623d in leaf_init /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/ppm/leaftoppm.c:38
[   84s]     #2 0x5655623d in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/ppm/leaftoppm.c:135
[   84s]     #3 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #4 0x565573a0 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/leaftoppm+0x23a0)
--
[   84s] pnmcolormap: Scanning image 0
[   84s] pnmcolormap: 20314 colors so far
[   84s] pnmcolormap: 20314 colors found
[   84s] pnmcolormap: choosing 256 colors...
[   84s] pnmremap: 256 colors found in colormap
[   84s] pmfileio.c:653:26: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0x56558a53 in palmcolor_read_colormap /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pnmtopalm/palmcolormap.c:295
[   84s]     #2 0x56558a53 in readColormap /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pnmtopalm/palmtopnm.c:613
[   84s]     #3 0x56558a53 in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pnmtopalm/palmtopnm.c:1190
[   84s]     #4 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #5 0x5655b2a0 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/palmtopnm+0x62a0)
[   84s] 
[   84s] pmfileio.c:653:26: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0x56558a53 in palmcolor_read_colormap /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pnmtopalm/palmcolormap.c:295
[   84s]     #2 0x56558a53 in readColormap /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pnmtopalm/palmtopnm.c:613
[   84s]     #3 0x56558a53 in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pnmtopalm/palmtopnm.c:1190
[   84s]     #4 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #5 0x5655b2a0 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/palmtopnm+0x62a0)
[   84s] 
[   84s] pmfileio.c:653:26: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0x56558a53 in palmcolor_read_colormap /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pnmtopalm/palmcolormap.c:295
[   84s]     #2 0x56558a53 in readColormap /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pnmtopalm/palmtopnm.c:613
[   84s]     #3 0x56558a53 in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pnmtopalm/palmtopnm.c:1190
[   84s]     #4 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #5 0x5655b2a0 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/palmtopnm+0x62a0)
[   84s] 
[   84s] pmfileio.c:653:26: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0x56558a53 in palmcolor_read_colormap /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pnmtopalm/palmcolormap.c:295
[   84s]     #2 0x56558a53 in readColormap /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pnmtopalm/palmtopnm.c:613
[   84s]     #3 0x56558a53 in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pnmtopalm/palmtopnm.c:1190
[   84s]     #4 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
--
[   84s] pnmremap: 16 colors found in colormap
[   84s] pcx-roundtrip.test: SUCCESS
[   84s] 
[   84s] == pdb-roundtrip.test ==
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
[   84s]     #5 0x5655765c in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:784
[   84s]     #6 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
[   84s]     #5 0x5655765c in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:784
[   84s]     #6 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
[   84s]     #5 0x5655765c in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:784
[   84s]     #6 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
--
[   84s]     #6 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopnm: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
--
[   84s]     #6 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopnm: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
--
[   84s]     #6 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopnm: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
--
[   84s]     #6 0xf790dcbc in __libc_start_main (/lib/libc.so.6+0x1ecbc)
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopnm: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
--
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopnm: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamdepth: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
--
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopnm: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamdepth: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
--
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopnm: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamdepth: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
--
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopnm: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamdepth: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
--
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopnm: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamdepth: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
--
[   84s]     #7 0x5655a250 in _start (/home/abuild/rpmbuild/BUILD/netpbm-10.88.1/package/bin/pdbimgtopam+0x5250)
[   84s] 
[   84s] pamtopnm: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamdepth: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   84s] pamtopdbimg: Output dimensions: 160w x 160h
[   84s] pmfileio.c:653:26: runtime error: left shift of 218 by 24 places cannot be represented in type 'int'
[   84s]     #0 0xf7f82b82 in pm_readbiglong /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:653
[   84s]     #1 0xf7fa5ced in pm_readbiglong2 /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/lib/pmfileio.c:671
[   84s]     #2 0x5655765c in pm_readbiglongu2 importinc/netpbm/pm.h:306
[   84s]     #3 0x5655765c in pdbheadRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:444
[   84s]     #4 0x5655765c in ipdbRead /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/pdbimgtopam.c:543
--
[   86s] == xv-roundtrip.test ==
[   86s] xv-roundtrip.test: SUCCESS
[   86s] 
[   86s] == xwd-roundtrip.test ==
[   86s] xwdtopnm: writing PGM file
[   86s] xwdtopnm.c:1049:19: runtime error: shift exponent 32 is too large for 32-bit type 'long unsigned int'
[   86s]     #0 0x565582ef in pixelReader_getbits /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/xwdtopnm.c:1049
[   86s]     #1 0x56558f30 in pixelReader_getpix /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/xwdtopnm.c:1105
[   86s]     #2 0x56558f30 in convertRowDirect /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/xwdtopnm.c:1213
[   86s]     #3 0x56558f30 in convertRow /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/xwdtopnm.c:1299
[   86s]     #4 0x56558f30 in main /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/xwdtopnm.c:1391
--
[   86s] pamdepth: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty
[   86s] xwdtopnm: writing PBM file
[   86s] xwd-roundtrip.test: FAILURE
[   86s] 
[   86s] == fiasco-roundtrip.test ==
[   86s] rpf.c:98:18: runtime error: shift exponent 146 is too large for 32-bit type 'unsigned int'
[   86s]     #0 0x5657166f in rtob /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/fiasco/rpf.c:98
[   86s]     #1 0x565c81cd in aac_bits /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/fiasco/coeff.c:231
[   86s]     #2 0x56579a14 in matching_pursuit /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/fiasco/approx.c:431
[   86s]     #3 0x565a8a7d in approximate_range /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/fiasco/approx.c:92
[   86s]     #4 0x565a8a7d in subdivide /home/abuild/rpmbuild/BUILD/netpbm-10.88.1/converter/other/fiasco/subdivide.c:216
Comment 6 Petr Gajdos 2020-05-04 12:45:36 UTC
Thanks Martin!
Comment 7 Swamp Workflow Management 2020-05-04 13:20:06 UTC
This is an autogenerated message for OBS integration:
This bug (1170831) was mentioned in
https://build.opensuse.org/request/show/800053 Factory / netpbm