Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914999 - media-libs/netpbm-11.4.2: test failure with "-O1 -mtune=generic"
Summary: media-libs/netpbm-11.4.2: test failure with "-O1 -mtune=generic"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 915000
  Show dependency tree
 
Reported: 2023-10-01 05:20 UTC by Viorel Munteanu
Modified: 2023-10-25 04:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
buildl.log (build.log,514.12 KB, text/plain)
2023-10-01 05:20 UTC, Viorel Munteanu
Details
emerge --info (emerge--info.txt,16.38 KB, text/plain)
2023-10-01 05:24 UTC, Viorel Munteanu
Details
the test file (test.pam,1.18 KB, application/octet-stream)
2023-10-01 05:25 UTC, Viorel Munteanu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Viorel Munteanu gentoo-dev 2023-10-01 05:20:14 UTC
Created attachment 871872 [details]
buildl.log

Compiling media-libs/netpbm-11.4.2 with CFLAGS="-O1 -pipe -mtune=generic" results in a buggy executable `pamtosvg`.

If using -O0, -O2, -O3 or -Os, the bug vanishes.  Also if not having -mtune=generic.

How to reproduce:

$ export RGBDEF=/var/tmp/portage/media-libs/netpbm-11.4.2/work/netpbm-11.4.2/lib/rgb.txt
$ ppmmake black 20 20 | ppmdraw -script="line 5 2 15 17" > test.pam

I will atach this test.pam to the bug.

$ pamtosvg test.pam 
pamtosvg: zero determinant of C matrix

This is the bug.

This is the test:
/var/tmp/portage/media-libs/netpbm-11.4.2/work/netpbm-11.4.2/test $ ./pamtosvg.test
Test 1.  Should print match
pamtosvg: zero determinant of C matrix
no match
Test 2.  Should print match
match

I did not find the cause, or a shorter program that has the same bug.

The test file (test.pam) is the always same, so the bug is not in generating it.
Comment 1 Viorel Munteanu gentoo-dev 2023-10-01 05:24:03 UTC
Created attachment 871873 [details]
emerge --info
Comment 2 Viorel Munteanu gentoo-dev 2023-10-01 05:25:46 UTC
Created attachment 871874 [details]
the test file
Comment 3 Larry the Git Cow gentoo-dev 2023-10-25 04:45:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afc03d9c325d6449e575c5554b43b9cb26a10bd8

commit afc03d9c325d6449e575c5554b43b9cb26a10bd8
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2023-10-25 04:43:45 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2023-10-25 04:43:45 +0000

    media-libs/netpbm: add 11.4.3
    
    Bug fixed upstream.
    
    Closes: https://bugs.gentoo.org/914999
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 media-libs/netpbm/Manifest             |   1 +
 media-libs/netpbm/netpbm-11.4.3.ebuild | 253 +++++++++++++++++++++++++++++++++
 2 files changed, 254 insertions(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-25 04:50:33 UTC
Do you know which commit fixed it? I'm curious.
Comment 5 Viorel Munteanu gentoo-dev 2023-10-25 04:53:01 UTC
https://sourceforge.net/p/netpbm/code/4776/