Package: lingot
Version: 0.6.2-3
Severity: normal

Lingot aborts with a segmentation fault every now and then on my
machine.  I compiled it from (Debian) source with debugging symbols, and
found that the problem was in src/gui/gui.c, line 405:

int j = (X[i] > 1.0) ? (int) (64 - PLOT_GAIN*log10(X[i])) : 64;   // dB.

X is an array of 256 elements, but i can be 121650 (or at least it was
according to gdb).  As a workaround, I added a line saying

if (i > 256) i = 256;

directly after i's definition.  That seems to have solved the problem
(although it probably isn't the proper way, so it should be fixed
differently).

Here's my config which triggered the segfault (after some time, I don't
know when exactly):

# Config file automatically created by lingot

AUDIO_DEV = /dev/dsp
SAMPLE_RATE = 44100
OVERSAMPLING = 4
ROOT_FREQUENCY_ERROR = 0.000
MIN_FREQUENCY = 15.000
FFT_SIZE = 1024
TEMPORAL_WINDOW = 0.500
NOISE_THRESHOLD = 10.000
CALCULATION_RATE = 10.000
VISUALIZATION_RATE = 10.000
PEAK_NUMBER = 3
PEAK_ORDER = 1
PEAK_REJECTION_RELATION = 20.000
DFT_NUMBER = 2
DFT_SIZE = 32

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages lingot depends on:
ii  libatk1.0-0             1.18.0-2         The ATK accessibility toolkit
ii  libc6                   2.5-8            GNU C Library: Shared libraries
ii  libcairo2               1.4.6-1          The Cairo 2D vector graphics libra
ii  libfontconfig1          2.4.2-1.2        generic font configuration library
ii  libgcc1                 1:4.2-20070516-1 GCC support library
ii  libglib2.0-0            2.12.12-1        The GLib library of C routines
ii  libgtk2.0-0             2.10.12-2        The GTK+ graphical user interface 
ii  libpango1.0-0           1.16.4-1         Layout and rendering of internatio
ii  libstdc++6              4.2-20070516-1   The GNU Standard C++ Library v3
ii  libx11-6                2:1.0.3-7        X11 client-side library
ii  libxcursor1             1:1.1.8-2        X cursor management library
ii  libxext6                1:1.0.3-2        X11 miscellaneous extension librar
ii  libxfixes3              1:4.0.3-2        X11 miscellaneous 'fixes' extensio
ii  libxi6                  1:1.0.1-4        X11 Input extension library
ii  libxinerama1            1:1.0.2-1        X11 Xinerama extension library
ii  libxrandr2              2:1.2.1-1        X11 RandR extension library
ii  libxrender1             1:0.9.2-1        X Rendering Extension client libra

lingot recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to