Your message dated Fri, 31 Oct 2025 11:31:14 +0100
with message-id <[email protected]>
and subject line Re: flac encode crashes if called as a python subprocess
has caused the Debian Bug report #739613,
regarding flac encode crashes if called as a python subprocess
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
739613: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739613
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: flac
Version: 1.3.0-2
Severity: normal

Dear Maintainer,

The jack CD ripper package in debian fails when calling the flac
encoder. This is logged in bug #720782.  This happens since the flac
package upgrade to upstream 1.3.0.x
Look at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720782

After some digging, I believe the bug shall be corrected inside flac
which does a divide by zero when not called from a terminal.

file: src/flac/utils.c

function: get_console_width(void)

{
        int width = 80;
#if defined _WIN32
        width = win_get_console_width();
#elif defined __EMX__
        int s[2];
        _scrsize (s);
        width = s[0];
#elif !defined __ANDROID__
        struct winsize w;
        if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) != -1) width = w.ws_col;
#endif
        return width;
}


shoudl be
int get_console_width(void)
{
        int width = 80;
[...]
#elif !defined __ANDROID__
        struct winsize w;
        if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) == -1 || w.ws_col == 0 )
    width = 80;
  else
                width = w.ws_col;
#endif
        return width;
}

this way we always have a default at 80 chars.

Hope this helps,

Ced

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf

Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages flac depends on:
ii  libc6     2.17-97
ii  libflac8  1.3.0-2

flac recommends no packages.

flac suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 1.3.1-1

https://github.com/xiph/flac/commit/9443151da38d25430f0683dfdcd7f6076ecabe0a

--- End Message ---

Reply via email to