Bug 2416751 - flac: noisy output from debug statements
Summary: flac: noisy output from debug statements
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: flac
Version: 43
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-24 14:03 UTC by Jerry James
Modified: 2025-12-05 02:11 UTC (History)
5 users (show)

Fixed In Version: flac-1.5.0-5.fc43
Clone Of:
Environment:
Last Closed: 2025-11-24 15:29:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jerry James 2025-11-24 14:03:57 UTC
Description of problem:
I just ran flac over a set of WAV files ripped from a CD.  The output was noisy, with lots of lines like this:

FLAC__lpc_quantize_coefficients: negative shift=-1 order=12 cmax=2180.327393

I found that in the source code, in src/libFLAC/lpc.c:

#ifndef NDEBUG
                flac_fprintf(stderr,"FLAC__lpc_quantize_coefficients: negative shift=%d order=%u cmax=%f\n", *shift, order, cmax);
#endif

This means that flac was built without NDEBUG being defined.  Was that intentional?  In CMakeLists.txt, NDEBUG is added to the build flags for release mode, which suggests that flac was not built in release mode.  Perhaps cmake needs to be invoked with -DCMAKE_BUILD_TYPE=Release or -DCMAKE_BUILD_TYPE=RelWithDebInfo?

Version-Release number of selected component (if applicable):
flac-1.5.0-4.fc43.x86_64

How reproducible:
Always

Steps to Reproduce:
1. I don't know if this happens for any WAV file, but it does for nearly every track ripped from "The Blue Album" by Pablo Sainz-Villegas
2. For those tracks, I ran "flac --best -e *.wav"

Actual results:
Noisy output, with debug statements interleaved with the output I want to see.

Expected results:
I only want to see progress information, without debug statements.

Additional info:

Comment 1 Miroslav Lichvar 2025-11-24 15:29:20 UTC
This warning message is supposed to be rare. I couldn't trigger it on my audio files.

Anyway, I have pushed an update to rawhide with your suggestion switching the build type to release. debuginfo still seems to be produced. Thanks.

Comment 2 Fedora Update System 2025-12-03 13:47:53 UTC
FEDORA-2025-b74eaa8f9e (flac-1.5.0-5.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-b74eaa8f9e

Comment 3 Fedora Update System 2025-12-04 01:21:09 UTC
FEDORA-2025-b74eaa8f9e has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-b74eaa8f9e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-b74eaa8f9e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2025-12-05 02:11:28 UTC
FEDORA-2025-b74eaa8f9e (flac-1.5.0-5.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.