Bug#528701: fluidsynth segfaults when loading the configuration file
Package: fluidsynth
Version: 1.0.8-2
Severity: important
When I try to run fluidsynth letting it to read the configuration from the
file, it segfaults at the first command related to the MIDI router.
If e.g. my config files looks like this:
flsynth.conf:
======================================
load /usr/share/sounds/sf2/FluidR3_GM.sf2
load /usr/share/sounds/sf2/FluidR3_GS.sf2
select 1 0 0 52
select 0 0 0 76
router_clear
router_begin note
router_chan 0 127 0 0
router_par1 36 59 1 0
router_end
router_begin note
router_chan 0 127 0 1
router_par1 60 84 1 0
router_end
=====================================
I get the following messages:
=====================================
$fluidsynth -f flsynth.conf
cca_open_socket: could not connect to host 'localhost', service '14541'
cca_init: could not connect to server 'localhost' - disabling ladcca
fluidsynth: warning: Failed to pin the sample data to RAM; swapping is
possible.
loaded SoundFont has ID 1
fluidsynth: warning: Failed to pin the sample data to RAM; swapping is
possible.
loaded SoundFont has ID 2
Segmentation fault
=====================================
Using of gdb on the generated core dump didn't help:
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
(no debugging symbols found)
Core was generated by `fluidsynth -f flsynth.conf'.
Program terminated with signal 11, Segmentation fault.
[New process 7287]
#0 0xb7ff7f65 in ?? ()
(gdb) bt
#0 0xb7ff7f65 in ?? ()
(gdb)
I was able to state which instruction caused the fault, by inserting of the
"fonts" command into my config file, and checking, when it stopped to be
executed...
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (1001, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.29.1 (SMP w/2 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages fluidsynth depends on:
ii libc6 2.9-4 GNU C Library: Shared libraries
ii libfluidsynth1 1.0.8-2 Real-time MIDI software synthesize
Versions of packages fluidsynth recommends:
pn qsynth <none> (no description available)
fluidsynth suggests no packages.
-- no debconf information
Reply to: